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
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
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.