Start Free Trial

Alteryx Designer Desktop Discussions

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

How to allocate an amount to rows based on the row percent of the total

JTWilliams
6 - Meteoroid

Hello Community

 

Very new to Alteryx.  Need help creating an allocation of a dollar amount to many rows based on each row's percentage of the total amount.  Guessing this is a simple / basic calculation but not sure which tools to use to solve this problem.  See sample below.

 

Items 1 through 7 are filtered from a larger data set.  These are run through Summarize tool to calculate the Quantity total.  The material handling amount is added manually from Text input.  All three are brought together through the Join tool with the output below.  How can the $-95K be allocated to each Item row based on its percent of total quantity?

 

Also, the number of Items (rows) could change in subsequent data runs.  Is there a way to make sure the flow works if there are more or less rows?

 

Thank you for your input.

Sample data attached.

 

TYPEDescriptionQuantityAccountDollar Amount
R1Item 127113.26211000000.114100.812 
R2Item 26259.49211000000.114100.804 
R3Item 393.22211000000.114100.816 
R4Item 42898.34211000000.114100.806 
R5Item 593.22211000000.114100.816 
R6Item 63478.00211000000.114100.814 
R7Item 734.27211000000.114100.814 
 Total Quantity39969.80  
 Total Material Handling 211000000.114100.900-95844.9
2 REPLIES 2
binu_acs
21 - Polaris

@JTWilliams One way of doing this

image.png

JTWilliams
6 - Meteoroid

Thank you for the solution. This is very helpful.

Labels
Top Solution Authors