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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Vanessa250919
Helper V
Helper V

IF condition multiple

Hello COmmunity,

 

I try to used IF with multiple condition but does't worked ...

AmountPrime = IF([Med%]>1.15,"5€", [Med%] >1.2,"20€")
 
I need MED% < 115% = NOT
MED%>= 115% = 5€
MED% >120% = 10€
 
It's possible ? 
3 REPLIES 3
BeaBF
Super User
Super User

Try this formula, where the first condition makes you avoid considering blanks:
IF(ISBLANK(Tabella[Med%]), BLANK(), IF( Tabella[Med%] < 1.15, "NOT", IF(Tabella[Med%] >= 1.15 || Tabella[Med%] < 1.20, "5 euro", IF(Tabella[Med%] > 1.20, "10 euro", BLANK()))))
 
It works?
B.
BeaBF
Super User
Super User

You need to create a concatenation of IF conditions, as follows:

IF(Table[MED] < 1.15, "NOT", IF(Table[MED] >= 1.15 || Table[MED] < 1.20, "5 euro", IF(Table[MED] > 1.20, "10 euro", BLANK())))
 
is that what you wanted?
B.
 

@BeaBF Yes it's that but I a big isssue if I make a formule with < it's not ok and > it's ok check my printscreen

>

Vanessa250919_0-1631817413472.png

<

Vanessa250919_1-1631817435741.png

I don't know why ... it's same with SWITCH(TRUE 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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