0
0
Power BIbi_tool~20 mins

Treemap in Power BI - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Treemap Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
visualization
intermediate
1:30remaining
Understanding Treemap Area Representation

You have a treemap visual showing sales by product category. The size of each rectangle represents total sales amount. If the sales for 'Electronics' is twice that of 'Clothing', how will their areas compare?

ABoth rectangles will have the same area regardless of sales.
BThe 'Electronics' rectangle will be twice as large in area as 'Clothing'.
CThe 'Clothing' rectangle will be larger because it has more categories.
DThe size depends on the number of products, not sales amount.
Attempts:
2 left
💡 Hint

Think about what the size of each block in a treemap represents.

dax_lod_result
intermediate
1:30remaining
DAX Measure for Treemap Size by Category

Given a sales table with columns Category and SalesAmount, which DAX measure correctly calculates total sales per category for a treemap?

ATotal Sales = CALCULATE(SUM(Sales[SalesAmount]), ALL(Sales))
BTotal Sales = SUMX(VALUES(Sales[Category]), Sales[SalesAmount])
CTotal Sales = SUM(Sales[SalesAmount])
DTotal Sales = COUNT(Sales[SalesAmount])
Attempts:
2 left
💡 Hint

Think about how to sum sales amounts grouped by category.

data_modeling
advanced
2:00remaining
Modeling Data for Multi-Level Treemap

You want to create a treemap showing sales by Region and then by City within each region. Which data model setup is best?

AHave a single sales table with columns for Region, City, and SalesAmount.
BCreate separate tables for Region and City with no relationships to sales.
CCreate a disconnected table for Region and link City to sales.
DUse only a City table and ignore Region for simplicity.
Attempts:
2 left
💡 Hint

Think about how treemap groups data hierarchically.

🔧 Formula Fix
advanced
2:00remaining
Troubleshooting Treemap Showing Incorrect Sizes

Your treemap visual shows all categories with equal size, even though sales differ. What is the most likely cause?

AThe category field is not added to the treemap.
BThe treemap visual does not support size differences.
CThe data source has no sales data at all.
DThe measure used is a count of categories instead of sum of sales.
Attempts:
2 left
💡 Hint

Check what the measure is calculating.

🧠 Conceptual
expert
2:30remaining
Best Practice for Color Usage in Treemaps

Which color strategy improves accessibility and clarity in a treemap showing product categories with sales values?

AUse a single color hue with varying brightness to represent sales values.
BUse random bright colors for each category without a legend.
CUse red for high sales and green for low sales regardless of categories.
DUse grayscale colors only to avoid distraction.
Attempts:
2 left
💡 Hint

Think about how color differences help users understand data clearly.