2. Parameters
A parameter is a global placeholder value such as a number,
date, or string that can replace a constant value in a calculation.
3. What are Parameters?
Parameters are user-generated values, that
allows user and his audience to choose the
inputs of calculated fields.
Parameters allow user to use aggregated
values that aren’t available in the data and
incorporate these values into dashboard
reports.
After creation, end user can control the input
to see the results of the effect of parameter.
4. 1) Create a
Parameter
2) Attach it to a
calculation
3) Use Parameter
controls
Steps to use a Parameter
5.
6. Dataset : US_Superstore
Superstores are very large supermarkets
or shops selling household goods
and equipment. Superstores are
usually built outside city centres away from
other shops. The original dataset is
available on Kaggle. List of columns used
are as follows :-
•Sub Category
•Profit
•Sales
8. Step 1: Create a Parameter
• Create a Bar graph using ‘Sub Category’ and ‘Sales’.
Drag ‘Profit’ in color card.
• Click the drop down beside the ‘Dimensions’ section.
• Select ‘Create Parameter…’ and a dialogue box will
appear. Name it ‘Select Option’.
• Under ‘Properties’ section, select ‘Data type’ as ‘String’ and
‘Allowable Values’ as ‘List’.
• In ‘List of values’ section, under ‘Values’ write first ‘Sales’
and next ‘Profit’.
• Click ‘Ok’ and new section named ‘Parameters’ is
added below ‘Measures’ section and under it ‘Select
Option’ field is created.
• Under ‘Parameters’ section, right click on ‘Select
Option’ and select ‘Show Parameter Control’.
9. Step 2: Define action to Parameter
• Click the drop down beside the ‘Dimensions’ section.
• Select ‘Create Calculated Field…’ and a dialogue
box will appear. Name it ‘Choose Option’ and write
the formula as follows:
Case [Select Option]
When ‘Sales’
Then [Sales]
When ‘Profit’
Then [Profit]
End
• Click ‘Ok’ and a ‘Choose Option’ field is created
under ‘Measures’ section.
10. Step 3: Integrate Parameter with action
• Click the drop down of ‘Sub Category’ in ‘Row’ shelf.
• Select ‘Sort’ and a dialogue box will appear.
• Under ‘Sort By’, select option ‘Field’.
• Under ‘Sort Order’, select ‘Descending’.
• Under ‘Field Name’, select ‘Choose Option’.
• Close the dialogue box after the above are made.
On selecting ‘Sales’ from the ‘Choose Option’
parameter control, the data gets sorted in descending
order basis the ‘Sales’.
And on selecting ‘Profit’ from the ‘Choose Option’
parameter control, the data gets sorted in descending
order basis the ‘Profit’.
Click next to check out the resulting graphs.
14. Dynamic X axis or Y axis
• Dynamic X axis or Y axis: Using parameter
user can change the Measure of X axis or Y
axis. This is very helpful in case where user is
unsure about which Measure user wants to see
in any axis. Also, it provides the flexibility to
user to analyze the same chart with different
axis.
• Example: Consider a scatter chart, where X axis is
Sales, but Y axis can be Discount, Profit or
Quantity.
15. • Filtering with parameter: Parameters can also
be used to filter the data. It provides user the
flexibility to change the filter Dimension
depending upon the selection value of filter.
• Example: Consider the case where the
requirement is to filter the data basis either product
or sub-category or category. So in this case instead
of providing 3 different filter for each type, using
parameter and calculation (based on parameter)
user can provide one filter.
Filtering with Parameter
16. • Use of Parameter across different data
sources: Filters are specific to data sources
but Parameters are common to all data sources
and can be reused across the Workbook.
• Example: Consider a bar chart across countries
from data source1 and another scatter chart
showing counties across sales and profit from data
source2. Now, if user wants to apply filter which is
common for both charts, then using parameter it
can be done easily.
Parameter across data sources