0
0
Power BIbi_tool~20 mins

Parameters in Power BI - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Parameter Pro
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Purpose of Parameters in Power BI

What is the main purpose of using parameters in Power BI reports?

ATo create complex calculated columns that update automatically
BTo permanently store data in the Power BI dataset for faster queries
CTo automatically refresh data sources on a schedule
DTo allow users to dynamically change filter values or inputs without editing the report directly
Attempts:
2 left
💡 Hint

Think about how parameters help users interact with reports without changing the underlying data.

dax_lod_result
intermediate
2:00remaining
DAX Measure Using Parameter for Sales Threshold

Given a parameter named SalesThreshold with value 10000, what is the result of this DAX measure?

High Sales Count = CALCULATE(COUNTROWS(Sales), Sales[Amount] > SalesThreshold)

Assuming the Sales table has 3 rows with Amounts: 8000, 12000, 15000.

A0
B2
C1
D3
Attempts:
2 left
💡 Hint

Count rows where Amount is greater than 10000.

visualization
advanced
2:00remaining
Using Parameters to Create Dynamic Titles

You want to create a dynamic report title that changes based on a parameter SelectedYear. Which approach correctly uses the parameter in a DAX measure for the title?

AReport Title = "Sales Report for " & SelectedYear
BReport Title = CONCATENATE("Sales Report for ", SelectedYear)
CReport Title = "Sales Report for " & FORMAT(SelectedYear, "0")
DReport Title = "Sales Report for " + SelectedYear
Attempts:
2 left
💡 Hint

Remember to convert numeric parameters to text before concatenation.

🎯 Scenario
advanced
2:00remaining
Scenario: Filtering Data with Parameters in Power Query

You want to filter a table in Power Query based on a parameter RegionParam. Which M code snippet correctly applies this filter?

AFilteredTable = Table.SelectRows(Source, each [Region] = RegionParam)
BFilteredTable = Table.SelectRows(Source, each RegionParam = [Region])
CFilteredTable = Table.SelectRows(Source, each [Region] <> RegionParam)
DFilteredTable = Table.SelectRows(Source, each Text.Contains([Region], RegionParam))
Attempts:
2 left
💡 Hint

Check the syntax for filtering rows where the column equals the parameter.

🔧 Formula Fix
expert
2:00remaining
Debugging Parameter Usage in DAX Measure

Consider this DAX measure using a parameter DiscountRate:

Final Price = SUM(Sales[Price]) * (1 - DiscountRate)

When running the report, the measure returns an error. What is the most likely cause?

ADiscountRate is a parameter but used without wrapping in a function like SELECTEDVALUE
BSUM(Sales[Price]) cannot be multiplied by a parameter
CDiscountRate parameter must be declared inside the measure
DThe measure syntax is invalid because of missing CALCULATE
Attempts:
2 left
💡 Hint

Parameters in DAX measures often need to be wrapped to get their current value.