TDA-C01 Exam QuestionsBrowse all questions from this exam

TDA-C01 Exam - Question 12


You create the following worksheet.

The Pick Measure parameter contains the following list of values.

Users can select a value from Pick Measure to change the visualization to show either the Sales measure or the Profit measure.

Which formula is used in the SelectedMeasure calculated field to switch between measures?

Show Answer
Correct Answer: A

The formula used in the SelectedMeasure calculated field to switch between measures should be a CASE statement that evaluates the Pick Measure parameter and returns the corresponding measure. The correct syntax for this switch is: CASE [Pick Measure] WHEN 1 THEN [Sales] WHEN 2 THEN [Profit] END. This formula specifies that if the Pick Measure parameter is 1, the formula returns the Sales measure, and if it is 2, the formula returns the Profit measure. Option A correctly represents this formula.

Discussion

2 comments
Sign in to comment
VedjhaOption: A
Aug 4, 2023

A is correct

MonBoujOption: A
May 28, 2024

CASE [Pick Measure] WHEN 1 then [Sales] WHEN 2 then [Profit] END