ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
解決済み

Calculate last weeks balance

Albert
メテオロイド

I am trying to recreate historical balance by day.   I have two tables : 1)Current balance table that provides today's balance and 2) a History table that contains historical transaction information. 

 

Can someone help create a descending running balance by day for each account? I have attached mock data . 

 

Thank you very much,

5件の返信5
ivoller
クエーサー

Hi,

 

I'm not sure exactly what you need to achieve but this may help.

 

2018-04-18_15-42-52.png

NicoleJohnson
ACE Emeritus
ACE Emeritus

Here's another option that I think gets you the result your looking for - joins the sources by account, sorts by descending date, and then uses a Multi-Row formula to calculate the balance from prior day.

 

Let us know if either of these options don't line up with what you are trying to achieve! And if so, an example of your desired output would be helpful to narrow down the solution. Thanks!

 

Cheers,

NJ

Albert
メテオロイド

Hi Nicole - It is very close to the desired output.. Is there any way I can stack the current balance above the previous day balance?  lets pretend current balance is 4/19/2018

 

AccountDateTrans AmountBalance
A4/19/2018 11081.15
A4/18/201888410197.15
A4/17/2018-37.5910234.74
A4/16/2018-26.9510261.69
A4/15/2018-8.0810269.77
ponraj
パルサー

You can try attached workflow.

Albert
メテオロイド

Thank you!!

ラベル
トップのソリューション投稿者