Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
komald
Helper I
Helper I

By default selection of slicer

is it possible in power bi like whenever user opens report  by default data for current year should be selected ?

for example: I have created report which consist year slicer 2019,2020, 2021 and 2022 . if I save the report by selecting year 2022 i.e current year and publish over on services it shows default 2022 i.e current yeat but here new year get added like 2023 report should take 2023 as a current year and report should  get updated for 2023( I don't want to save report by selecting each year and publish it should be automatic)

1 ACCEPTED SOLUTION
Whitewater100
Solution Sage
Solution Sage

Hi Another but similiar way could be to add a calculated column to your table. The main diffrerence is you place this calc col in fliter pane and no worry about selecting once it there.

 

Current Year in Date Table CC = 

Curr Year =

var cyear = YEAR(TODAY())

return

IF(Dates[YEAR] =cyear,

"Current", CONVERT(Dates[Year],STRING))

 

*Use this (calc column) for your slicer and select current year from filter pane and it will always open to current year.

View solution in original post

3 REPLIES 3
Whitewater100
Solution Sage
Solution Sage

Hi Another but similiar way could be to add a calculated column to your table. The main diffrerence is you place this calc col in fliter pane and no worry about selecting once it there.

 

Current Year in Date Table CC = 

Curr Year =

var cyear = YEAR(TODAY())

return

IF(Dates[YEAR] =cyear,

"Current", CONVERT(Dates[Year],STRING))

 

*Use this (calc column) for your slicer and select current year from filter pane and it will always open to current year.

Tanushree_Kapse
Impactful Individual
Impactful Individual

Hi @komald ,

 

You can do a little workaround here,

Create a seperate column for slicer:
SlicerYear= IF(YEAR(Table[DateColumn])= YEAR(MAX(Table[DateColumn])), "Current Year", Table[DateColumn])

 

Now, put this field in your slicer and keep Current Year selected when you save the file. This way, always the current year would be shown.

 

Mark this as a solution, if I answered your question. Kudos are always appreciated.

Thanks

But every time i need to select current year and save the file, i don't want to do like this , my slicer should be automatically get selected whenever new year get added as current year so that  not need to select current year and save the file

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.