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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
ACETH
Frequent Visitor

How to Calculate Price based on Amount of Units Sold

Hi, hope someone could help

 

Is there a way to calulate the total price sold of a product within a month, where the price changes based on the amount of units sold?

Example 

Product sold 3000 unit, therefore units 0-1999 = £0.00, 2000-3000 = £0.05*1000 etc

 

StartUnitsSoldEndUnitsSoldPrice
01999£0.00
20004999£0.05
50009999£0.04
1000019999£0.04
2000049999£0.03
5000099999£0.03
100000249999£0.02
250000499999£0.02
500000999999£0.02
100000099999999£0.02
2 REPLIES 2
Anonymous
Not applicable

Hi @ACETH

 

Can you provide detailed sample data and the results you expect? So that I can help you better. Please remove any sensitive data in advance.

 

Regards,

Nono Chen

If this post helps,then please considerAccept it as the solution to help the other members find it more quickly.

Thank you for your reply, basically the more units ordered the lower the price, but im struggling on how to split the calculation up.

 

Price Table

 

PriceIDUnitSoldStartUnitSoldEndPrice
101999£0.00
220004999£0.10
350009999£0.08
41000019999£0.07
52000049999£0.06
65000099999£0.06
7100000249999£0.04
8250000499999£0.03
9500000999999£0.02
10>1000000 £0.01

 

Orders

OrderIDUnitsSold
13000
23262
34321
45433
510776
66777
78888
830000
85454
1098765

 

Expected Price Example

 

OrderIDTotalPriceWorking Out
1£100.00(1-1999 = 0) (2000-3000 = 1000*£0.10)
2£126.20(1-1999 = 0) (2000-3262 = 1262*£0.10)
3£232.10(1-1999 = 0) (2000-4321 = 2321*£0.10)
4  
5£754.14(1-1999 = 0) (2000-4999 = 2999*£0.10) (5000-9999 = 4999*£0.06) (10000-10776 = 776*£0.07)
6  
7  
8  
8  
10  

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.

Top Solution Authors
Top Kudoed Authors