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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Qotsa
Helper V
Helper V

If statement using or

Hi,

 

Have the below measure. It returns the number 6 if conditions are met. This is what i want.

 

ScoreM =
VAR conscore = IF([8 Wks Con] = 7 && [8 Wk Avg] > 20,6)
Return
conscore
 
However I need to add multiple if statements. Example is 
 
ScoreM =
VAR conscore = IF([8 Wks Con] = 7 && [8 Wk Avg] > 20,6)
||
IF([8 Wks Con] = 6 && [8 Wk Avg] < 20,1)

Return
conscore
 
What I want from this is if the 1st IF statement is satisifed then return 6 
or
if the 2nd If statement is satisfied return 1.
 
What it is doing instaed is returning True or False.
 
pbis.jpg
 
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Arrh yes. I normally use ';' but then you should just adjust the measure:

 

scoreM = 
IF([8 Wks Con] = 7 && [8 Wks Avg] > 20, 6, IF([8 Wks Con] = 6 && [8 Wks Avg] < 20, 1, BLANK()))

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi

 

How about the following:

ScoreM =
VAR conscore = IF([8 Wks Con] = 7 && [8 Wk Avg] > 20,6; 6; IF([8 Wks Con] = 6 && [8 Wk Avg] < 20,1; 1; BLANK())

Return
conscore

If it works then please mark it as the accepted solution.

@Anonymous  Thks for reply.

 

Giving me syntax errors. Replace some ; with , maybe?

 

sfsef.jpg

Anonymous
Not applicable

Arrh yes. I normally use ';' but then you should just adjust the measure:

 

scoreM = 
IF([8 Wks Con] = 7 && [8 Wks Avg] > 20, 6, IF([8 Wks Con] = 6 && [8 Wks Avg] < 20, 1, BLANK()))

Yeah, that works a treat. Thanks a million.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.