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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel

Power BI Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.