Forum Discussion
Slicer for Moving Annual Total - Timeline Chart
- 8 years ago
Hi FaustoMoya,
You can create a calculated to decide whether the date is in the last 12 months:
Last12Months = IF(DATEDIFF('Table'[Date],MAX('Table'[Date]),MONTH)<12,"last 12 months","")
Then drag this new column to the visual/Page level filter pane, select the value "last 12 months", the visual will only show data in last 12 months.
You can refer to this similar blog: https://blogs.msdn.microsoft.com/lukaszp/2015/08/08/finding-the-latest-date-in-power-bi-desktop/
Best Regards,
Qiuyun Yu
Hi FaustoMoya,
You can create a calculated to decide whether the date is in the last 12 months:
Last12Months = IF(DATEDIFF('Table'[Date],MAX('Table'[Date]),MONTH)<12,"last 12 months","")
Then drag this new column to the visual/Page level filter pane, select the value "last 12 months", the visual will only show data in last 12 months.
You can refer to this similar blog: https://blogs.msdn.microsoft.com/lukaszp/2015/08/08/finding-the-latest-date-in-power-bi-desktop/
Best Regards,
Qiuyun Yu
Hi Qiuyun Yu, it was the solution
I was stuck trying to create it in new measure, when I later realized that it was by new column.
Thanks a lot
Fausto Moya