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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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

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

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
July 2024 Power BI Update

Power BI Monthly Update - July 2024

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

July Newsletter

Fabric Community Update - July 2024

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