Join the Inspire AMA with Joshua Burkhow, March 31-April 4. Ask, share, and connect with the Alteryx community!

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
4 REPLIES 4
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.

OTrieger
13 - Pulsar

@Balllu 
Have you tried using Summarized tool, Group data on Status and Sum HT Amount, add a filter tool to remove all the lines that contains 0

Balllu
5 - Atom

summarized tool make the current month HT Amount 0 that i don't want , i need first offset the current month HT Amount to previous month HT Amount.

Balllu
5 - Atom

if possible can you pls add workflow for this. as i have three row for same amount and i need to eliminate first November amount with previous month and left with only one row which is for november. 

Labels
Top Solution Authors