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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Tara_01
Helper II
Helper II

Set year filter to default 2022

Hi all,

 

I am stuck with a query. I have a year filter which has 4 different years 2020, 2021, 2022, 2023 I want to set the Year Filter default to 2022. As whenever I open my dashboard it year should be set 2022 irrespective of whichever year we closed the report at. Can anyone help me what needs to be done ?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi  @Tara_01 ,

I created some data:

vyangliumsft_0-1671698536986.png

Here are the steps you can follow:

1. Get more visuals – Preselected Slicer.

vyangliumsft_1-1671698536987.png

vyangliumsft_2-1671698536988.png

2. Enter data – Create a table.

vyangliumsft_3-1671698536989.png

3. Create measure.

Flag =
var _year=SELECTEDVALUE('Table'[Year])
var _default2022 = YEAR(TODAY())
return
IF(_year=_default2022 , TRUE(),FALSE())

4. Place the fields in the Preselected Slicer as follows.

vyangliumsft_4-1671698536991.png

5. Result:

Automatic default 2022

vyangliumsft_5-1671698536992.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi  @Tara_01 ,

I created some data:

vyangliumsft_0-1671698536986.png

Here are the steps you can follow:

1. Get more visuals – Preselected Slicer.

vyangliumsft_1-1671698536987.png

vyangliumsft_2-1671698536988.png

2. Enter data – Create a table.

vyangliumsft_3-1671698536989.png

3. Create measure.

Flag =
var _year=SELECTEDVALUE('Table'[Year])
var _default2022 = YEAR(TODAY())
return
IF(_year=_default2022 , TRUE(),FALSE())

4. Place the fields in the Preselected Slicer as follows.

vyangliumsft_4-1671698536991.png

5. Result:

Automatic default 2022

vyangliumsft_5-1671698536992.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

Shaurya
Memorable Member
Memorable Member

Hi @Tara_01,

 

Create a bookmark with year set to 2022. Add a landing page for your report and a button with Action as Bookmark. So when the users click on that button, they will be directed to the relevant page of your report with the year filter selected as 2022.

 

Works for you? Mark this post as a solution if it does!
Check out this blog of mine: How to Export Telemetry Data from Azure IoT Central into Power BI 
 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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