Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
adoalan
Helper III
Helper III

Dax formula to replicate CASE WHEN from SQL

Hi,

 

I'm trying to replicated this CASE WHEN in Power BI and I got so far. 

 

adoalan_0-1668513229431.png

adoalan_1-1668513265670.png

 

can you help ?

Thank you 

3 REPLIES 3
adoalan
Helper III
Helper III

I got this
Missing Info = IF(ISBLANK(nfp_giftaiddeclaration[Forename]) && ISBLANK(nfp_giftaiddeclaration[Surname]) && ISBLANK(nfp_giftaiddeclaration[House]) && ISBLANK(nfp_giftaiddeclaration[House]) && CONTAINSSTRING(nfp_giftaiddeclaration[Forename],"&" ) && CONTAINSSTRING(nfp_giftaiddeclaration[Surname],"&" ),"Y", "N")
 
 
but I get this error:
adoalan_0-1668524376912.png

 

Create New Calculate column
and try below sytax
Column = IF(('Sheet1 (2)'[Name] = "A")&&('Sheet1 (2)'[Mail ID]="A@gmail.com") &&('Sheet1 (2)'[Amount]>2),"Y","N")Case When.png

Missing Info = IF(ISBLANK(nfp_giftaiddeclaration[Forename]) && ISBLANK(nfp_giftaiddeclaration[Surname]) && ISBLANK(nfp_giftaiddeclaration[House]) && ISBLANK(nfp_giftaiddeclaration[House]) && CONTAINSSTRING(nfp_giftaiddeclaration[Forename],"&" ) && CONTAINSSTRING(nfp_giftaiddeclaration[Surname],"&" ),"Y", "N")
 
I  got up to here ut still getting an error

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.