Alteryx Designer Desktop Discussions

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

How to create formula from 1 column become 2 columns

Lydieatantra
7 - Meteor

Hi Alteryx Team,

 

Kindly need your help to create the workflow as attached below, since im newby in Alteryx.

 

Current

GL Amount

1000

2500
-2000
-1500

 

Expected

GL AmountIncomingOutgoing
10001000 
25002500 
-2000 -2000
-1500 -1500

 

Thank you.

Lydiea

12 REPLIES 12
Lydieatantra
7 - Meteor

Hi @grazitti_sapna ,

Thank you for your advise.

Then can we still use the ABS formula ? Because i see that the formula will be create the result is always as a positif amount.

 

Lydieatantra_0-1597044961019.png

 

If you dont mind, could you please tell me what the meaning of this function ?

ABS([Row-1:Value])-[Value]

 

Thank you and regards,

Lydiea

 

grazitti_sapna
17 - Castor

Hi @Lydieatantra , as per your query you need Different=Bank Movement - GL Movement in order to achieve this goal multi row formula tool has to be applied as it is row level calculation.

Please refer to the screenshot.

grazitti_sapna_0-1597047471029.png

 

Also, when you apply this formula [Row-1:Value]-[Value] when your value will be Row 1 that is Source= Bank and Value= 2000 it will return a value as -2000 as per the mentioned calculation, as there is no value before Source Bank hence, it will do calculation as 0-2000=-2000. In order to get the exact answer I have used ABS([Row-1:Value])-[Value] to convert the -2000 value to positive so that you can get the desired result.

 

grazitti_sapna_2-1597047730205.png

 

Then I have transformed the data a bit.

 

I hope this helps you.

Thanks.

 

 

Sapna Gupta
grazitti_sapna
17 - Castor

Hi @Lydieatantra , try this solution as well I believe this will give you more accurate records than multi-row formula tool. Try using different use cases to check if the end result is what you expect.

 

grazitti_sapna_0-1597049650457.png

 

Thanks.

 

Sapna Gupta
Labels