Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Switch doesn't support true/false

I'm getting error for the following dax measure. Each variable returns a number and in switch case I want to compare ok number with not ok number. If check1  is greater or equal than check2 , it'll...
  • amitchandak's avatar
    5 years ago

    Anonymous , there is only one else

     

    like

     

    SWITCH(TRUE(),

    check1 >= check2,"1",
    check3 >= check4,"1",

    Blank()
    )

     

    or add additional condition for 0