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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
Igotzepowerbi
Frequent Visitor

Need Date Slicer to Default to Most Recent/ Max Create Date

Hi,
I have a date slicer using Create Date from my JG Forecast Complete table and I am needing it to default to the Max Create Date. 
So like today I go to my report and the selected date is 02/20/2024 I need it to be the max create date which is 02/25/2024.
Is there a way to do this? Thanks so much in advance!

Igotzepowerbi_0-1708964477581.png

 



1 ACCEPTED SOLUTION
PijushRoy
Super User
Super User

Hi @Igotzepowerbi 


Please create a measure MaxDate = Max(Table[Date])

Please use Custom free visual PreSelected Slicer

PijushRoy_0-1708966501188.png

Create a calculated Table

 

_PreselectedSlicer = DATATABLE(
    "IsDirtySlicer1", BOOLEAN, "IsDirtySlicer2", BOOLEAN, 
    {
        {FALSE(), FALSE()},
        {FALSE(), TRUE()},
        {TRUE(), FALSE()},
        {TRUE(), TRUE()}
    }
)

 

 

Now create the PreSelected slicer visual

PijushRoy_1-1708966843291.png

 




Let me know if that works for you


If your requirement is solved, please mark THIS ANSWER as SOLUTION ✔️ and help other users find the solution quickly. Please hit the Thumbs Up 👍 button if this comment helps you.

Thanks
Pijush
Linkedin




Did I answer your question? Mark my post as a solution!
Appreciate your Like/Kudos

Proud to be a Super User!





View solution in original post

2 REPLIES 2
PijushRoy
Super User
Super User

Hi @Igotzepowerbi 


Please create a measure MaxDate = Max(Table[Date])

Please use Custom free visual PreSelected Slicer

PijushRoy_0-1708966501188.png

Create a calculated Table

 

_PreselectedSlicer = DATATABLE(
    "IsDirtySlicer1", BOOLEAN, "IsDirtySlicer2", BOOLEAN, 
    {
        {FALSE(), FALSE()},
        {FALSE(), TRUE()},
        {TRUE(), FALSE()},
        {TRUE(), TRUE()}
    }
)

 

 

Now create the PreSelected slicer visual

PijushRoy_1-1708966843291.png

 




Let me know if that works for you


If your requirement is solved, please mark THIS ANSWER as SOLUTION ✔️ and help other users find the solution quickly. Please hit the Thumbs Up 👍 button if this comment helps you.

Thanks
Pijush
Linkedin




Did I answer your question? Mark my post as a solution!
Appreciate your Like/Kudos

Proud to be a Super User!





nsexton12
Resolver II
Resolver II

You could add a calculated column that is that max date in your date colunn and make that the value of your slicer. 

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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