Bird
0
0

You wrote this DAX formula for conditional formatting: IF(Sales > 1000, "Green", "Red". Why does it cause an error?

medium📝 Formula Fix Q6 of 15
Power BI - Formatting and Design
You wrote this DAX formula for conditional formatting: IF(Sales > 1000, "Green", "Red". Why does it cause an error?
AIncorrect function name
BWrong color names
CMissing closing parenthesis
DSales is not a valid column
Step-by-Step Solution
Solution:
  1. Step 1: Check the DAX formula syntax

    The formula IF(Sales > 1000, "Green", "Red" is missing a closing parenthesis at the end.
  2. Step 2: Identify the syntax error

    Without the closing parenthesis, the formula is incomplete and causes an error.
  3. Final Answer:

    Missing closing parenthesis -> Option C
  4. Quick Check:

    Syntax error = Missing parenthesis [OK]
Quick Trick: Always count opening and closing parentheses [OK]
Common Mistakes:
  • Forgetting to close parentheses
  • Using wrong function names
  • Assuming color names cause errors

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Power BI Quizzes