Tableau 简明教程
Tableau - String Calculations
在本章中,你将了解 Tableau 中涉及字符串的计算。Tableau 具有许多内置的字符串函数,可用于执行字符串操作,例如 - 比较、级联、替换字符串中的几个字符等。以下是创建计算字段并在其中使用字符串函数的步骤。
In this chapter, you will learn about calculations in Tableau involving Strings. Tableau has many inbuilt string functions, which can be used to do string manipulations such as - comparing, concatenating, replacing few characters from a string, etc. Following are the steps to create a calculation field and use string functions in it.
Create Calculated Field
连接到样例超级商店时,转到分析菜单并单击“创建计算字段”,如下面的屏幕截图所示。
While connected to Sample superstore, go to the Analysis menu and click ‘Create Calculated Field’ as shown in the following screenshot.
Calculation Editor
上述步骤将打开一个计算编辑器,其中列出了 Tableau 中可用的所有函数。你可以更改下拉值并仅查看与字符串相关的函数。
The above step opens a calculation editor which lists all the functions that is available in Tableau. You can change the dropdown value and see only the functions related to strings.