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
itcloud_Learn
Frequent Visitor

Max Date by Default in Slicer

Hi

I have an requirment i need to have Date Slicer which has to show Max Date Value by default, But slicer has option to select different dates also.
So by default Max date has to show and we can select other dates too. Data type should be Date only. Can you please suggest

 

my requirement is Date is coming from database table which has to be by default max date value in the slicer but we can the option to choose or select different dates as well. For the date columns example today date (max date) 18-05-2023 by default it has to show but if i have to change or choose any other date like last month date like 30-04-2023 or any other date. Date Slicer should be in Date(calendar) format data type should be date only not any text.

3 REPLIES 3
amitchandak
Super User
Super User

@itcloud_Learn , As of now you have to use this work around

Date Type = SWITCH(TRUE(),'Date'[Date]=max(fact[date]),"Max Date"
,'Date'[Date]&"")

 

Default Date Today/ This Month / This Year: https://www.youtube.com/watch?v=hfn05preQYA

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 for reply,

 

I am getting the result in the form of List

itcloud_Learn_0-1684572442321.png

but here the expecation is since the column is Date Data type the format should be in the form of calendar. Like below any suggestions

 

itcloud_Learn_2-1684572616310.png

 

 

 

see my solution here
https://community.powerbi.com/t5/Desktop/How-to-set-default-current-month-in-from-date-and-to-date-i...
Instead of VAR _today = TODAY()
write VAR _MaxDate = MAX('tabl'[sales])

 

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