A parameter is a single value the user controls — a number, date, or list choice — that you plug into calculations, filters and reference lines. Parameters turn a static report into an interactive tool: "what if the discount were 15%?", "show the top N", "switch the metric".
What is a parameter?
Unlike a filter (which selects from your data), a parameter is an independent input with a type and allowed values. On its own it does nothing — it becomes powerful when a calculated field references it. Show it as a control for the user to change.
What-if analysis
Parameter "Discount %" (float, 0–50, shown as a slider).Calculated field:Discounted Sales = [Sales] * (1 - [Discount %] / 100)The user drags the slider → the whole view recalculates live.
Swapping measures
Let users choose which metric a chart shows via a list parameter + a calc:
Parameter "Metric" (string list: Sales, Profit, Quantity).Calculated field "Selected Metric" =CASE [Metric]WHEN "Sales" THEN SUM([Sales])WHEN "Profit" THEN SUM([Profit])WHEN "Quantity" THEN SUM([Quantity])ENDPut "Selected Metric" on the axis → one chart, three metrics.
Parameter actions
Parameter actions let users set a parameter by clicking a mark (not just the control) — e.g. click a bar to make it the comparison baseline. This makes dashboards feel genuinely interactive.
Practice
Build a discount-percent parameter and a Discounted Sales calc that responds to it. Create a metric-selector parameter that swaps Sales/Profit/Quantity on a chart. Then add a Top-N parameter to control how many products a bar chart shows.
Key takeaways
- 01A parameter is a single user-controlled input (number/date/list) — independent of the data.
- 02It does nothing alone; a calculated field references it to drive the view.
- 03What-if: reference a parameter in a calc (Sales × (1 − Discount%)) for live scenarios.
- 04Swap measures with a list parameter + a CASE calc — one chart, many metrics.
- 05Parameter actions set a parameter by clicking a mark; pair with Top-N for a live control.
