Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowData Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more
Hello,
I need some help regarding a calculation of a SRP price's part.
The first condition is the part type of the part.
For each part type, I must calculate the SRP price based on the CCR price value with multiple comparison operators (equal or less than ** price) and as well a coefficient.
For example:
If the part type is "BA0" AND
If the part type is "HB0" AND
Please find below a data sample:
Thanks a lot in advance for your kind help.
| Article Reference | Part type | CCR |
| BA0195 | BA | 50 |
| BA0196 | BA | 75 |
| BA0244 | BA | 100 |
| BA0253 | BA | 389 |
| BA0254 | BA | 100 |
| HB0067 | HB0 | 125 |
| HB0076 | HB0 | 100 |
| HB0079 | HB0 | 50 |
| HB0080 | HB0 | 230 |
| HB0081 | HB0 | 110 |
Solved! Go to Solution.
I hope the below calculated column would help you. Try and let me know.
SRP Price =
SWITCH(TRUE(),AND(SRP[Part type]="BA",SRP[CCR]<=40),250,
AND(SRP[Part type]="BA",and(SRP[CCR]>=40,SRP[CCR]<=99)),400,
AND(SRP[Part type]="BA",and(SRP[CCR]>=100,SRP[CCR]<=200)),500,
AND(SRP[Part type]="BA",SRP[CCR]>200),SRP[CCR]*3.5,
AND(SRP[Part type]="HB0",SRP[CCR]<=20),100,
AND(SRP[Part type]="HB0",and(SRP[CCR]>=21,SRP[CCR]<=99)),200,
AND(SRP[Part type]="HB0",and(SRP[CCR]>=100,SRP[CCR]<=150)),300,
AND(SRP[Part type]="HB0",SRP[CCR]>150),SRP[CCR]*5
)
Thanks,
Arul
I hope the below calculated column would help you. Try and let me know.
SRP Price =
SWITCH(TRUE(),AND(SRP[Part type]="BA",SRP[CCR]<=40),250,
AND(SRP[Part type]="BA",and(SRP[CCR]>=40,SRP[CCR]<=99)),400,
AND(SRP[Part type]="BA",and(SRP[CCR]>=100,SRP[CCR]<=200)),500,
AND(SRP[Part type]="BA",SRP[CCR]>200),SRP[CCR]*3.5,
AND(SRP[Part type]="HB0",SRP[CCR]<=20),100,
AND(SRP[Part type]="HB0",and(SRP[CCR]>=21,SRP[CCR]<=99)),200,
AND(SRP[Part type]="HB0",and(SRP[CCR]>=100,SRP[CCR]<=150)),300,
AND(SRP[Part type]="HB0",SRP[CCR]>150),SRP[CCR]*5
)
Thanks,
Arul
Dear Arul,
I'm so grateful you helped me. Thanks very much, so appreciated!
Kindest regards,
Jean-Yves
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.