0
0
Power BIbi_tool~20 mins

Aggregations for performance in Power BI - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Aggregation Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
dax_lod_result
intermediate
2:00remaining
Calculate Total Sales Using Aggregation Table

You have a large sales fact table and a smaller aggregation table that stores monthly total sales per product. Which DAX measure correctly retrieves the total sales for a selected month from the aggregation table to improve performance?

ATotal Sales = CALCULATE(SUM('MonthlySalesAgg'[TotalSales]), FILTER('MonthlySalesAgg', 'MonthlySalesAgg'[Month] = SELECTEDVALUE('Sales'[Month])))
BTotal Sales = SUM('Sales'[SalesAmount])
CTotal Sales = SUM('MonthlySalesAgg'[TotalSales])
DTotal Sales = CALCULATE(SUM('Sales'[SalesAmount]), ALLEXCEPT('Sales', 'Sales'[Month]))
Attempts:
2 left
💡 Hint

Think about which table is optimized for faster aggregation.

visualization
intermediate
2:00remaining
Best Visualization for Aggregated Data

You have aggregated sales data by region and month. Which visualization best helps users quickly compare total sales across regions over time?

AA line chart showing monthly sales trends for each region
BA clustered bar chart showing sales by region for a selected month
CA pie chart showing total sales by region for the entire year
DA table listing sales numbers by region and month
Attempts:
2 left
💡 Hint

Consider which chart type best shows changes over time for multiple categories.

data_modeling
advanced
2:00remaining
Designing Aggregation Tables for Performance

You want to improve report performance by creating aggregation tables. Which design principle is most important to ensure aggregations speed up queries?

AInclude all columns from the fact table in the aggregation table to avoid joins
BAggregate data at a higher granularity matching common query filters
CCreate aggregation tables with calculated columns instead of measures
DAggregate data at the lowest granularity possible to maximize detail
Attempts:
2 left
💡 Hint

Think about how users filter reports and what level of detail they need.

🔧 Formula Fix
advanced
2:00remaining
Identify the Issue in Aggregation Measure

Given this DAX measure intended to use an aggregation table, what is the problem?

Aggregated Sales = CALCULATE(SUM('AggSales'[SalesAmount]), 'AggSales'[Year] = YEAR(TODAY()))
Power BI
Aggregated Sales = CALCULATE(SUM('AggSales'[SalesAmount]), 'AggSales'[Year] = YEAR(TODAY()))
AThe measure causes a circular dependency error
BThe measure will return sales for all years, ignoring the filter
CThe filter condition syntax is invalid; it should use FILTER function
DThe measure will return sales only for the current year correctly
Attempts:
2 left
💡 Hint

Check how filter conditions are written inside CALCULATE.

🧠 Conceptual
expert
3:00remaining
When to Use Aggregations vs Direct Query

In a Power BI model connected to a very large database, when is it better to use aggregation tables instead of relying on Direct Query mode?

AWhen the source database supports fast live connections without limits
BWhen the data model is small and fits entirely in memory
CWhen users need real-time data and cannot tolerate any delay
DWhen queries are slow and users mostly analyze summarized data
Attempts:
2 left
💡 Hint

Think about trade-offs between query speed and data freshness.