Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi, I'm somewhat of a novice and trying to calcuate a margin that varies based on the sum.
For example
Is there a way to create an active calculation for this in Power BI?
I'd like to calculate and show the margin amount over time. In the example data below, I have week-by-week data that goes back to before the 12K threshold and upcoming weeks that will exceed the 12K threshold. How can I create an active calculation so that I can visualize the week-by-week margin despite the variable rate?
Week | Gross Revenue | Margin Amount |
1/6/2017 | $ 10,500.00 | $ 3,150.00 |
1/13/2017 | $ 11,000.00 | $ 3,300.00 |
1/20/2017 | $ 11,750.00 | $ 3,525.00 |
1/27/2017 | $ 12,500.00 | $ 3,700.00 |
2/3/2017 | $ 13,250.00 | $ 3,850.00 |
2/10/2017 | $ 14,500.00 | $ 4,100.00 |
2/17/2017 | $ 15,250.00 | $ 4,250.00 |
2/24/2017 | $ 16,000.00 | $ 4,400.00 |
3/2/2017 | ? | ? |
Solved! Go to Solution.
hi @dpancratz
Try creating a calculated column as follows
MarginAmount = IF( [Gross Revenue] <= 12000 ,
[Gross Revenue] *.30,
3600 + ([Gross Revenue] - 12000 ) * .20 )
The output generated based on your data using the above formula
If this solves your issue, please acceept this as a solution and also give KUDOS.
Cheers
CheenuSing
hi @dpancratz
Try creating a calculated column as follows
MarginAmount = IF( [Gross Revenue] <= 12000 ,
[Gross Revenue] *.30,
3600 + ([Gross Revenue] - 12000 ) * .20 )
The output generated based on your data using the above formula
If this solves your issue, please acceept this as a solution and also give KUDOS.
Cheers
CheenuSing
Very helpful! Thank you!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
108 | |
100 | |
78 | |
64 | |
58 |
User | Count |
---|---|
148 | |
111 | |
94 | |
84 | |
67 |