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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

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 FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Kudoed Authors