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

Alteryx Designer Desktop Discussions

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

Offsettng Rows

Balllu
5 - Atom

Hi All,

 

i am stuck with one problem and i am here to get some help. i am trying to offset the line which have amount with opposite signage.

to offset the line criteria is first it offset the line with current month with previous than current month to current month(raw data have some old months data also).

in some cases where the current month's entry offsets with the sum of two or more rows from the previous month. can you help me with the workflow. Earlier i am using prescriptive optimization tool but it getting stuck on 36% and not move forward. can't summarize as we need line to line records.

 

input data:- 

RecordStatusYear. MonthHT Amount
14001361502024.09-5699200
24006358502024.1015000
34001361502024.11-5699200
44001361502024.115699200
54006358502024.11-30000
6400635850 2024.1015000

 

output:-

RecordStatusYear. MonthHT Amount
34001361502024.11-5699200
1 REPLY 1
PeterHolmes01
5 - Atom

You could use the ABS() function to get an absolute amount on all values and then do a sort by this field. You could then use the multi field formula to net off row that are equal to each other and then use a filter to get the row you needed.

Labels
Top Solution Authors