DAX stands for Data Analysis Expressions. It is a formula language used to create custom calculations in Power BI.
Click to reveal answer
beginner
Why is DAX important for calculations in Power BI?
DAX allows you to create powerful, dynamic calculations that can analyze data across tables and time, making reports interactive and insightful.
Click to reveal answer
intermediate
How does DAX handle relationships between tables?
DAX can use relationships defined in the data model to perform calculations that combine data from multiple tables seamlessly.
Click to reveal answer
beginner
What is a calculated measure in Power BI using DAX?
A calculated measure is a formula created with DAX that calculates values dynamically based on the current filter context in your report.
Click to reveal answer
intermediate
How does DAX improve report performance in Power BI?
DAX is optimized to work with Power BI's in-memory engine, allowing fast calculations even on large datasets by using efficient query processing.
Click to reveal answer
What is the primary purpose of DAX in Power BI?
ATo create custom calculations and aggregations
BTo design report layouts
CTo import data from Excel
DTo format text in visuals
✗ Incorrect
DAX is used to create custom calculations and aggregations in Power BI reports.
Which of the following is true about DAX and relationships?
ADAX ignores relationships between tables
BDAX deletes relationships automatically
CDAX can use relationships to calculate across tables
DDAX only works with single tables
✗ Incorrect
DAX uses relationships defined in the data model to perform calculations across multiple tables.
What is a calculated measure in Power BI?
AA DAX formula that calculates values dynamically
BA static number entered manually
CA type of chart
DA data import method
✗ Incorrect
Calculated measures are DAX formulas that calculate values dynamically based on filters and context.
How does DAX improve performance in Power BI?
ABy using slow disk storage
BBy optimizing calculations with the in-memory engine
CBy reducing data size manually
DBy disabling visuals
✗ Incorrect
DAX is optimized to work with Power BI's in-memory engine for fast calculations.
Which language is used to write formulas for calculations in Power BI?
ASQL
BHTML
CPython
DDAX
✗ Incorrect
DAX is the formula language used in Power BI for calculations.
Explain why DAX is essential for creating dynamic calculations in Power BI reports.
Think about how your report numbers change when you select different filters.
You got /4 concepts.
Describe how DAX interacts with the data model and relationships in Power BI.
Consider how data from different tables can be combined in one calculation.
You got /4 concepts.
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
Step 1: Understand DAX role in Power BI
DAX is a formula language used to create calculations like sums and averages.
Step 2: Differentiate from other tasks
Designing layouts, importing data, and theming are done by other Power BI features, not DAX.
Final Answer:
To perform calculations and create measures -> Option A
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
Step 1: Review correct DAX sum syntax
The SUM function uses parentheses and column reference with table[column] format.
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.
Final Answer:
Total Sales = SUM(Sales[Amount]) -> Option A
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
Step 1: Understand the AVERAGE function
AVERAGE calculates the mean value of the specified column's numbers.
Step 2: Compare with other options
SUM gives total, COUNT counts rows, MAX finds highest value, so they don't match the measure.
Final Answer:
The average value of the sales amounts -> Option B
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
Step 1: Check syntax of column references
The Costs column reference is missing a closing bracket ")" after Costs[Cost].
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.
Final Answer:
Missing closing bracket in Costs column reference -> Option D
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
Step 1: Understand CALCULATE with FILTER usage
CALCULATE modifies filter context; FILTER creates a table filtered by year matching current year.
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.
Final Answer:
Total Sales CY = CALCULATE(SUM(Sales[Amount]), FILTER(Sales, YEAR(Sales[Date]) = YEAR(TODAY()))) -> Option C
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 unknownstrongwhile earning +1 Grip toward your certificate.