Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

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

Pro rating and picking right numbers

vvissamsetty
8 - Asteroid

Hello Alteryx community,

 

I am trying to solve a problem and it would be really helpful if you could provide me any suggestions.

 

I am trying to derive New ID and New Quantity columns which are based on O, R, C columns. The logic is, as long as O quantity is less than R Quantity the New Quantity column should popluate number from O Quantity column (rows a to d) and simultaneously reduce the quantity in R Quantity column (see Reduced R Quantity column). Whenever R Quantity is completely exhausted and if the O quantity row has additional quantity left (row 'e'), this additional quantity should be split into new line (row 'e' second time) and if there are additional rows (row 'f') then these should start using C Quantity. New ID column should be populated based on R id or C id, from whichever column its picking up the quantity. R Quantity and C Quantity are basically total quantity associated to sec id ABC that is being listed here multiple times.

 

I am attaching the excel as well below for this data.

 

RowSec IDO QuantityR IDR QuantityC IDC QuantityNew IDNew QuantityReduced R Quantity
aABC9.013139.30329.01319.01330.29
bABC0.742139.30329.01310.74229.548
cABC0.094139.30329.01310.09429.454
dABC0.712139.30329.01310.71228.742
eABC33.984139.30329.013128.7425.242
eABC33.984 39.303 9.01325.2423.771
fABC3.771139.30329.01323.771 
1 REPLY 1
TrevorS
Alteryx Alumni (Retired)

Hello @vvissamsetty 

Thank you for posting to the Community!

Have you been able to resolve this issue yet?

If so, can you please post your solution so that others can benefit if they find themselves in a similar situation?

 

If this has not been resolved, can you please provide a copy of your workflow and some sample data?

This will help the Community better troubleshoot your process.

 

Thanks!
TrevorS

Community Moderator
Labels