Advent of Code is now back for a limited time only! Complete as many challenges as you can to earn those badges you may have missed in December. Learn more about how to participate here!
Start Free Trial

Alteryx Designer Desktop Discussions

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

Proration

Ardaves
5 - Atom

I need to calculate a percentage for each category in my data.  I have multiple work orders that have multiple different accounts within the order.  I need to calculate the percentage of each CPR based on that one work order but do that across all orders.  In the end I need each order number to have a percentage that tells me what percentage of account "367" or "365... etc. that is attributable to the order. What tool should I use?

2 REPLIES 2
Yoshiro_Fujimori
15 - Aurora
15 - Aurora

Hi @Ardaves ,

It is difficult to answer to your question without sample input and expected output data.

That said, like any other programming tools, the common approach is to break your work into small steps.

In your case, the steps would be something like below:

1. use Summary tool to count / sum of a table. Set Group-by to get the result by category

2. use Join or Find Replace tool to set the numerator and denominator in a row

3. use Formula tool to calculate the ratio

 

Sample workflow

Yoshiro_Fujimori_0-1679357574211.png

Input

Yoshiro_Fujimori_1-1679357592597.png

Output

Yoshiro_Fujimori_2-1679357607428.png

 

Ardaves
5 - Atom

Thank you, this is very helpful.

Labels
Top Solution Authors