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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

Automatically select the latest date in slicer (automated preselected slicer)

Hello,

 

I have multiple reports in which new data extract is added each month. I am currently choosing the latest extract date in the extract date slicer so I can see only the last extract data. However, due to I have many reports, it is time consuming to go to each report, go edit mode select the last date in extract date slicer and save the report. There is also the fact of human error to miss a report with the old extract date preselected.

 

Is there any way or a workaround that can sort this automatically? i.e. every time a new data extract is added the report to show the latest date extract data.

 

I am thinking, there may be a way with DAX or any other work around.

 

Many thanks!

2 ACCEPTED SOLUTIONS
Thejeswar
Super User
Super User

Hi @Anonymous ,

The Below video shows a way to get the latest date always by storing it to text and it is always selected. Do check if it helps in your case

 

https://www.youtube.com/watch?v=c_MjL1Cngbs 

 

Regards,

 

View solution in original post

Anonymous
Not applicable

Many thanks this actually works!

I also found another source that solves the issue with a similar way. 

 

powerbi - Default slicer selection (latest date) in Power BI - Stack Overflow

View solution in original post

6 REPLIES 6
PatChan
Helper I
Helper I

Hi, 

 

I had the same requirement. In my case, I added the date field to the slicer, change filter type to "Relative Date" and choose "is in the last 1 year" and check "today" box. This ensures the latest dates are automatically selected without user having to manually drag to include the new dates.

webchris
Advocate III
Advocate III

Hi,

 

could you meanwhile find a way which works in the way you want it to work?

 

The offered solutions limit the user's possibility to select other dates, which is my problem, too. So I would be interested in a "real" solution...

 

Thanks,

Christian

Thejeswar
Super User
Super User

Hi @Anonymous ,

The Below video shows a way to get the latest date always by storing it to text and it is always selected. Do check if it helps in your case

 

https://www.youtube.com/watch?v=c_MjL1Cngbs 

 

Regards,

 

Anonymous
Not applicable

Many thanks this actually works!

I also found another source that solves the issue with a similar way. 

 

powerbi - Default slicer selection (latest date) in Power BI - Stack Overflow

Anonymous
Not applicable

Many thanks for the response Pat. I forgot to mention that the users should still be able to select previous months. I believe with the solution you mentioned. Users will not be able to do this due to the IsLatestMonth filter.

mahoneypat
Microsoft Employee
Microsoft Employee

I would add a Date table to your model (that automatically expands when new data are added) and either use a relative time filter on the reports, or add a column to your date table with IsLatestMonth (and filter your pages to where IsLatestMonth = "Y".

Pat

 





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

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


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.

Top Solution Authors