0
0
Power BIbi_tool~10 mins

Aggregations for performance in Power BI - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to calculate the total sales amount.

Power BI
Total Sales = SUM([1])
Drag options to blanks, or click blank then click option'
ASales[Amount]
BSales[Date]
CCustomers[Name]
DProducts[Category]
Attempts:
3 left
💡 Hint
Common Mistakes
Using a non-numeric column like dates or names in SUM.
Forgetting to specify the table and column.
2fill in blank
medium

Complete the code to calculate the average sales amount.

Power BI
Average Sales = AVERAGE([1])
Drag options to blanks, or click blank then click option'
ASales[Quantity]
BSales[Amount]
CProducts[Price]
DCustomers[Age]
Attempts:
3 left
💡 Hint
Common Mistakes
Using a non-sales column like age or quantity.
Confusing average with sum.
3fill in blank
hard

Fix the error in the code to calculate the maximum sales amount.

Power BI
Max Sales = MAX([1])
Drag options to blanks, or click blank then click option'
ASales[Date]
BCustomers[ID]
CSales[Amount]
DProducts[Name]
Attempts:
3 left
💡 Hint
Common Mistakes
Using a date or text column inside MAX.
Not specifying the correct table and column.
4fill in blank
hard

Fill the blank to calculate total sales for a specific product category.

Power BI
Category Sales = CALCULATE(SUM(Sales[Amount]), Sales[Category] [1] "Electronics")
Drag options to blanks, or click blank then click option'
A=
B==
CIN
D>
Attempts:
3 left
💡 Hint
Common Mistakes
Using '==' instead of '=' in DAX.
Using '>' which is not correct for category filtering.
5fill in blank
hard

Fill all three blanks to create a measure that counts customers with sales above 1000.

Power BI
High Value Customers = CALCULATE(DISTINCTCOUNT([1]), FILTER(ALL(Sales), Sales[Amount] [2] [3]))
Drag options to blanks, or click blank then click option'
ACustomers[CustomerID]
B>
C1000
DSales[Date]
Attempts:
3 left
💡 Hint
Common Mistakes
Using a date column instead of customer ID for counting.
Using '=' instead of '>' for filtering sales above 1000.