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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
kitti
Helper III
Helper III

Date slicer to override filter

Hi,

 

I have a dashboard to show last 7-day data for the entire page by default. I configured it on the page level filter. But there is a range date slicer allowing users to select the date themselves. Currently, they can only select last 7-day data as I configured. Is there a way to select date more than 7 days but still show 7 days as default?

 

 

Thank you

KL

4 REPLIES 4
Anonymous
Not applicable

Hi  @kitti ,

I created some data:

vyangliumsft_0-1644542083184.png

You can try the following methods:

Place two visuals related to the date, one visual is affected by its own filter and the other is affected by the slicer.

vyangliumsft_1-1644542083187.jpeg

1. Click on visual2, set is in the last - 7 - days in Filters, and visual2 will display the data of the last 7 days.

vyangliumsft_2-1644542083190.jpeg

2. Click on the slicer, select Format - Edit Interactions - Visual in the upper right corner of the sign (yellow mark), so that visual2 will not be affected by the slicer.

vyangliumsft_3-1644542083192.jpeg

3. Result.

When the slicer is selected, the content of visual1 will change with the selection, and visual2 will not be affected by the slicer, and the content of the filter is displayed.

vyangliumsft_4-1644542083194.jpeg

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

@Anonymous  Thank you very much for the method. However, I want the entire page go with the slicer. Just show last 7 days as default at first when users view. Could you please advise

amitchandak
Super User
Super User

@kitti , You can create a slicer like this or use.

Date Type = SWITCH(TRUE(),'Date'[Date]<=TODAY() && 'Date'[Date]>=TODAY() -7,"Last 7 days"
,'Date'[Date]&"")

 

Or you can measure to work on last 7 days using date

 

https://community.powerbi.com/t5/Desktop/Required-custom-date-Slicer-Last-7-days-last-15-days-last-3...

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

@amitchandak Thank you for the comment. I just tried the slicer but it shows up only last 7 days. Just FYI, my data in the dashboard is around 90 days. I want users to be able to select as far as my data is. I really appreciate any help

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.