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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors