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
Syndicate_Admin
Administrator
Administrator

Automatically mark the first value in a filter.

Good afternoon

I have loaded in a filter object a view with different dates. I would like to know if it is possible to mark when entering the report the most current date loaded in the filter.

Thank you in advance

4 REPLIES 4
v-jingzhang
Community Support
Community Support

Hi @Syndicate_Admin 

I don't 100% understand your requirement. Can you share some dummy data or visuals to describe what you want to achieve? 

 

Regards,
Community Support Team _ Jing

amitchandak
Super User
Super User

@Syndicate_Admin , There no function support to default value , you can create a flag or column below and default on last date

 

Is Today = if('Date'[Date]=max(Table[Date]),1,0)

 

or

 

 

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

 

You can use one them as slicer

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

Thank you very much, @Syndicate_Admin,

I created the new column with a value of 1 when it's the maximum date and 0 for the rest. Now, how do I automatically select when I load the report what this column equals 1?. I give example:

Captura.PNG

I now have dates 09/04/2021 and 08/04/2021. In the new column max_fecha, I have the value 1 for 09/04/2021 and the value 0 for 08/04/2021. My goal is that when opening the report dial 09/04/2021 as shown in the image.

Thanks again

Hi @Syndicate_Admin 

You can refer to this blog: Power BI Tutorial: Dynamically update Date slicer to show Current Date – business intelligist

 

Currently Power BI will keep the selected value in a slicer. It means when you log out of Power BI and come back to a report, the same items will be selected as when you left. It cannot be updated automatically. So in above blog, it selects a fixed Most Recent Date value in the slicer. Every time the data is refreshed, the Most Recent Date value will be updated.

 

Additionally, there is an idea about this feature: Microsoft Idea  · Default Selected Slicer or Tile-By Value Configuration (powerbi.com)

 

Hope this helps.

 

Regards,
Community Support Team _ Jing
If this post helps, please Accept it as the solution to help other members find it.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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