Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
46 views1 page

Tableau Type Conversion Guide

Tableau provides type conversion functions to convert the result of any expression from one data type to another. This allows the result to be used in calculations that require a different data type as input. Examples of type conversion functions include DATE(), which converts a number, string or date expression to a date, STR(), which converts an expression to a string, INT(), which truncates an expression to an integer, and FLOAT(), which converts an expression to a floating point number. These functions allow fields to be used across different types of calculations.

Uploaded by

Karthigai Selvan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
46 views1 page

Tableau Type Conversion Guide

Tableau provides type conversion functions to convert the result of any expression from one data type to another. This allows the result to be used in calculations that require a different data type as input. Examples of type conversion functions include DATE(), which converts a number, string or date expression to a date, STR(), which converts an expression to a string, INT(), which truncates an expression to an integer, and FLOAT(), which converts an expression to a floating point number. These functions allow fields to be used across different types of calculations.

Uploaded by

Karthigai Selvan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Tableau eLearning

Type Conversion Functions


Tableau Desktop Reference Guide
All fields in a data source have a data type, such as date, datetime, string, integer, or floating point number. You can use type conversion functions to convert
the result of any expression from one data type to another. This is useful in order to use the result in a calculation that requires a different data type as input.

Examples
These are some examples of he type conversion functions:

Function Syntax Purpose Example


DATE(expression) Returns a date when given a number, string, or DATE([Ship Date]) returns #November 15, 1998# if
date expression. [Ship Date] is a string with the value “November
DATETIME, MAKEDATE, MAKEDATETIME, and
15, 1998”.
MAKETIME are also similar
STR(expression) Returns a string from the given expression. STR([Age]) returns “17” if the value of [Age] is the
integer 17.
INT(expression) Returns an integer by truncating the given INT([Partial Order]) returns 1 if [Partial Order] is
expression. If the number given is negative, the 1.5.
function will return the integer closer to zero.
INT([Profit]) returns -2 if [Profit] is -2.8.
FLOAT(expression) Returns a floating point number from the given FLOAT([Age]) returns 17.000 if the value of [Age] is
expression. the integer 17.

TABLEAU.COM/ELEARNING

You might also like