Hello Experts,
I am trying to create a page level filter to have the visuals show only 3 years and this should be dynamically done so that when a new year is added to the dataset , it will be the most recent and then the 2 previous year show as well.
e.g 2019, 2020,2021
when new year is added then it should show
2020,2021,2022.
I have attached the PBIX File and the Excel file.
I would appreciate your help in finding the right solution to achieve this.
Hi @Eliezer20101980. If your date table has year offsets, use them to choose your 3-year set (e.g., YearOffset >= -2 AND YearOffset <= 0). If you’re using @Melissa’s excellent extended date table, you’re all set; if not, here’s the link:
Thank you @Greg.
Yes I have the @Melissa’s excellent extended date table and I have used the YearOffset as you shown in your response.
I am getting 3 years but not the most recent Year. I have 2019,2020,2021, 2022 loaded but when I use the YearOffset to get most recent 3year , I am still getting 2019, 2020, 2021.
please see attached PBIX File.
Hi @Eliezer20101980. The solution is already dynamic. Each time the report (or [Dates] table) is refreshed the [Dates] table will be recalculated (including the YearOffsets).
Greg