cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
vanessafvg Super Contributor
Super Contributor

DAX equivalent of SQL Coalesce

does any one know if a function like this exists?   


Did I answer your question? Mark my post as a solution.
Proud a to be a Datanaut!
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Moderator Eric_Zhang
Moderator

Re: DAX equivalent of SQL Coalesce

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

View solution in original post

1 REPLY 1
Highlighted
Moderator Eric_Zhang
Moderator

Re: DAX equivalent of SQL Coalesce

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

View solution in original post

Helpful resources

Announcements
Ask Amanda Anything Q&A

Ask Amanda Anything Q&A

Learn the answers to some of the questions asked during the Amanda Triple A event.

October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Solution Badges

New Solution Badges

Two waves of brand new solution badges are coming! Read the article for more information on our new community badges.

Analytics in Azure virtual event

Analytics in Azure virtual event

Experience a limitless analytics service built to ingest, prep, manage, and serve data for immediate use in Power BI.

Users Online
Currently online: 240 members 2,705 guests
Please welcome our newest community members: