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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
RvdHeijden
Post Prodigy
Post Prodigy

Need some help with my formula ;) whoes Game ?

Hello,

 

Can someone fix my formula ? it now returns an error: Operator or expression '( )' is not supported in this context.

 

HP = IF(OR(Adressen[R.N.A.]="R40";(Adressen[R.N.A.]="R42"));"";
    IF(Adressen[HomePassed]<>BLANK();"Ja";
        IF(OR(Adressen[status naam]="2.0";
            (Adressen[status naam]="2.1";
            (Adressen[status naam]="4.10";
            (Adressen[status naam]="4.11";
            (Adressen[status naam]="4.12";
            "Ja";
            "Nee"
))))))))

1 ACCEPTED SOLUTION
v-caliao-msft
Employee
Employee

@vanessafvg,

 

Please try the formula below.

HP = IF((Adressen[R.N.A.]="R40" || Adressen[R.N.A.]="R42");"";
    	IF(Adressen[HomePassed]<>BLANK();"Ja";
        	IF((Adressen[status naam]="2.0"||
		    	Adressen[status naam]="2.1"||
            		Adressen[status naam]="4.10"||
            		Adressen[status naam]="4.11"||
            		Adressen[status naam]="4.12");"Ja";"Nee"
           	  )
        )
   )

 

Regards,

Charlie Liao

View solution in original post

2 REPLIES 2
v-caliao-msft
Employee
Employee

@vanessafvg,

 

Please try the formula below.

HP = IF((Adressen[R.N.A.]="R40" || Adressen[R.N.A.]="R42");"";
    	IF(Adressen[HomePassed]<>BLANK();"Ja";
        	IF((Adressen[status naam]="2.0"||
		    	Adressen[status naam]="2.1"||
            		Adressen[status naam]="4.10"||
            		Adressen[status naam]="4.11"||
            		Adressen[status naam]="4.12");"Ja";"Nee"
           	  )
        )
   )

 

Regards,

Charlie Liao

vanessafvg
Super User
Super User

@RvdHeijden use http://www.daxformatter.com/

 

to identify issues  the above link however also check the documentation

 

https://msdn.microsoft.com/en-us/library/ee634951.aspx

 

or only takes 2 arguments, in this scenario better to use switch

 

 

 

 




If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.