Forum Discussion
Case when in Power BI
I have this SQL code and I need to convert this in a dax in Power BI
Can I get some help:
Thank you
adoalan you're missing two brackets "))" after "...Street1])" and after "...PostalCode])"
adoalan
You are missing the brackets :-Can you just try this :-
Valldata Fix = IF(nfp_giftaiddeclaration[cratedbyyominame] = "Valldata" && ISBLANK(nfp_giftaiddeclaration[House])
&& ISBLANK(nfp_giftaiddeclaration[Postcode]) && NOT(ISBLANK(RELATED(contact[Address 1: Street 1]))) && NOT(ISBLANK(RELATED(contact[Address 3: ZIP/Postal Code]))), "Y", "N")
10 Replies
- JorgePinhoSolution Sage
Hello adoalan !
Create a dax column using this:
Valldata Fix = IF( gad.createdbyname = "Valldata" && ISBLANK(gad.nfp_declaredhouse) && ISBLANK(gad.nfp_declaredpostcode) && NOT(ISBLANK(c.adress1_line1)) && NOT(ISBLANK(c.adress1_postalcode)), "Y", "N")- adoalanHelper III
JorgePinho this works half for me. So the c.address1_line1 is coming from a different table called contact and it is not popping up when search. Can you help here?
- JorgePinhoSolution Sage
Are the tables connected?