Forum Discussion

vanessafvg's avatar
vanessafvg
Icon for Community Champion rankCommunity Champion
9 years ago
Solved

DAX equivalent of SQL Coalesce

does any one know if a function like this exists?   
  • Eric_Zhang's avatar
    9 years ago

    vanessafvg

    There's no such a equivalent function, however you could replicate it with SWITCH.

     

    value = SWITCH( FALSE(),
     ISBLANK([value1]),[value1]
    ,ISBLANK([value2]),[value2]
    ,ISBLANK([value3]),[value3] 
    )