0
0
Tableaubi_tool~5 mins

Type conversion functions in Tableau - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What does the INT() function do in Tableau?
The INT() function converts a value to an integer by removing any decimal part. For example, INT(3.7) returns 3.
Click to reveal answer
beginner
How do you convert a string to a date in Tableau?
Use the DATE() function to convert a string that represents a date into a date data type. For example, DATE('2024-06-01') returns a date value.
Click to reveal answer
beginner
What is the purpose of the STR() function in Tableau?
STR() converts a number or date into a string. For example, STR(2024) returns "2024" as text.
Click to reveal answer
intermediate
Explain the FLOAT() function in Tableau.
FLOAT() converts a value to a floating-point number (decimal). For example, FLOAT('3.14') returns 3.14 as a number.
Click to reveal answer
intermediate
What happens if you try to convert a non-date string with DATE() in Tableau?
Tableau returns a NULL value if the string cannot be converted to a valid date.
Click to reveal answer
Which Tableau function converts a number to a string?
ASTR()
BINT()
CDATE()
DFLOAT()
What does INT(5.99) return in Tableau?
A5
B6
C5.99
DNULL
Which function converts a string like '2024-06-01' to a date?
AFLOAT()
BINT()
CDATE()
DSTR()
What will FLOAT('3.14') return?
ANULL
B3
C'3.14'
D3.14
If DATE('hello') is used, what does Tableau return?
ACurrent date
BNULL
C'hello'
DError message
Describe how to convert a number to a string and a string to a date in Tableau.
Think about functions that change data types from number to text and text to date.
You got /3 concepts.
    What happens when you use INT() on a decimal number and when DATE() receives an invalid string?
    Consider how Tableau handles type conversion errors or rounding.
    You got /2 concepts.