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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
gtamir
Post Patron
Post Patron

Nesting IF

I have this formula to give a bonus from 5 to 120 acording to the value in Total. I want to add a condition that if TOTAL is geater then 200, then 7.5%.

Bonus= ROUNDUP(IF(sum(Sales[Total])<=100,5,MIN(120,0.05*SUM(Sales[Total]))),0)

 

Thanks Giora

1 ACCEPTED SOLUTION
edhans
Community Champion
Community Champion

See if this helps. The formula below does this logic:

  • If sales < 1,000, then 5% bonus
  • If sales <> 1000 and 2000 then 6% bonus
  • otherwise (i.e. > 2000) then 7.5% bonus

 

Bonus = 
ROUND(
    IF(
        [Total Sales] < 1000,
        [Total Sales] * .05,
        IF(
            [Total Sales]>= 1000 && [Total Sales] < 2000,
            [Total Sales] * .06,
            [Total Sales] * .075
        )
    )
    ,2
)


Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

View solution in original post

2 REPLIES 2
edhans
Community Champion
Community Champion

See if this helps. The formula below does this logic:

  • If sales < 1,000, then 5% bonus
  • If sales <> 1000 and 2000 then 6% bonus
  • otherwise (i.e. > 2000) then 7.5% bonus

 

Bonus = 
ROUND(
    IF(
        [Total Sales] < 1000,
        [Total Sales] * .05,
        IF(
            [Total Sales]>= 1000 && [Total Sales] < 2000,
            [Total Sales] * .06,
            [Total Sales] * .075
        )
    )
    ,2
)


Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

Yes, I adopted it to my needs and it works. 

 

Bonus 1303 =
ROUNDUP(
IF(
[Sum Total] <=100, 5,
IF ([Sum Total]> 100 && [Sum Total] <= 200,
[Sum Total] * .05,MIN(120,[Sum Total]*.075) ) ) ,0)

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

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.