Alteryx Designer Desktop Discussions

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

Multi Row Formula help

agrawaluk
8 - Asteroid

This is probably way too easy, but I am not able to figure out the logical approach to this. 

 

I have two Columns: Date and Net Cashflows

I have to create two other columns: Opening Balance and Closing Balance

 

Opening Balance+Net Cashflow = Closing Balance

 

Opening balance and closing balance for minimum date should be 0 (this is something that needs to be implemented in the workflow)

 

Every opening balance = t-1 day's closing balance. 

 

Sample:

DateOpening BalanceNet CashflowClosing Balance
3/16/2020000
3/17/2020088
3/18/20208715
3/19/202015621
12 REPLIES 12
TomWelgemoed
12 - Quasar

Hi @agrawaluk ,

 

Think this does what you're after. I've assumed you don't have the actual opening & closing balance and have only used the net cashflow. Workflow attached.

 

Multi-row.png

 

Regards,

Tom

 

 

agrawaluk
8 - Asteroid

Thank you, this works as expected!

AbhilashR
15 - Aurora
15 - Aurora

@agrawaluk - Thanks for posting this question! I really enjoyed solving this challenge. Attached is my version of the solution.

RobertOdera
13 - Pulsar
agrawaluk
8 - Asteroid

Hi @TomWelgemoed 

 

Is there a way to do this for every new ID in the data? For Ex my data looks like this:

DateIDNet Cashflow
3/16/202010
3/17/202018
3/18/202017
3/19/202016
3/20/202020
3/21/202024
3/22/202026
3/23/202023

 

and should look like this:

DateIDOpening BalanceNet CashflowClosing Balance
3/16/20201000
3/17/20201088
3/18/202018715
3/19/2020115621
3/20/20202000
3/21/20202044
3/22/202024610
3/23/2020210313
AbhilashR
15 - Aurora
15 - Aurora

Hi @agrawaluk - I modified my workflow to accommodate for multiple ID's and reset the calc. for every new ID. Take a look and let us know if this helps.

Jonathan-Sherman
15 - Aurora
15 - Aurora

Hi @agrawaluk,

 

You could do this with the use of two multi-row formula tools

 

Just need to tick ID in the group by section

 

image.png

 

 

 

image.png

 

If this solves your issue please mark the answer as correct, if not let me know! I've attached my workflow for you to download if needed.

 

Regards,

Jonathan

agrawaluk
8 - Asteroid

Hi @AbhilashR 

 

Thank you for your response. Actually I guess I stated incorrectly in my previous post. What I am looking at is:

 

DateIDNet Cashflow
3/16/202010
3/17/202018
3/18/202017
3/19/202016
3/16/202020
3/17/202024
3/18/202026
3/19/202023

 

PS - Here Net cashflow for minimum date for every unique ID should be 0. This is something that needs to be implemented in workflow.

 

What I really want: 

DateIDNet Cashflow
3/16/202010
3/17/202018
3/18/202017
3/19/202016
3/20/202020
3/21/202024
3/22/202026
3/23/202023

 

Sorry about that. 

AbhilashR
15 - Aurora
15 - Aurora

@agrawaluk - In other words no matter what, the Netcashflow for an ID's minimum date should be adjusted to 0 before all other calcs. take place? If yes, I have modified my workflow to include the logic. 

Capture.PNG

Labels