By Fatskills Exam Guides Team — the exam nerds behind 28,500+ quizzes and 2.1M practice questions across 500+ global exams.
(For real projects & PL-300 exam prep)
You’re building a sales dashboard for a retail client. The VP of Sales wants to: - See total revenue by region → drill into states → drill into cities → see individual stores.- Simulate how a 10% price increase would impact profit margins before rolling it out.
Without hierarchies, you’d need separate visuals for each level (Region → State → City → Store), cluttering the dashboard and forcing users to manually filter. Without What-If parameters, the VP would have to export data to Excel, run calculations, and re-import—slow, error-prone, and not interactive.
Hierarchies let users navigate data intuitively (like zooming in on a map). What-If parameters turn static reports into dynamic "what-if" simulators, enabling data-driven decisions without leaving Power BI.
Real-world impact:- Hierarchies: Reduce dashboard clutter, improve user adoption, and speed up analysis (e.g., "Why is revenue down in the Northeast? Drill to see it’s just Boston").- What-If parameters: Enable scenario planning (e.g., "What if we discount 15%?"), pricing experiments, and forecasting—critical for finance, sales, and operations teams.
Region → State → City → Store
State
City
North America
USA
Canada
Store
Region
Texas
Edit interactions
Discount Rate = 10%
[Revenue] * (1 - [Discount Rate])
Discount Rate = 100%
Discount Rate
Revenue
Goal: Create a hierarchy Region → State → City → Store and test drill-down in a matrix visual.
Open Power BI Desktop → Home → Get Data → Excel → Select AdventureWorks Sales.xlsx → Load Sales table.
Home
Get Data
Excel
AdventureWorks Sales.xlsx
Sales
Create the hierarchy:
Model
New hierarchy
Geography
Drag Region, State, City, and Store into the hierarchy (order matters!).
Add a matrix visual:
Report
Matrix
Rows
Drag Revenue to Values.
Values
Test drill-down:
+
California
New York
Click the ↑ icon to drill up.
↑
Enable "Expand all":
Format
Row headers
Expand all
On
Goal: Create a Discount Rate parameter (0%–30%) and a measure to calculate discounted revenue.
Modeling
New Parameter
Numeric range
Decimal number
0
0.3
0.01
0.1
Click OK. A new table Discount Rate appears in the Fields pane.
OK
Fields
Add a slider:
Insert
Slider
Resize the slider and place it near your visuals.
Create a measure for discounted revenue:
New measure
dax Discounted Revenue = SUM(Sales[Revenue]) * (1 - 'Discount Rate'[Discount Rate Value])
Format as Currency.
Currency
Add a card visual for the measure:
Card
Discounted Revenue
Add a dynamic title:
Title
fx
dax "Projected Revenue at " & FORMAT('Discount Rate'[Discount Rate Value], "0%") & " Discount"
Test the parameter:
15%
Hierarchy1
Year → Quarter → Month
Month → Year
IF('Discount Rate'[Value] > 1, 0, [Revenue] * (1 - 'Discount Rate'[Value]))
10%
'Discount Rate'[Discount Rate Value]
150%
"You need to let users drill from Product Category to Product Subcategory. What’s the fastest way?"
Product Category
Product Subcategory
Category
Subcategory
Drill-down behavior:
"A user drills into 2023 in a matrix but sees no data. What’s the issue?"
2023
Quarter
What-If parameters:
"You create a Price Increase parameter but the measure doesn’t update. What’s missing?"
Price Increase
'Price Increase'[Price Increase Value]
Dynamic titles:
FORMAT([Parameter], "0%")
Challenge:Create a Tax Rate parameter (0%–20%) and a measure to calculate Net Revenue = Revenue * (1 - Tax Rate). Add a card visual with a dynamic title showing the current tax rate.
Tax Rate
Net Revenue = Revenue * (1 - Tax Rate)
Solution:1. Create a numeric parameter Tax Rate (min: 0, max: 0.2, increment: 0.01).2. Add a measure: dax Net Revenue = SUM(Sales[Revenue]) * (1 - 'Tax Rate'[Tax Rate Value]) 3. Add a card visual with Net Revenue and set the title to: dax "Net Revenue at " & FORMAT('Tax Rate'[Tax Rate Value], "0%") & " Tax"
0.2
dax Net Revenue = SUM(Sales[Revenue]) * (1 - 'Tax Rate'[Tax Rate Value])
Net Revenue
dax "Net Revenue at " & FORMAT('Tax Rate'[Tax Rate Value], "0%") & " Tax"
Why it works: The parameter’s value column (Tax Rate Value) feeds into the measure, and the FORMAT function displays the rate as a percentage.
Tax Rate Value
FORMAT
'Parameter'[Parameter Value]
Join 4M+ learners. Unlock unlimited quizzes, wrong-answer tracking, flashcards + reminders, study guides, and 1-on-1 challenges.