Alert: There is a planned Community maintenance outage October 16th from approximately 10 - 11 PM PST. During this time the Alteryx Community will be inaccessible. Thank you for your understanding!

Alteryx Designer Desktop Discussions

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

How to create an offsetting pair?

Haokun
8 - Asteroid

I have a set of data, if you see the data set, because of account code for row 2 and row 3 are not the same so I can't summarize it. When you look at first row, the amount is submission of the 2nd and 3rd row. I want to split the first row into 2 rows and the amount is totally the opposite amount of 2nd and 3rd row. And also, the first row "T0 Fund analysis code" has to be the same compare to second row and third row "Fund". Please see below for the input data

Account CodeT0   Fund Analysis CodeFundPeriodSum_Base Amount
3361010000GTNPPAHITPALIF2020007-2495293.23
3361270000ITPALIFGTNPPAH20200072335158.25
3361280000ITPALIFGTNPPAH2020007160134.98

 

i want to have the result show below

Account CodeT0   Fund Analysis CodeFundPeriodSum_Base Amount
3361010000GTNPPAHITPALIF2020007-2335158.25
3361010000GTNPPAHITPALIF2020007-160134.98
3361270000ITPALIFGTNPPAH20200072335158.25
3361280000ITPALIFGTNPPAH2020007160134.98
5 REPLIES 5
Qiu
21 - Polaris
21 - Polaris

@Haokun 
Is this what you need?

1116-Haokun.PNG

Haokun
8 - Asteroid

Hey @Qiu 

Thanks so much for the effort. However, I think that is not all the scenarios covered. I created more scenarios. you can see below.

Account CodeT0   Fund Analysis CodeFundPeriodSum_Base Amount
3361010000GTNPPAHITPALIF2020007-2495293.23
3361270000ITPALIFGTNPPAH20200072335158.25
3361280000ITPALIFGTNPPAH2020007160134.98
3361010000ITNNPIAITPALIF2020007110464.95
3361211000ITPALIFITNNPIA2020007-110464.95
3361010000ITPAPWUITPALIF20200076383227.99
3361011000ITPAPWUITPALIF20200071500
3361180000ITPALIFITPAPWU2020007-6384727.99
3361010000ITPAPLUITPALIF20200071288142.9
3361010100ITPAPLUITPALIF2020007-10000
3361170000ITPALIFITPAPLU2020007-1278142.9
Qiu
21 - Polaris
21 - Polaris

@Haokun 
I really should get paid for this.😁

1116-Haokun-1.PNG

Haokun
8 - Asteroid

Hi @Qiu 

hahah, indeed. I think the attached workflow is not the correct one, it is still the previous workflow.

 

I wanna thank you so much. let me take a look. I will see how to make it easier for my users.

 

Thank you so much.

Qiu
21 - Polaris
21 - Polaris

@Haokun 
OMG. I am shamed now and feel dont deserve the accept mark.
This is the new one, I hope...

Labels