Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
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
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 6 | |
| 5 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 16 | |
| 8 | |
| 8 | |
| 8 |