0
0
Power BIbi_tool~20 mins

Table and matrix layouts in Power BI - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Table and Matrix Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
visualization
intermediate
2:00remaining
Identify the correct layout for showing hierarchical data

You want to display sales data grouped by Region, then by Country, and finally by City. Which visual layout is best suited for this hierarchical display?

AA Pie chart showing sales distribution by City
BA Table visual with Region, Country, and City as separate columns
CA Card visual showing total sales for each City
DA Matrix visual with Region as rows, Country as sub-rows, and City as sub-sub-rows
Attempts:
2 left
💡 Hint

Think about which visual allows expanding and collapsing hierarchical levels.

dax_lod_result
intermediate
2:00remaining
Calculate total sales ignoring filters on Product Category

Given a sales table with columns: SalesAmount, ProductCategory, and Date, which DAX measure returns total sales ignoring any filter on ProductCategory but respects other filters?

Power BI
Total Sales Ignore Category = CALCULATE(SUM(Sales[SalesAmount]), ALL(Sales[ProductCategory]))
ACALCULATE(SUM(Sales[SalesAmount]), REMOVEFILTERS(Sales[ProductCategory]))
BCALCULATE(SUM(Sales[SalesAmount]), ALL(Sales[ProductCategory]))
CSUM(Sales[SalesAmount])
DCALCULATE(SUM(Sales[SalesAmount]), ALL(Sales))
Attempts:
2 left
💡 Hint

Use a function that removes filters only on ProductCategory.

data_modeling
advanced
2:00remaining
Optimize a matrix visual with many columns for performance

You have a matrix visual showing monthly sales for 50 products over 3 years. The visual is slow to load. What is the best way to improve performance?

AUse a calculated column to pre-calculate monthly sales per product
BAdd all products as columns instead of rows to reduce visual complexity
CUse a measure with SUM and filter context instead of calculated columns
DRemove the date filter to reduce the number of months shown
Attempts:
2 left
💡 Hint

Measures are generally more efficient than calculated columns for aggregations.

🔧 Formula Fix
advanced
2:00remaining
Identify the error causing incorrect subtotal in matrix visual

A matrix visual shows sales by Region and Product. The subtotal for Region shows zero instead of the sum. Which DAX measure causes this issue?

Sales Amount = IF(HASONEVALUE(Product[ProductName]), SUM(Sales[Amount]), 0)
Power BI
Sales Amount = IF(HASONEVALUE(Product[ProductName]), SUM(Sales[Amount]), 0)
AThe measure returns 0 for subtotals because HASONEVALUE is false for multiple products
BThe measure syntax is invalid and causes a syntax error
CThe measure sums sales incorrectly because it uses SUM instead of SUMX
DThe measure ignores filters on Region causing zero subtotal
Attempts:
2 left
💡 Hint

Check what HASONEVALUE returns when multiple products are in context.

🧠 Conceptual
expert
2:00remaining
Best practice for accessibility in matrix visuals

Which practice improves accessibility for users navigating a matrix visual with keyboard and screen readers?

AUse clear and descriptive column and row headers with ARIA labels
BDisable keyboard navigation to simplify interaction
CUse color only to indicate important data differences
DHide all subtotals to reduce visual clutter
Attempts:
2 left
💡 Hint

Think about how screen readers identify table structure.