Bird
Raised Fist0
Power BIbi_tool~20 mins

Why DAX powers calculations in Power BI - Challenge Your Understanding

Choose your learning style10 modes available
Challenge - 5 Problems
🎖️
DAX Mastery in Power BI
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Why is DAX preferred for calculations in Power BI?

Power BI uses DAX for calculations. What is the main reason DAX is preferred over other languages for this?

ADAX is a general-purpose programming language used for web development.
BDAX is optimized to work with relational data models and supports context-aware calculations.
CDAX is only used for data import and does not support calculations.
DDAX requires no understanding of data relationships to create calculations.
Attempts:
2 left
💡 Hint

Think about how Power BI handles data relationships and filtering.

❓ dax_lod_result
intermediate
2:00remaining
Calculate Total Sales with Filter Context

Given a Sales table with columns: Product, Region, and SalesAmount, what is the result of this DAX measure when filtered by Region = 'West'?

Sales West = CALCULATE(SUM(Sales[SalesAmount]), Sales[Region] = "West")

Sales table data:

Product | Region | SalesAmount
A       | West   | 100
B       | East   | 200
C       | West   | 150
D       | North  | 50
Power BI
Sales West = CALCULATE(SUM(Sales[SalesAmount]), Sales[Region] = "West")
A100
B500
C250
DSyntax Error
Attempts:
2 left
💡 Hint

Add only sales where Region is West.

🔧 Formula Fix
advanced
2:00remaining
Identify the error in this DAX measure

What error does this DAX measure produce?

Average Sales = AVERAGE(Sales[SalesAmount], Sales[Region] = "East")
AReturns average sales for East region correctly
BReturns total sales instead of average
CRuntime error due to missing table reference
DSyntax Error due to incorrect use of AVERAGE function arguments
Attempts:
2 left
💡 Hint

Check the syntax of AVERAGE function and how filters are applied.

❓ visualization
advanced
2:00remaining
Best visualization for showing sales trends over time

You want to show how sales change month by month for different product categories. Which visualization type is best suited for this in Power BI?

ALine chart with Product Category on legend and Month on axis
BPie chart showing total sales per product category
CTable showing raw sales data
DStacked bar chart showing sales by region only
Attempts:
2 left
💡 Hint

Think about how to show trends over time clearly.

❓ data_modeling
expert
3:00remaining
Handling many-to-many relationships in Power BI data model

You have two tables: Customers and Products. Customers can buy multiple products, and products can be bought by multiple customers. How should you model this many-to-many relationship in Power BI?

ACreate a bridge table (fact table) with CustomerID and ProductID to connect both tables.
BDirectly create a one-to-one relationship between Customers and Products tables.
CMerge Customers and Products tables into one table to avoid relationships.
DUse only one table and ignore the relationship.
Attempts:
2 left
💡 Hint

Think about how to represent many-to-many relationships properly.

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