Forum Discussion
Ashish_kumar12
5 years agoHelper I
Year over Year Data Comparison
Hi There , Hope you doing well, I want to create an measure showing Year to Year Total sales in column chart however i want that calculation to pick automatically upcoming year data also e.g 2017,2...
- 5 years ago
Hi Ashish_kumar12 ,
First I created a calendar table.
Table = CALENDAR( MIN(Sheet2[date]), MAX(Sheet2[date]) )Then I created table relationship.
Then I used your measure formula.
Sales LY = CALCULATE( SUM(Sheet2[Value]), DATEADD( 'Table'[Date], -1, YEAR ) )Best regards,
Lionel ChenIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-lionel-msft
5 years agoCommunity Support
Hi Ashish_kumar12 ,
Try this.
Best regards,
Lionel Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Ashish_kumar12
5 years agoHelper I
Hi Lionel,
Thank you for your reply and the example which you showed.
Unfortunatley i am not able to open your pbix file, could you please share me Dax here if possible ?
Regards,
Ashish