Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Calculating Amount on the basis of Tiered Rate

Gandalf_NotGrey
8 - Asteroid

Hello, I have a dataset which looks like this - (Excel also attached)

Gandalf_NotGrey_5-1752157745404.png

I want to calculate Fees based on rates in columns C, D, and E, on the Amount in column B.

For example - first amount is 1,487,668,829.34

In this, I will calculate the fees as below - 

For first 250,000,000 --> 250,000,000*0.00019 = 47500

Next 250,000,000 to 1,000,000,000 --> 750,000,000*0.000116 = 87000

Remaining amount of (1,487,668,829.34 - 1,000,000,000)*0.000113 = 55106.57

Total Fees = 189,606.57

And this amount is more than the Min Fee amount in Row 1 of 1250, so we are good with this.

 

How can I build this in Alteryx to calculate the Fees for each value in the Amount column?

4 REPLIES 4
aatalai
15 - Aurora

@Gandalf_NotGrey I did it with a formula tool using the max of minim fee and the recalculated amount

 

Max([Minimum Fee],

IIF([Amount]>250000000, 250000000*[0 to 250m], [Amount]*[0 to 250m])

+ IF [Amount]<250000000 then 0 
elseif [Amount]<1000000000 then ([Amount]- 250000000)*[250m to 1bn]

else (1000000000 - 250000000)*[250m to 1bn] endif

+ 

IIF([Amount]<1000000000, 0, ([Amount]-1000000000)*[1bn and above]))

 

Screenshot 2025-07-10 154014.png

 

Please let me know how you get on

Gandalf_NotGrey
8 - Asteroid

Thank You @aatalai for your response. I will have a look and let you know if this works. Much Appreciate your time and effort on this.

Gandalf_NotGrey
8 - Asteroid

Thanks so much @aatalai for sharing this, worked perfectly. Appreciate it.

aatalai
15 - Aurora

@Gandalf_NotGrey glad to hear it

Labels
Top Solution Authors