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?   

  • 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] 
    )

2 Replies

  • Eric_Zhang's avatar
    Eric_Zhang
    Icon for Microsoft Employee rankMicrosoft Employee

    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] 
    )
    • efilipe's avatar
      efilipe
      Icon for Helper IV rankHelper IV

      Now it's possible. Do a quick serch in Google.

       

      Edgard