A parameter is a dynamic value that a customer could select, and you can use it to replace constant values in calculations, filters, and reference lines.
For example, when creating a filter to show the top 10 products based on total profit instead of the fixed value, you can update the filter to show the top 10, 20, or 30 products using a parameter.
Continuing with the same example of top-five and bottom five customers, follow these steps:
- Select the drop-down arrow on the top right corner of the Data pane.
- Click on Create Parameter and fill in the details:
- Name - Number of top/bottom customers
- Select ‘Range’ for Allowable Values and fill the fields as:
- Minimum - 5
- Maximum - 20
- Step - 5
- Edit the set ‘Top Customers’ by changing the ‘By Field’ value of 5 with ‘Select number of top/bottom customers.’ Do the same changes in the ‘Bottom Customers’ set.
- Go to the created parameter on the Data pane, right-click on it and select ‘Show Parameter Control.’ Now, if you increase the step within the range, the data appears as per the parameter value set.
Following is the visualization for a step size of 10: