📜  Tableau-数据类型

📅  最后修改于: 2020-11-29 08:28:24             🧑  作者: Mango


作为数据分析工具,Tableau将每条数据分类为以下四个类别之一:字符串,数字,布尔值和日期时间。从源加载数据后,Tableau会自动分配数据类型。相反,如果满足数据转换规则,您也可以更改某些数据类型。用户必须为计算字段指定数据类型。

下表列出了Tableau支持的数据类型的描述。

Data Type Description Example
STRING Any sequence of zero or more characters. They are enclosed within single quotes. The quote itself can be included in a string by writing it twice.

‘Hello’ ‘Quoted’ ‘quote’

NUMBER These are either integers or floating points. It is advised to round the floating point numbers while using them in calculations.

3

142.58

BOOLEAN They are logical values.

TRUE

FALSE

DATE & DATETIME Tableau recognizes dates in almost all formats. But in case we need to force Tableau to recognize a string as date, then we put a # sign before the data.

“02/01/2015”

“#3 March 1982”