Forum Discussion
Difference between current value and previous value respect to date.
- Anonymous2 years ago
Hi krishna_chitrak ,
Thanks for the reply from Uzi2019 , please allow me to provide another insight:
You need to create a date table and then model the one-to-many relationship. Then create a formula similar to the following to be able to correctly use the date hierarchy as the x-axis.
M_activce = VAR active_ = CALCULATE ( SUM ( 'Table'[Active] ) ) VAR last_month = CALCULATE ( SUM ( 'Table'[Active] ), DATEADD ( 'Date'[Date], -1, MONTH ) ) RETURN active_ - last_monthM_inactivce = VAR inactive_ = CALCULATE ( SUM ( 'Table'[Inactive] ) ) VAR last_month = CALCULATE ( SUM ( 'Table'[Inactive] ), DATEADD ( 'Date'[Date], -1, MONTH ) ) RETURN inactive_ - last_monthBest Regards,
Adamk KongIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi krishna_chitrak ,
Are you able to provide the test data used in your case? It is convenient for me to answer your question as soon as possible.
Best Regards,
Adamk Kong
- krishna_chitrak2 years agoRegular Visitor
Hi Adamk Kong,
Sorry for the delay in reply. I attached the excel file link below.
https://docs.google.com/spreadsheets/d/1muxTPW_QjigLCjUtBomWsHRKPH6CplQt/edit?usp=sharing&ouid=117139710448398031186&rtpof=true&sd=true
Thank-you
Best Regards,
Krishna Chitrak