Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Jadreani
Frequent Visitor

Calculate a SRP price depending the part type and the values of the CCR Price

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 CCR Less than or equal to 40, then the SRP Price will be 250
  • If the CCR price is between 41 and 99, then the SRP Price will be 400
  • if the CCR price is between 100 and 200, then the SRP Price will be 500
  • if the CCR prise is greater than 200, then the SRP price will be calculcated based on CCR price * 3.5

If the part type is "HB0" AND

  • if the CCR Less than or equal to 20, then the SRP Price will be 100
  • If the CCR price is between 21 and 99, then the SRP Price will be 200
  • if the CCR price is between 100 and 150, then the SRP Price will be 300
  • if the CCR prise is greater than 150, then the SRP price will be calculcated based on CCR price * 5

 

Please find below a data sample:

Thanks a lot in advance for your kind help.

 

Article ReferencePart typeCCR
BA0195BA50
BA0196BA75
BA0244BA100
BA0253BA389
BA0254BA100
HB0067HB0125
HB0076HB0100
HB0079HB050
HB0080HB0230
HB0081HB0110
1 ACCEPTED SOLUTION
Arul
Super User
Super User

@Jadreani ,

 

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
)

 

 

 

Arul_0-1651813831534.png

 

Thanks,

Arul

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


LinkedIn


View solution in original post

3 REPLIES 3
Arul
Super User
Super User

@Jadreani ,

 

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
)

 

 

 

Arul_0-1651813831534.png

 

Thanks,

Arul

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


LinkedIn


Jadreani
Frequent Visitor

Dear Arul,

 

I'm so grateful you helped me. Thanks very much, so appreciated!

Kindest regards,

 

Jean-Yves

Hi @Jadreani ,Thank you.

If it solves your problem do a thumps up and accept the solution.

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


LinkedIn


Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.