Bird
Raised Fist0
Power BIbi_tool~10 mins

Why DAX powers calculations in Power BI - Test Your Understanding

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

Complete the code to create a simple measure that sums the Sales column.

Power BI
Total Sales = SUM([1])
Drag options to blanks, or click blank then click option'
ACustomers[Name]
BSales[Date]
CSales[Amount]
DProducts[Price]
Attempts:
3 left
💡 Hint
Common Mistakes
Using a non-numeric column like Date or Name in SUM causes errors.
2fill in blank
medium

Complete the code to calculate the average sales per order.

Power BI
Average Sales = AVERAGE([1])
Drag options to blanks, or click blank then click option'
ASales[Amount]
BOrders[OrderID]
CCustomers[City]
DProducts[Category]
Attempts:
3 left
💡 Hint
Common Mistakes
Trying to average text or ID columns causes errors or wrong results.
3fill in blank
hard

Fix the error in the measure to calculate total sales for 2023 only.

Power BI
Total Sales 2023 = CALCULATE(SUM(Sales[Amount]), Sales[Year] [1] 2023)
Drag options to blanks, or click blank then click option'
A===
B=
C==
D>
Attempts:
3 left
💡 Hint
Common Mistakes
Using '==' or '===' causes syntax errors in DAX.
4fill in blank
hard

Fill both blanks to create a measure that counts customers from a specific city.

Power BI
Customer Count = CALCULATE(COUNT(Customers[CustomerID]), Customers[City] [1] "[2]")
Drag options to blanks, or click blank then click option'
A=
BNew York
CLos Angeles
D>
Attempts:
3 left
💡 Hint
Common Mistakes
Using '>' instead of '=' for city comparison.
5fill in blank
hard

Fill both blanks to create a measure that calculates total sales for products priced above 100.

Power BI
High Value Sales = CALCULATE(SUM(Sales[Amount]), Products[Price] [1] [2])
Drag options to blanks, or click blank then click option'
A>
B100
C&&
D<
Attempts:
3 left
💡 Hint
Common Mistakes
Using '<' instead of '>' reverses the filter logic.

Practice

(1/5)
1. What is the main purpose of DAX in Power BI?
easy
A. To perform calculations and create measures
B. To design the layout of reports
C. To import data from external sources
D. To create visual themes and colors

Solution

  1. Step 1: Understand DAX role in Power BI

    DAX is a formula language used to create calculations like sums and averages.
  2. Step 2: Differentiate from other tasks

    Designing layouts, importing data, and theming are done by other Power BI features, not DAX.
  3. Final Answer:

    To perform calculations and create measures -> Option A
  4. Quick Check:

    DAX = calculations [OK]
Hint: DAX = calculations, not design or import [OK]
Common Mistakes:
  • Confusing DAX with report design tools
  • Thinking DAX imports data
  • Assuming DAX controls colors or themes
2. Which of the following is the correct syntax to create a simple sum measure in DAX?
easy
A. Total Sales = SUM(Sales[Amount])
B. Total Sales := SUM(Sales[Amount])
C. Total Sales = SUMM(Sales[Amount])
D. Total Sales = SUM[Sales.Amount]

Solution

  1. Step 1: Review correct DAX sum syntax

    The SUM function uses parentheses and column reference with table[column] format.
  2. Step 2: Identify syntax errors in other options

    Total Sales := SUM(Sales[Amount]) uses := which is incorrect in Power BI measures; Total Sales = SUMM(Sales[Amount]) misspells SUM; Total Sales = SUM[Sales.Amount] uses wrong column reference syntax.
  3. Final Answer:

    Total Sales = SUM(Sales[Amount]) -> Option A
  4. Quick Check:

    SUM function syntax = Total Sales = SUM(Sales[Amount]) [OK]
Hint: SUM uses parentheses and table[column] format [OK]
Common Mistakes:
  • Using := instead of = for measures
  • Misspelling function names like SUMM
  • Incorrect column reference syntax
