Stored values versus display labels

A Tableau string parameter named Revenue Basis has these list entries:


Value

Display As

net

Net revenue

gross

Gross revenue


A chart uses the following calculated field. Both source fields contain valid numeric values, but either parameter selection produces null results.


Plain text
CASE [Revenue Basis]
WHEN 'Net revenue' THEN [Net Revenue]
WHEN 'Gross revenue' THEN [Gross Revenue]
END


Which change fixes the selection logic while preserving the stored values and display labels?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Parameters Questions: