nerdexam
Tableau

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]…

Exploring & Analyzing Data

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)
  • A
    4% (2)
  • B
    17% (9)
  • C
    9% (5)
  • D
    70% (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

#calculated fields#STR function#string concatenation#type conversion

Community Discussion

No community discussion yet for this question.

Full TDS-C01 Practice