Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Discussions

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

Calculating Monthly Change in Financial Accounts

dishamishra
7 - Meteor

Hi there Alteryx community! I have a question which I was hoping to get some ideas for.

 

I am trying to create a single row of data which calculates for me the change in Accounts Receivable (and other working capital line items) on a monthly basis. I am not missing any months, and my data looks like this:

 

Accounts Receivable Closing Balances per Month

ACCOUNT_NAMEPERIOD_END_DATECLOSING
Accounts receivable1/31/2018100
Accounts receivable2/28/2018200
Accounts receivable3/31/2018300
Accounts receivable4/30/2018355
Accounts receivable5/31/2018410
Accounts receivable6/30/2018405
Accounts receivable7/31/2018460

 

 

I essentially would like my output to look like this:

 

AccountJan-18Feb-18Mar-18Apr-18May-18Jun-18
Accounts Receivable0-100-100-55-555

 

 

As you can see, my requirements are as follows:

 

  • Find the previous month and calculate the closing balance difference from the current month (i.e. Previous minus Current Month)
  • Flip the orientation from vertical to horizontal
  • Change the period end type to a "%b-%y" format in Alteryx

 

So far I can think of using these tools, but I'm not sure how to put it all together:

  • Multi-Row Formula
  • Cross Tab
  • DateTimeFormat function

 

Any help is greatly appreciated!

 

5 REPLIES 5
Emil_Kos
17 - Castor
17 - Castor

Hi @dishamishra,

 

I see my result differ but it should be helpful anyway.

ImadZidan
12 - Quasar

Hello @dishamishra ,

 

Instructions were spot on.

 

Have a look. 

SubratDas5
10 - Fireball

Hi @dishamishra ,

 

Here's how i think you can do it. Hope it helps. 

 

Attached.

dishamishra
7 - Meteor

Hi @ImadZidan !

 

Thank you so much for sharing this solution. I used it in combination with @Emil_Kos 's solution and it worked perfectly!

 

 

dishamishra
7 - Meteor

Thanks for your suggestion @SubratDas5 !

Labels