Alteryx Designer Desktop Discussions

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

YOY and MOM Dynamic

shivanand612
7 - Meteor

Hi All,

 

I wanted to calculate the YOY and MOM % change for the below data, however I have tried many ways but, not reaching the output that I wanted. Below is the sample data I have here but I have very big data set to apply this YOY and MOM% change to apply.

EMP IDDateDepositCashCreditDeposit AVGCash AVGCredit AVG
E22334451/1/20208062608239629
E22334451/2/202074734409409227
E22334451/3/20207716809269538
E22334451/4/20205827509439632
E22334451/5/2020945809099480
E22334451/6/202011890010019973
E22334451/7/202014165012199037
E22334451/8/20207668460129110045
E22334451/9/202031133011018976
E22334451/10/202022160010129540
E22334451/11/20208102009899654
E22334451/12/2020208365012788124
E22334451/1/202113385010209269
E22334451/2/20219719309499242
E22334451/3/202125563012699525
E22334451/4/2021757693310529480
E22334451/5/202110258239249866
E22334451/6/202154026448388853
E22334451/7/202121634710269875
E22334451/8/202122312512539234
E22334451/9/20212924069769522
E22334451/10/2021222751210689721
E22334451/11/202141482118888449
E22334451/12/2021387843211128356
D33445561/1/20206002608718630
D33445561/2/202074734409449255
D33445561/3/202077168077212158
D33445561/4/202034575089411194
D33445561/5/202094580112211881
D33445561/6/20201185007898922
D33445561/7/202014112085811365
D33445561/8/2020650845010189175
D33445561/9/202031133096710598
D33445561/10/202022160079210196
D33445561/11/202020020010688880
D33445561/12/2020208233481711136
D33445561/1/202113375095511874
D33445561/2/202150032010139779
D33445561/3/20212552309949930
D33445561/4/2021443693108010726
D33445561/5/2021102582391111933
D33445561/6/2021540264497912370
D33445561/7/20212163477667130
D33445561/8/202122312573911079
D33445561/9/202129240695412078
D33445561/10/202122275217948543
D33445561/11/2021212451783311872
D33445561/12/2021387663210097836

 

I have calculated the YTD based on Year using the summarize tool that is sorted and i wanted the below output.

 

EMP IDDateDeposit YTDLast Deposit AVGYOY %MOM %Cash YTDLast Cash AVGYOY %MOM %Credit YTDLast Credit AVGYOY %MOM %
E22334451/12/20214512111286.05769-6.5217391372183133.33332.43902417356-35.7143190.9091
D33445561/12/20213525100986.0576982.5471698157378186.956546.6666714936-5.8823588.23529

 

Below are some Notes.

For all the  AVG : this is the latest record of the particular month report. 

YOY % formulae; Previous year same month - Current year same month/ Previous year same month * 100

MOM % : Previous month - Current month /previous month * 100

 

Thank you

Shiva

 

7 REPLIES 7
atcodedog05
22 - Nova
22 - Nova

Hi @shivanand612 

 

Your YoY and MoM formula is not clear I was able to get columns other than that. Please provide more clarity.

 

atcodedog05_0-1643716695147.png

 

Hope this helps : )

 

shivanand612
7 - Meteor

Hi,

 

Here is my formulae for YOY and MOM % Change

 

YOY 

EMP IDDateDepositYOY %
E22334451/12/2020208(387-208)/208*100
E22334451/12/202138786.05769231

 

MOM 

EMP IDDateDepositMOM %
E22334451/11/2021414(387-414)/414*100
E22334451/12/2021387-6.52173913

 

I hope this helps 

 

Best 

Shiva

atcodedog05
22 - Nova
22 - Nova

Hi @shivanand612 

 

Here is the updated workflow. Avg is still not matching can you explain on that. This workflow is dynamic if years changes calculations will automatically get adjusted.

 

atcodedog05_0-1643719626573.png

 

Hope this helps : )

 

 

shivanand612
7 - Meteor

Thank you for you reply and Answer!

 

below is the scenario to get the AVG Number

EMP IDDateDeposit AVG
E22334451/5/2021924
E22334451/6/2021838
E22334451/7/20211026
E22334451/8/20211253
E22334451/9/2021976
E22334451/10/20211068
E22334451/11/2021888
E22334451/12/20211112

 

In the above data the AVG number is 1112, if I wanted to Calculate the % of Deposit then I need to Use the last number for the year (1112).

All the AVG numbers are like that...

 

Regards,

Shiva 

atcodedog05
22 - Nova
22 - Nova

Hi @shivanand612 

 

Awesome, it matches. Please find the updated workflow.

 

atcodedog05_0-1643721056895.png

 

Hope this helps : )

 

shivanand612
7 - Meteor

Thank You atcodedog05 :)

 

atcodedog05
22 - Nova
22 - Nova

Happy to help : ) @shivanand612 

Cheers and have a nice day!

Labels