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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Abhilash_P
Kudo Kingpin
Kudo Kingpin

Default slicer selection

How can i keep default dates selection as current month dates in slicer visual
Note - Start date should be 1st of the current month but end date has to be dates till the data is available in current month

Abhilash_P_0-1722237189876.png

 

1 REPLY 1
bhanu_gautam
Super User
Super User

@Abhilash_P , Currently there is no configuration to do it directly 

 

You can use a date table and create measure for Start and End dates

StartOfMonth =
DATE(YEAR(TODAY()), MONTH(TODAY()), 1)

EndOfMonth =
CALCULATE(
MAX('YourDataTable'[DateColumn]),
FILTER(
'YourDataTable',
YEAR('YourDataTable'[DateColumn]) = YEAR(TODAY()) &&
MONTH('YourDataTable'[DateColumn]) = MONTH(TODAY())
)
)

 

Then

Create a Slicer: Add a slicer visual to your report and set it to use the date column from your date table.

Set Default Values Using Bookmarks: To set the default values for the slicer, you can use bookmarks and the relative date filtering feature.

First, set the slicer to the desired default range manually:
Set the start date to the 1st of the current month.
Set the end date to the latest available date in the current month.
Create a bookmark with this slicer state:
Go to the "View" tab and open the "Bookmarks" pane.
Click "Add" to create a new bookmark and name it (e.g., "DefaultDateRange").
Use the Bookmark on Report Load: To ensure the slicer defaults to the current month range when the report is loaded, you can use the bookmark created in the previous step.

Go to the "View" tab and open the "Selection" pane.
Select the slicer visual.
In the "Bookmarks" pane, right-click the bookmark you created and select "Update".




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