Forum

Reverse Running Tot...
 
Notifications
Clear all

Reverse Running Total (cumulative YTD values) to monthly values (Oct. = New FY) in P

5 Posts
2 Users
0 Reactions
236 Views
(@dennis_85)
Posts: 3
Active Member
Topic starter
 

Dear Mynda and Philip,

thanks a lot that I am able to post my problem here:) I am a PQ and Powerpivot Newbie.

I would love to get a solution in Power Query that reverse my monthly YTD values to monthly vlaues and consider the beginning of a new FY in October.

Every month I get the ytd profit & loss data for several companies for each account and I merge it in PQ. In classical excel I have a working formula to show me only the monthly values but I really want a a solution in PQ. Account numbers can be identical for several companies

Please find my example data attached. Thank you so much.

 

Kind regards,

Dennis

 
Posted : 26/11/2020 4:37 am
Philip Treacy
(@philipt)
Posts: 1629
Member Admin
 

Hi Dennis,

Please see attached file.  This works out the monthly change based on the Account Number and the Customer.

I'm not sure that Row 20 is correct.  The Acct Num and Cust are the same as the previous row, but date is Aug, should it be Oct?

Regards

Phil

 
Posted : 28/11/2020 3:12 am
(@dennis_85)
Posts: 3
Active Member
Topic starter
 

Hi Phil,

 

thanks a lot for your great work and answer.

Very elegant solution...Okay, functions/parameter in PQ are new to me. Only one thing: October is new fiscal year. So in Oct. the ytd and monthly values should be the same.

Yes, you are tight. Row 20 should be October Only exemplary data from my side. 

 

Thanks a lot for your very useful help.

 

Regards,

Dennis

 
Posted : 28/11/2020 9:35 am
Philip Treacy
(@philipt)
Posts: 1629
Member Admin
 

Thanks Dennis.

I've modified the function to reset in October - see attached.

Regards

Phil

 
Posted : 01/12/2020 9:00 pm
(@dennis_85)
Posts: 3
Active Member
Topic starter
 

Dear Phil,

I hope you are well?! I would really love to integrate your elegant solution for my new project.

Could you please be so kind and help me one more time? Either I'm doing something wrong or the function does not seem to work quite correctly yet, because if a new account is added for example off 01.10. the monthly change must also correspond to the YTD value or not? Now there is a 0.

Thanks again for your help! 

 

BR Dennis

 
Posted : 19/02/2022 4:09 am
Share: