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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
bsz412
Helper III
Helper III

Latest available month selected by default on slicer

Hello,

 

I have the following slicer: 

bsz412_0-1659601092592.png

 

all measures work based on the selected start period and selected end period. I got a requirement, that when client opens the report, by default always the last available month should be selected. I saw solutions that adds "Latest" to the selection. What I need is that when Aug data will be added the selection should show Aug-22 , no text like "Latest" etc...

And at the same time, my measures should not break. 

 

Is that possible?

 

Thank you!

2 REPLIES 2
Kaly
Resolver II
Resolver II

Hi @bsz412 ,

I'm afraid you can't do that. In a slicer, we can only filter the latest value, but the value cannot be selected automatically, select a value in slicer is something have to be done manually.

Even with the Relative date in the visual filter, you can see, the correct date be filtered in the slicer, but not be selected. The slicer cannot filter other visuals and if you use SELECTEDVALUE([Column1]) in a measure, it will also return nothing.

Kaly_0-1660113951214.png

Kaly_1-1660114286445.png

As a workaroud, you can choose Timeline chart, there is an option-latest available period, which can always select the latest date in the slicer.

Kaly_1-1660126198094.png

 

Best Regards,

Kaly

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

 

amitchandak
Super User
Super User

@bsz412 , As of now in power bi you have work with a workaround like the latest month of the current month

 

Month Type = Switch( True(),
eomonth([Date],0) = eomonth(Today(),-1*month(Today())),"Last year Last Month" ,
eomonth([Date],0) = eomonth(Today(),-1),"Last Month" ,
eomonth([Date],0)= eomonth(Today(),0),"This Month" ,
Format([Date],"MMM-YYYY")
)

 

 

or

 

Month Type =

var _today =  max(Table[Date])

return

Switch( True(),
eomonth([Date],0) = eomonth(_today,-1*month(Today())),"Last year Last Month" ,
eomonth([Date],0) = eomonth(_today,-1),"Last Month" ,
eomonth([Date],0)= eomonth(_today,0),"Latest Month" ,
Format([Date],"MMM-YYYY")
)

 

Please log an idea for what you need or vote for the existing one

 

https://ideas.powerbi.com/ideas/

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

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