Alteryx Designer Desktop Discussions

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

How to use edit formula based on maximum limit

Aggsneh
7 - Meteor

Hi all,

 

Please refer to the attached file. I have calculated the fees based on a formula for 23 rows which totals to 46000. As a next step, I need to maximize it to 34000. My ask is, if total exceeds 34000, then fees should be zero.

 

Early response would be helpful.

 

Thanks

8 REPLIES 8
Blake
12 - Quasar

Hi @Aggsneh 

 

You'll probably want to summarize your fees first and then use a formula tool to write a conditional statement for your max fees. 

 

Blake_0-1602606633248.png

 

 

Thanks, let me know if this is what you're looking for. 

 

 

atcodedog05
22 - Nova
22 - Nova

Hi @Aggsneh 

 

You can do it by using summarize tool to get total fees and use below formula

IF [Total Fee]>34000 THEN 0 ELSE [Total Fee] ENDIF

Output:

atcodedog05_0-1602607323025.png

Workflow:

atcodedog05_1-1602607337457.png

 

Hope this what you are looking for.

 

Hope this helps 🙂

 

If this post helps you please mark it as solution. And give a like if you dont mind 😀👍

Blake
12 - Quasar

Here is an alternative that uses a running total, formula, and multirow formula to keep your original data structure (kind of). 

 

Blake_0-1602607397464.png

 

 

 

Blake
12 - Quasar

@atcodedog05 - I could be wrong but I doubt that @Aggsneh wants to forego all fees if they reach 34000, I think they probably want to cap the total fees at that and make all future fees = 0. I would love it if I could get to a certain billable amount and have my entire amount due cancelled! 

atcodedog05
22 - Nova
22 - Nova

Hi @Blake 

 

I agree with you. That thought did come to my mind i was waiting for @Aggsneh to shed more light on it.

 

atcodedog05
22 - Nova
22 - Nova

Hi @Aggsneh 

 

Here is a slightly different approach.

 

Workflow:

atcodedog05_1-1602608764174.png

Hope this helps 🙂

 

 

Aggsneh
7 - Meteor

Thanks so much Blake. 

 

This is what I requested.

Aggsneh
7 - Meteor

Thanks for helping me out.

Labels