Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi!
I am new to PBI and already have a challenge that I have been struggling with.
I want to set the profit margin to always be 10% for every sales order line that has "cleaning service" as product type, regardless of what the actual margin would be. For any other product type / sales order line the margin should remain what it is.
Sample Data:
Sales Order Number | Product Type | Sales | Profit | Profit% |
1000 | SUV 1 | 4000 | 1500 | 38% |
1000 | Cleaning Service | 500 | 100 | 20% |
Total | 4500 | 1600 | 36% |
Should turn in:
Sales Order Number | Product Type | Sales | Adj. Profit | Adj Profit% |
1000 | SUV 1 | 4000 | 1500 | 38% |
1000 | Cleaning Service | 500 | 50 | 10% |
Total | 4500 | 1550 | 34% |
The solution has to be a dax measure as I don't have access to the source / can't add columns.
I already tried:
Solved! Go to Solution.
Hi @Anonymous ,
Try to cretae two calculated columns to get the result.
New Profit % = IF(and(Profit[Product Type] = "Cleaning Service",Profit[Profit%]>0.1),0.1,Profit[Profit%])
.
New Profit = IF(Profit[Product Type]="Cleaning Service",DIVIDE( Profit[New Profit %]*Profit[Profit ],Profit[Profit%]),Profit[Profit ])
Use those two columns in your report and you will get your desired output.
Thanks,
Arul
Thank you Arul!!
Hi @Anonymous ,
Try to cretae two calculated columns to get the result.
New Profit % = IF(and(Profit[Product Type] = "Cleaning Service",Profit[Profit%]>0.1),0.1,Profit[Profit%])
.
New Profit = IF(Profit[Product Type]="Cleaning Service",DIVIDE( Profit[New Profit %]*Profit[Profit ],Profit[Profit%]),Profit[Profit ])
Use those two columns in your report and you will get your desired output.
Thanks,
Arul
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
23 | |
8 | |
7 | |
6 | |
6 |
User | Count |
---|---|
28 | |
12 | |
10 | |
10 | |
6 |