In Tableau, what is the primary purpose of using a parameter control?
Think about how users can interact with dashboards to change values.
Parameter controls let users pick or enter values that can be used in calculations, filters, or reference lines, making dashboards interactive.
Given a parameter control named SelectedYear with values 2021, 2022, and 2023, which calculated field will correctly return sales only for the selected year?
IF [Order Year] = [SelectedYear] THEN [Sales] ELSE 0 ENDRemember Tableau uses single equals for comparison and aggregation functions must be outside row-level IF statements.
Option A correctly compares the field to the parameter and returns sales per row or 0 otherwise. SUM aggregation should be done outside this calculation if needed.
You want to create a dashboard where users select a number N via a parameter control to show the top N products by sales. Which visualization approach is best?
Think about how to dynamically filter top items based on user input.
Using a parameter with a rank calculation allows dynamic filtering of top N products based on sales, which updates automatically when the parameter changes.
You created a parameter control to select a region, but changing the parameter does not update the sales chart filtered by region. What is the most likely cause?
Parameters do not automatically filter data unless used in calculations or filters.
Filters on fields do not respond to parameters unless the parameter is used inside a calculated field that drives the filter.
You want to let users choose between viewing Sales, Profit, or Quantity on a single chart using a parameter control. Which approach correctly implements this?
Think about how to switch measures dynamically in one calculation.
A string parameter combined with a CASE statement in a calculated field allows dynamic switching between measures in one chart.