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
purple_SP
Helper I
Helper I

Setting Date Slicer to default to the max date when dataset is refreshed daily

Hello all,

 

I have a report where the data is updated daily (where the most recent date is a few days lagged from the current date). I would like the date slicer to default to the maximum available date when the user opens the report. eg the current max date is 6/26/2023, so the report should look like this when it is opened.

 

purple_SP_0-1687938589298.png

However, tomorrow once it has been updated, it should be: 1/1/2023 to 6/27/2023 when the report is opened.

 

I've had a look around, but I can't find exactly what I'm looking for. I also want to know if it is possible to do this just within PBI service as I want to avoid editing my data model and having to do a full refresh of it due to the size. 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @purple_SP 

First you need to make sure that your data table contains the current maximum date, because you say that the most recent date is a few days behind the current date, the slicer can only return the largest date in the current data table, and then make sure that the data table contains the current maximum date, you can create a measure.

Measure = var a=TODAY()
return IF(MAXX(ALLSELECTED('Table'[Date]),[Date])=a,1,0)

Then put the measure to the slicer visual filter

vxinruzhumsft_0-1688092320403.png

 

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Output

vxinruzhumsft_1-1688092476337.png

 

 

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @purple_SP 

First you need to make sure that your data table contains the current maximum date, because you say that the most recent date is a few days behind the current date, the slicer can only return the largest date in the current data table, and then make sure that the data table contains the current maximum date, you can create a measure.

Measure = var a=TODAY()
return IF(MAXX(ALLSELECTED('Table'[Date]),[Date])=a,1,0)

Then put the measure to the slicer visual filter

vxinruzhumsft_0-1688092320403.png

 

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Output

vxinruzhumsft_1-1688092476337.png

 

 

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