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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Giada_Togliatti
Post Patron
Post Patron

filter with default open to last date

Hi,

I have a filter with field date.

Is it possibile to setting up a default open to a filter as last date available so if the database updates if I open the workbook I have always the last date selected?

 

Thank you

4 REPLIES 4
Naash
Frequent Visitor

First you need to create a measure that selects the latest date value and then use this measure as an input to create a calculate column in power bi

 

Measure
max_date= 

CALCULATE(LATEST_DATE(Data[Date]),ALL(Data))
 
Calculated Column
recent_date=
if([max_date]=Data[Date],"Latest_Data","Historic_Data")
 
And then you can use this column as a value in "Filter on this page" over the Filter section and select the default value as "Latest_Data" and lock the filters. By doing so the only the recent data would be displayed
amitchandak
Super User
Super User

@Giada_Togliatti , You can have a column like this in date table

 

Is Max= if('Date'[Date]=max(Table[Date]),"Last Date",[Date]&"")

 

You can select last date -Last Date

 

You can sort this column on Date

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak, could you send me a sample workbook with the solution, please?

 

Anonymous
Not applicable

Hi @Giada_Togliatti ,

It is currently impossible to achieve if set the maximum date as the default option for the filter or slicer directly. You can refer the solution in the following threads as workaround to achieve it.

Default slicer selection(Latest date) in Power BI

Select latest date in Slicer

max value selected in date slicer

In addition, here is one similar idea shared on Power BI Ideas, you can vote it up and add your comments there to improve Power BI on this feature. You can also raise a new one.

Best Regards
Rena
Community Support Team _ Rena Ruan
If this post helps, then please consider Accept it as the solution to help the other members find it more.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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