Forum Discussion
Custom year slicer
Yes, as long as the dataset is refreshed so that Year Offset column = 0 for the current year.
The slicer selection is actually Year Offset = 0. It just displays the appropriate year as a label in place of 0, and the label will update to whichever year corresponds Year Offset =0.
okay. And is it possible if we do this in dropdown?
And in the year offset column we have defined the end date. Will it dynamically change if the year changes?
- OwenAuger2 years agoSuper User
Right now, dropdown is unfortunately not possible with this new Slicer visual. And the original Slicer has no option for displaying labels and hiding values 😞
Yes, the "Year Offset" column will dynamically change on refresh as long as it is defined in a calculated column or table relative to TODAY() (using DAX) or similarly in Power Query.
My example version was defined in a calculated table using the TODAY() function to determine the current year.