Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to add two columns in a DAX measure.
Power BI
Total Sales = SUM(Sales[Quantity]) [1] SUM(Sales[Price]) Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using '-' instead of '+' causes subtraction.
Using '*' or '/' changes the operation to multiplication or division.
✗ Incorrect
The plus sign (+) is used to add two values in DAX.
2fill in blank
mediumComplete the code to calculate the difference between two columns.
Power BI
Difference = SUM(Sales[Revenue]) [1] SUM(Sales[Cost]) Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using '+' adds values instead of subtracting.
Using '*' or '/' changes the operation incorrectly.
✗ Incorrect
The minus sign (-) subtracts one value from another in DAX.
3fill in blank
hardFix the error in the code to multiply two columns correctly.
Power BI
Total Value = SUM(Sales[Quantity]) [1] SUM(Sales[UnitPrice]) Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using '+' or '-' instead of '*'.
Using '/' causes division, not multiplication.
✗ Incorrect
The asterisk (*) is used for multiplication in DAX.
4fill in blank
hardFill both blanks to calculate the average price per unit.
Power BI
Average Price = SUM(Sales[Revenue]) [1] SUM(Sales[Quantity]) [2] 1
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using '+' instead of '-' changes the calculation.
Using '*' instead of '/' causes wrong results.
✗ Incorrect
First, divide total revenue by quantity using '/'. Then subtract 1 using '-'.
5fill in blank
hardFill all three blanks to calculate the profit margin percentage.
Power BI
Profit Margin = (SUM(Sales[Revenue]) [1] SUM(Sales[Cost])) [2] SUM(Sales[Revenue]) [3] 100
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using '+' instead of '-' changes profit calculation.
Using '*' instead of '/' causes wrong division.
Forgetting to multiply by 100 results in decimal, not percentage.
✗ Incorrect
Subtract cost from revenue with '-'. Divide by revenue with '/'. Multiply by 100 with '*'.