本文概述
- 如何创建计算字段
- Tableau中的计算编辑器
- 建立公式
- 如何使用计算字段
以下是创建计算字段并在其中使用字符串函数的一些步骤:
如何创建计算字段
- 连接到诸如Sample superstore之类的数据源之后。
- 然后, 转到” 分析” 菜单。
- 然后单击” 创建计算字段” , 如下图所示。

文章图片
Tableau中的计算编辑器 上面的过程将打开一个包含Tableau中所有可用功能的计算编辑器。

文章图片
你可以更改下拉值, 并且只能看到与字符串相关的功能。

文章图片
建立公式
- 如果要在包含字母” A” 的城市中查找销售, 请创建公式, 如下图所示。

文章图片
如何使用计算字段 要将创建的字段显示为图形表示形式, 可以将” 城市” 字段拖到” 行” 架子中, 然后将” 销售” 字段拖到” 列” 架子中。
【Tableau字符串计算示例】下图显示了城市的销售值:

文章图片
推荐阅读
- Tableau表格日期计算
- Tableau数值计算表
- Tableau数据排序示例图解
- Tableau替换数据源示例图解
- Failed to load property source from location 'classpath:/application.properties'
- Android内核sys_setresuid() Patch提权(CVE-2012-6422)
- ANDROID init进程
- Android内核栈溢出与ROP(CVE-2013-2597)
- Android: protecting the kernel