You have a parameter named SelectedRegion with values: 'East', 'West', 'Central'. You create a calculated field:
IF [Region] = [SelectedRegion] THEN [Sales] ELSE 0 END
What will be the sum of this calculated field if the parameter is set to 'West' and the data contains sales for all regions?
Think about how the parameter value filters the calculation.
The calculated field returns sales only when the region matches the parameter value. So, summing it gives total sales for the selected region.
You create a parameter CategorySelector with values 'Category A', 'Category B', and 'Category C'. You use this parameter in a calculated field to show sales for the selected category. Which visualization best helps users understand sales changes when switching the parameter?
Consider how the parameter changes the category dynamically over time.
A line chart over time filtered by the parameter shows how sales for the selected category change dynamically.
Which statement about parameters used in Tableau calculated fields is correct?
Think about how parameters behave compared to filters.
Parameters hold static values until the user changes them. They do not update automatically or filter data at the source.
You want to create a dashboard where users can select a measure (Sales, Profit, or Quantity) via a parameter and see the selected measure in a single chart. Which calculated field formula correctly uses the parameter MeasureSelector to switch measures?
Remember that aggregations like SUM should be applied to the calculated field in the view, not inside it.
Option C returns the raw measure without aggregation in the calculated field, which is correct; SUM is applied in the view. Options A and B mix aggregate and non-aggregate functions, causing errors. D uses invalid SWITCH syntax.
Given the parameter DiscountRate (values 0, 0.05, 0.1) and the calculated field:
IF [DiscountRate] > 0 THEN [Sales] * (1 - [DiscountRate]) ELSE [Sales] END
Users report that the discount is not applied even when selecting 0.05 or 0.1. What is the most likely cause?
Check the data type of the parameter and how it is compared.
If the parameter is a string, comparing it to number 0 fails, so the IF condition is never true, and discount is never applied.