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
Anonymous
Not applicable

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  @Anonymous ,

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  @Anonymous ,

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 @Anonymous,

 

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
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!

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
Top Kudoed Authors