Get startedGet started for free

Interpreting SWITCH()

Logical functions are utilized to perform more complex computations. As you begin to write these complex computations it's important that you understand how to decipher the expected results when writing it with DAX.

What is the result of the following DAX function?

SWITCH(TRUE, 
    OR(FALSE, FALSE), "1", 
    AND(TRUE, FALSE), "2", 
    OR(TRUE, FALSE), "3", 
    "4" )

This exercise is part of the course

Intermediate DAX in Power BI

View Course

Hands-on interactive exercise

Turn theory into action with one of our interactive exercises

Start Exercise