Bird
0
0

You wrote this DAX measure:

medium📝 Formula Fix Q6 of 15
Power BI - Data Cleaning with Power Query
You wrote this DAX measure:
Measure = IF(Sales[Amount] = BLANK(), 0, Sales[Amount])

But it returns an error. What is the problem?
AYou cannot compare a column directly to BLANK()
BBLANK() is not a valid DAX function
CYou must use ISBLANK() to check for blank values
DThe syntax is correct; error is elsewhere
Step-by-Step Solution
Solution:
  1. Step 1: Understand blank value checking in DAX

    Direct comparison with BLANK() is invalid; use ISBLANK() function instead.
  2. Step 2: Correct the measure

    Use IF(ISBLANK(Sales[Amount]), 0, Sales[Amount]) to avoid error.
  3. Final Answer:

    You must use ISBLANK() to check for blank values -> Option C
  4. Quick Check:

    Use ISBLANK() to check blanks [OK]
Quick Trick: Use ISBLANK() to test blanks, not = BLANK() [OK]
Common Mistakes:
  • Comparing column directly to BLANK()
  • Assuming BLANK() can be used in equality
  • Ignoring ISBLANK() function

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Power BI Quizzes