Creating Parameters
Parameters are dynamic, user-controlled values that can replace constant values in calculations, filters, and reference lines. They enable interactive what-if analysis, allowing end users to modify visualization behavior without editing worksheets. Parameters can be numeric, string, date, or Boolean types. They appear as interactive controls in dashboards.
To create parameters, perform the following steps.
In the Data tab, click the down arrow displayed.
Select Create Parameter.
To create a parameter:
Enter Name: Top N
Data type: Integer
Current value: 5
Allowable values: Range 1–5
Create calculated field: RANK(SUM([Sales])) <= [Top N]
Click Ok.
Right-click the parameter and select Show Parameter.
Drag the calculated field to the filters pane and select the “True” option.
Drag Category and sum sales, and select 5 for the parameter.
Now change the value of the parameter to 5 and observe that the data is changing.