TDS-C01 · Question #9
You need to create a calculation that returns a customer name followed by a comma, a space, and then the customer's age (for example John Doe, 32). What should you include in the calculation?
The correct answer is D. [Customer Name] +"," + STR([Age]). In Tableau, to concatenate text and numbers, you need to ensure that numeric fields are converted to strings. In this calculation: - [Customer Name] represents the customer's name. - "," is the literal string that adds a comma and space. - STR([Age]) converts the numeric [Age]…
Question
You need to create a calculation that returns a customer name followed by a comma, a space, and then the customer’s age (for example John Doe, 32). What should you include in the calculation?
Options
- A[Customer Name] +"," + "STR[Age]"
- B"Customer Name," + [Age]
- CSTR([Customer Name]) +"," STR("Age")
- D[Customer Name] +"," + STR([Age])
How the community answered
(53 responses)- A4% (2)
- B17% (9)
- C9% (5)
- D70% (37)
Explanation
In Tableau, to concatenate text and numbers, you need to ensure that numeric fields are converted to strings. In this calculation: - [Customer Name] represents the customer's name. - "," is the literal string that adds a comma and space. - STR([Age]) converts the numeric [Age] field to a string so it can be concatenated with [Customer
Topics
Community Discussion
No community discussion yet for this question.