0
0
Power BIbi_tool~10 mins

SUMX and iterators 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 using SUMX.

Power BI
Total Sales = SUMX(Sales, Sales[Quantity] [1] Sales[Price])
Drag options to blanks, or click blank then click option'
A*
B-
C+
D/
Attempts:
3 left
💡 Hint
Common Mistakes
Using + instead of * causes incorrect total calculation.
Using / or - will produce wrong results.
2fill in blank
medium

Complete the code to calculate total profit by iterating over the Sales table.

Power BI
Total Profit = SUMX(Sales, Sales[Quantity] * (Sales[Price] [1] Sales[Cost]))
Drag options to blanks, or click blank then click option'
A+
B/
C-
D*
Attempts:
3 left
💡 Hint
Common Mistakes
Using + instead of - will add cost to price, which is incorrect.
Using * or / inside parentheses changes the formula meaning.
3fill in blank
hard

Fix the error in the code to correctly calculate total discount amount.

Power BI
Total Discount = SUMX(Sales, Sales[Quantity] [1] Sales[Discount])
Drag options to blanks, or click blank then click option'
A+
B/
C-
D*
Attempts:
3 left
💡 Hint
Common Mistakes
Using + adds values incorrectly.
Using - or / changes the meaning and causes errors.
4fill in blank
hard

Fill both blanks to calculate total revenue after discount.

Power BI
Total Revenue = SUMX(Sales, Sales[Quantity] [1] (Sales[Price] [2] Sales[Discount]))
Drag options to blanks, or click blank then click option'
A*
B-
C+
D/
Attempts:
3 left
💡 Hint
Common Mistakes
Using + instead of - inside parentheses adds discount incorrectly.
Using + or / instead of * for quantity multiplication causes errors.
5fill in blank
hard

Fill all three blanks to calculate total tax amount on sales.

Power BI
Total Tax = SUMX(Sales, Sales[Quantity] [1] Sales[Price] [2] Sales[TaxRate] [3] 0.01)
Drag options to blanks, or click blank then click option'
A*
B+
D-
Attempts:
3 left
💡 Hint
Common Mistakes
Using + instead of * breaks the multiplication chain.
Using - instead of * causes wrong calculations.