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
Anonymous
Not applicable

Discount of Total

Hi All,

 

I have a total number of calls (2399) that needs to be discounted as follows;

 

For first 1000 calls we don't give discount, meaning we charge 2 euro per call.

For calls between 1000 and 1500 we give discount of 20 cents, meaning we charge 1.80 euro per call.

For all calls greater than 1500 we give discount of 30 cents, meaning we charge 1.70 euro per call.

 

MarjanCRO_0-1647354244944.png

 

I don't know how to make this work? Not sure what logic/formula/function is the best to use in this case.

 

Number of Calls is defined as: NoOfCalls = COUNT(Query1[requestid])
 

I hope you can help me and give some tips.

 

Thanks,

4 REPLIES 4
Whitewater100
Solution Sage
Solution Sage

Hi:

Most liely a conditional statement 

first have measure to total up calls e.g. No of Calls = SUM(TableName[No Calls])

 

Then 

IF([NoofCalls] > 1500, [NoofCalls] * 1.7, IF([NoofCalls] >= 1000, [NoofCalls] * 1,8, [NoofCalls] * 2)))

Anonymous
Not applicable

Thanks a lot but I am getting the following error;

MarjanCRO_0-1647365451567.png

Do you know what I am missing there?

IF([NoofCalls] >= 1500, [NoofCalls] * 1.7, IF([NoofCalls] >= 1000, [NoofCalls] * 1.8,  [NoofCalls] * 2))

 

It's evaluated in order that's why we can start with 1500, then the next one covers between 1000 -1499

and the last part is for all the calls under 1000. I hope this helps.

Hi:

It should work.

Here is the syntax using easier numbers to follow. After each comma I skip one space. Two )) at the end. I just tested it.

You can substitute your measure name where I have [Ttoal Sales] and your figures like 1.8,1.7,or 1 where I have 50,30,and 1)

 

Test = IF([Total Score] > 50, [Total Score] * 5,
IF([Total Score] > 30, [Total Score] * 3, [Total Score] *1))

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.