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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
ThomasWeppler
Impactful Individual
Impactful Individual

How do I set a defualt date for a date slicer

Hi Power BI community

How do I set a default date for a date slicer?

ThomasWeppler_0-1724936497559.png

I want my date slicer to always start at the first date of the year.
I can ofcause choose the date 01/01/2024 but than I will have to change the date and upload the repport again every year, so I want to know if there is another way to do it. 🙂

1 ACCEPTED SOLUTION
bhanu_gautam
Super User
Super User

@ThomasWeppler , Currently there is no direct way but you can try using bookmarks

In your date table, create a calculated column that identifies the first date of the year for each date. You can use the following DAX formula:
DAX
FirstDateOfYear = DATE(YEAR([Date]), 1, 1)
Create a Measure for the Default Date:
Create a measure that calculates the first date of the current year. This measure will dynamically update each year:
DefaultDate = DATE(YEAR(TODAY()), 1, 1)


Set the Default Date in the Slicer:

Add the date field to the slicer.
Use the measure DefaultDate to set the slicer's default value.

 

 

Instead of a standard date slicer, use a relative date slicer.
Set the relative date slicer to show dates in the "This Year" range. This will automatically adjust to the current year without needing manual updates.
Using Bookmarks:

Set the slicer to the desired default date (e.g., 01/01/2024).
Create a bookmark with this slicer setting.
Use this bookmark to reset the slicer to the default date whenever needed.




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






View solution in original post

1 REPLY 1
bhanu_gautam
Super User
Super User

@ThomasWeppler , Currently there is no direct way but you can try using bookmarks

In your date table, create a calculated column that identifies the first date of the year for each date. You can use the following DAX formula:
DAX
FirstDateOfYear = DATE(YEAR([Date]), 1, 1)
Create a Measure for the Default Date:
Create a measure that calculates the first date of the current year. This measure will dynamically update each year:
DefaultDate = DATE(YEAR(TODAY()), 1, 1)


Set the Default Date in the Slicer:

Add the date field to the slicer.
Use the measure DefaultDate to set the slicer's default value.

 

 

Instead of a standard date slicer, use a relative date slicer.
Set the relative date slicer to show dates in the "This Year" range. This will automatically adjust to the current year without needing manual updates.
Using Bookmarks:

Set the slicer to the desired default date (e.g., 01/01/2024).
Create a bookmark with this slicer setting.
Use this bookmark to reset the slicer to the default date whenever needed.




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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