Challenge - 5 Problems
Null and Blank Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
❓ dax_lod_result
intermediate2:00remaining
DAX Measure Output with BLANK Handling
Given the following DAX measure, what is the output when the SalesAmount column contains some BLANK values?
Average Sales = AVERAGEX(FILTER(Sales, NOT(ISBLANK(Sales[SalesAmount]))), Sales[SalesAmount])
Attempts:
2 left
💡 Hint
Think about how FILTER and ISBLANK work together to exclude BLANKs.
✗ Incorrect
The FILTER removes rows where SalesAmount is BLANK, so AVERAGEX averages only non-blank values.
❓ visualization
intermediate2:00remaining
Best Visualization to Show Missing Data
You want to create a report that clearly shows which product categories have missing sales data (null or blank). Which visualization type is best suited for this purpose?
Attempts:
2 left
💡 Hint
Think about how to compare missing and present data side by side.
✗ Incorrect
A stacked bar chart can visually separate missing and non-missing counts per category, making it easy to spot missing data.
❓ data_modeling
advanced2:00remaining
Handling Nulls in Relationships
In your data model, the 'CustomerID' column in the Sales table has some null values. What is the best practice to handle these nulls to maintain accurate relationships with the Customers table?
Attempts:
2 left
💡 Hint
Think about how relationships require matching keys and how to handle unmatched keys.
✗ Incorrect
Replacing nulls with a placeholder and adding a dummy customer allows the relationship to work without losing data.
🎯 Scenario
advanced2:00remaining
Scenario: Calculating Total Sales with Nulls
You have a SalesAmount column with some null values. You want to calculate total sales treating nulls as zero. Which DAX measure achieves this correctly?
Attempts:
2 left
💡 Hint
Consider how SUM handles BLANKs and how to replace them with zero.
✗ Incorrect
SUM ignores BLANKs, so to treat them as zero, use SUMX with IF to replace BLANK with zero.
🔧 Formula Fix
expert2:00remaining
Debugging Unexpected BLANK Result
You wrote this DAX measure:
But it always returns "No Nulls" even when there are null values. What is the cause?
Measure = IF(COUNTROWS(FILTER(Sales, Sales[Amount] = BLANK())) > 0, "Has Nulls", "No Nulls")
But it always returns "No Nulls" even when there are null values. What is the cause?
Attempts:
2 left
💡 Hint
Think about how to check for BLANK values in DAX conditions.
✗ Incorrect
In DAX, you cannot compare a column directly to BLANK() using =; ISBLANK() function must be used.