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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
luis_pflucker
Helper II
Helper II

slicer style "between" with start date as current date

Hello,

I have a table defined with activities from December 19th, 2024 till November 24th, 2025.

I am using slicer type "between" because I want to see past activities and future activites.

I am trying to confifure the slicer in order to at the day I open the dashboard, the start date would be set as the current date, but if i want to back for instance to the last week, I could handle using start date.

 

luis_pflucker_0-1736950866216.png

Please any suggestion?

Luis

1 ACCEPTED SOLUTION
v-linhuizh-msft
Community Support
Community Support

Hi @luis_pflucker ,

 

You can try using preselected slicer:

vlinhuizhmsft_0-1736991527255.png

 

I created simple example data:

vlinhuizhmsft_1-1736992563454.png

 

Please refer to the following steps:

1. Create a measure:

Pre Date = 
VAR _today=TODAY()
RETURN
MAX('Date'[Date])>=_today

 

2. Create a new table:

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

 

3. Add a preselected slicer:

vlinhuizhmsft_2-1736992821863.png

4. Result:

vlinhuizhmsft_3-1736992884946.png

You can restore and clear the pre-selected effects by clicking on the reset and clear buttons in the upper right corner of the slicer.

 

Best Regards,
Zhu

 

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

View solution in original post

1 REPLY 1
v-linhuizh-msft
Community Support
Community Support

Hi @luis_pflucker ,

 

You can try using preselected slicer:

vlinhuizhmsft_0-1736991527255.png

 

I created simple example data:

vlinhuizhmsft_1-1736992563454.png

 

Please refer to the following steps:

1. Create a measure:

Pre Date = 
VAR _today=TODAY()
RETURN
MAX('Date'[Date])>=_today

 

2. Create a new table:

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

 

3. Add a preselected slicer:

vlinhuizhmsft_2-1736992821863.png

4. Result:

vlinhuizhmsft_3-1736992884946.png

You can restore and clear the pre-selected effects by clicking on the reset and clear buttons in the upper right corner of the slicer.

 

Best Regards,
Zhu

 

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

Helpful resources

Announcements
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!

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Feb2025 NL Carousel

Fabric Community Update - February 2025

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