Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
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
Solved! Go to Solution.
See if this helps. The formula below does this logic:
Bonus =
ROUND(
IF(
[Total Sales] < 1000,
[Total Sales] * .05,
IF(
[Total Sales]>= 1000 && [Total Sales] < 2000,
[Total Sales] * .06,
[Total Sales] * .075
)
)
,2
)
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI ReportingSee if this helps. The formula below does this logic:
Bonus =
ROUND(
IF(
[Total Sales] < 1000,
[Total Sales] * .05,
IF(
[Total Sales]>= 1000 && [Total Sales] < 2000,
[Total Sales] * .06,
[Total Sales] * .075
)
)
,2
)
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI ReportingYes, 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)
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 47 | |
| 36 | |
| 27 | |
| 15 | |
| 15 |
| User | Count |
|---|---|
| 58 | |
| 56 | |
| 38 | |
| 21 | |
| 21 |