Bird
Raised Fist0
Power BIbi_tool~8 mins

Parameters in Power BI - Dashboard Guide

Choose your learning style10 modes available
Dashboard Mode - Parameters
Dashboard Goal

Help a sales manager explore sales data by selecting a specific year using a parameter. The dashboard updates key sales numbers and charts based on the chosen year.

Sample Data
YearMonthRegionSales
2022JanNorth100
2022FebSouth150
2023JanNorth200
2023FebSouth250
2024JanNorth300
2024FebSouth350
Dashboard Components
  • Parameter Selector: A dropdown slicer for Year with options 2022, 2023, 2024. User selects one year to filter data.
  • Total Sales KPI Card: Shows total sales for the selected year.
    Formula: Total Sales = CALCULATE(SUM(Sales[Sales]), Sales[Year] = SelectedYear)
    Example: If 2023 selected, total sales = 200 + 250 = 450
  • Monthly Sales Bar Chart: Displays sales by month for the selected year.
    Data filtered by parameter.
    X-axis: Month
    Y-axis: Sales
  • Sales by Region Table: Shows sales totals by region for the selected year.
    Formula: Sales by Region = CALCULATE(SUM(Sales[Sales]), Sales[Year] = SelectedYear)
Dashboard Layout
+----------------------+----------------------+
| Parameter Selector    | Total Sales KPI Card |
+----------------------+----------------------+
|                      Monthly Sales Bar Chart           |
+-------------------------------------------------------+
|                  Sales by Region Table                 |
+-------------------------------------------------------+
Interactivity

The Parameter Selector controls the SelectedYear variable. When the user picks a year, all other components update to show data only for that year.

  • Total Sales KPI recalculates total sales for the chosen year.
  • Monthly Sales Bar Chart filters to show sales by month for the selected year.
  • Sales by Region Table updates to show sales totals by region for the selected year.
Self Check

If you select the year 2024 in the Parameter Selector, what is the total sales shown in the KPI card?

Answer: 300 + 350 = 650

Which months appear in the Monthly Sales Bar Chart?

Answer: Jan and Feb

Which regions appear in the Sales by Region Table?

Answer: North and South

Key Result
Dashboard lets user pick a year parameter to see total sales, monthly sales chart, and sales by region for that year.

Practice

(1/5)
1. What is the main purpose of using Parameters in Power BI reports?
easy
A. To write complex DAX formulas without errors
B. To allow users to change values dynamically and interact with the report
C. To create new tables automatically from data sources
D. To export reports to Excel format

Solution

  1. Step 1: Understand what Parameters do

    Parameters let users input or select values that affect report visuals or calculations.
  2. Step 2: Identify the main benefit

    This makes reports flexible and interactive, improving user experience.
  3. Final Answer:

    To allow users to change values dynamically and interact with the report -> Option B
  4. Quick Check:

    Parameters = Dynamic user input [OK]
Hint: Parameters let users control report values easily [OK]
Common Mistakes:
  • Confusing parameters with data import
  • Thinking parameters create tables
  • Assuming parameters export reports
2. Which of the following is the correct way to create a parameter in Power BI?
easy
A. Use the 'Manage Parameters' option under the 'Home' tab in Power Query Editor
B. Write a DAX formula starting with PARAMETER()
C. Add a new calculated column in the data view
D. Create a new measure with the parameter name

Solution

  1. Step 1: Locate parameter creation method

    Parameters are created in Power Query Editor using 'Manage Parameters' under the Home tab.
  2. Step 2: Eliminate incorrect options

    DAX does not have a PARAMETER() function; calculated columns and measures are not parameters.
  3. Final Answer:

    Use the 'Manage Parameters' option under the 'Home' tab in Power Query Editor -> Option A
  4. Quick Check:

    Parameters created in Power Query Editor [OK]
Hint: Create parameters via Power Query Editor's Manage Parameters [OK]
Common Mistakes:
  • Trying to create parameters with DAX
  • Confusing parameters with calculated columns
  • Assuming parameters are measures
3. Given a parameter named SelectedYear with values 2021, 2022, 2023, what will the following DAX measure return?
Sales Selected Year = CALCULATE(SUM(Sales[Amount]), Sales[Year] = SelectedYear)
medium
A. Total sales for the year selected by the parameter
B. Total sales for all years ignoring the parameter
C. An error because parameters cannot be used in DAX
D. Total sales for the latest year in the data

Solution

  1. Step 1: Understand the measure logic

    The measure sums Sales[Amount] but filters Sales[Year] to equal the parameter SelectedYear.
  2. Step 2: Interpret parameter effect

    SelectedYear acts as a filter value, so only sales for that year are summed.
  3. Final Answer:

    Total sales for the year selected by the parameter -> Option A
  4. Quick Check:

    Parameter filters data in CALCULATE [OK]
Hint: Parameters filter data in CALCULATE expressions [OK]
Common Mistakes:
  • Thinking parameters can't be used in DAX
  • Ignoring the filter effect of the parameter
  • Assuming it sums all years
4. You created a parameter but your report visuals do not update when you change its value. What is the most likely cause?
medium
A. The parameter values are not numeric
B. Parameters only work in Power Query, not in reports
C. You forgot to refresh the data source
D. The parameter is not linked to any filter or measure in the report

Solution

  1. Step 1: Check parameter usage

    Parameters must be connected to filters or measures to affect visuals.
  2. Step 2: Identify why visuals don't update

    If not linked, changing parameter value has no effect on report visuals.
  3. Final Answer:

    The parameter is not linked to any filter or measure in the report -> Option D
  4. Quick Check:

    Parameter must connect to report elements [OK]
Hint: Link parameters to filters or measures to update visuals [OK]
Common Mistakes:
  • Assuming parameter type blocks updates
  • Forgetting to refresh data source
  • Thinking parameters don't work in reports
5. You want to create a report where users can select a sales region from a parameter and see total sales for that region. Which steps should you follow?
hard
A. Create a parameter with numeric IDs only and use it in a visual title
B. Create a calculated column with region names, then use it as a slicer
C. Create a parameter with region values, then use it in a measure filter to calculate sales
D. Write a DAX measure that ignores region and sums all sales

Solution

  1. Step 1: Create a parameter listing all sales regions

    This allows users to pick a region dynamically.
  2. Step 2: Use the parameter in a measure filter

    Write a measure that sums sales filtered by the selected region parameter.
  3. Final Answer:

    Create a parameter with region values, then use it in a measure filter to calculate sales -> Option C
  4. Quick Check:

    Parameter filters sales by user selection [OK]
Hint: Use parameter in measure filter for dynamic region sales [OK]
Common Mistakes:
  • Using calculated columns instead of parameters for user input
  • Ignoring region filter in measure
  • Using parameters only for titles
Recommended

Ready to prove it?

Pass the test and this pattern moves unknown strong while earning +1 Grip toward your certificate.

10 questions~5 mineasy hard