3. Given the DAX measure:
Average Sales = AVERAGE(Sales[Amount])
What will this measure return when used in a report?
medium
A. The total sum of all sales amounts
B. The average value of the sales amounts
C. The count of sales transactions
D. The maximum sales amount

Solution

  1. Step 1: Understand the AVERAGE function

    AVERAGE calculates the mean value of the specified column's numbers.
  2. Step 2: Compare with other options

    SUM gives total, COUNT counts rows, MAX finds highest value, so they don't match the measure.
  3. Final Answer:

    The average value of the sales amounts -> Option B
  4. Quick Check:

    AVERAGE function returns mean = The average value of the sales amounts [OK]
Hint: AVERAGE means mean value, not sum or count [OK]
Common Mistakes:
  • Confusing AVERAGE with SUM or COUNT
  • Assuming it returns max value
  • Ignoring function purpose
4. Identify the error in this DAX measure:
Profit = SUM(Sales[Amount]) - SUM(Costs[Cost)
medium
A. Minus sign (-) is not allowed in DAX
B. SUM function cannot be used with Costs table
C. Measure name cannot be 'Profit'
D. Missing closing bracket in Costs column reference

Solution

  1. Step 1: Check syntax of column references

    The Costs column reference is missing a closing bracket ")" after Costs[Cost].
  2. Step 2: Validate other parts

    SUM can be used on any numeric column; measure names can be any valid identifier; minus sign is valid for subtraction.
  3. Final Answer:

    Missing closing bracket in Costs column reference -> Option D
  4. Quick Check:

    Bracket mismatch causes syntax error = Missing closing bracket in Costs column reference [OK]
Hint: Check all brackets carefully in column references [OK]
Common Mistakes:
  • Ignoring missing or extra brackets
  • Thinking function usage is wrong
  • Assuming measure names are restricted
  • Misunderstanding operators allowed
5. You want to create a measure that calculates the total sales only for the current year dynamically. Which DAX expression correctly achieves this?
hard
A. Total Sales CY = SUM(Sales[Amount]) WHERE YEAR(Sales[Date]) = YEAR(TODAY())
B. Total Sales CY = CALCULATE(SUM(Sales[Amount]), YEAR(Sales[Date]) = YEAR(TODAY()))
C. Total Sales CY = CALCULATE(SUM(Sales[Amount]), FILTER(Sales, YEAR(Sales[Date]) = YEAR(TODAY())))
D. Total Sales CY = SUMX(FILTER(Sales, Sales[Date] = TODAY()), Sales[Amount])

Solution

  1. Step 1: Understand CALCULATE with FILTER usage

    CALCULATE modifies filter context; FILTER creates a table filtered by year matching current year.
  2. Step 2: Analyze each option's correctness

    Total Sales CY = CALCULATE(SUM(Sales[Amount]), YEAR(Sales[Date]) = YEAR(TODAY())) uses a boolean expression directly inside CALCULATE which is invalid; Total Sales CY = SUM(Sales[Amount]) WHERE YEAR(Sales[Date]) = YEAR(TODAY()) uses SQL-like WHERE which is not DAX syntax; Total Sales CY = SUMX(FILTER(Sales, Sales[Date] = TODAY()), Sales[Amount]) filters only today's date, not the whole year.
  3. Final Answer:

    Total Sales CY = CALCULATE(SUM(Sales[Amount]), FILTER(Sales, YEAR(Sales[Date]) = YEAR(TODAY()))) -> Option C
  4. Quick Check:

    Use CALCULATE with FILTER for dynamic year filter [OK]
Hint: Use CALCULATE with FILTER for dynamic date filters [OK]
Common Mistakes:
  • Using boolean conditions directly in CALCULATE
  • Applying SQL syntax like WHERE in DAX
  • Filtering only one day instead of full year
Recommended

Ready to prove it?

Pass the test and this pattern moves unknown strong while earning +1 Grip toward your certificate.

10 questions~5 mineasy hard