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
VisualJade
Frequent Visitor

Change Slicer values automatically every Week

Hi all, I have a total of 8 slicers in 4 bookmarks. This is what it looks like. For example, this Monthly bookmark has 1 slicer for 'Earlier Period', and another slicer for 'Latest Period'. Both slicers are referencing different fact tables. I tried using DAX to use just one fact table or date table, but certain data would be left out. This solution works for now.

VisualJade_0-1712112511621.png


My data compares last w/m/q/y to previous w/m/q/y. So the 'Earliest Period' should be automatically on 2 weeks/m/q/y ago, and 'Latest Period' should be last week/m/q/y. I would like the slicer values to change automatically every week to the correct 'Earliest Period' and 'Latest Period'. 

Right now, I'm updating the slicers manually every Friday. I would like this to be done automatically.

 

Why am I using slicers? Because the user should also be able to change which weeks/months/quarters/years to compare. 

Anyone knows what to do?

1 ACCEPTED SOLUTION
Uzi2019
Super User
Super User

Hi @VisualJade 
If you would apply a pre filter to a slicer then only calculated data will be appear on slicer value. user will not be able to modify any other date.

 

for example today 's month is 4. If  I create a column that only calcultes earlier month ie Feb based on todays date. then slicer will not show the rest of the data. after applying the filter to the slicer.

 

See for example I have created Previous Month dax to calculate Feb data .

Uzi2019_0-1712120910355.png

 

If I put this in slicer visual filter like this

Uzi2019_1-1712120989551.png

 

 

So it is just having Feb month not other data. users wil not be able to change the selection bcz there is no data.

 

So solution you are looking that automatically data should be selected based on latest refresh is not quite possible. 

 

I hope I answered your question!

 

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

View solution in original post

2 REPLIES 2
Uzi2019
Super User
Super User

Hi @VisualJade 
If you would apply a pre filter to a slicer then only calculated data will be appear on slicer value. user will not be able to modify any other date.

 

for example today 's month is 4. If  I create a column that only calcultes earlier month ie Feb based on todays date. then slicer will not show the rest of the data. after applying the filter to the slicer.

 

See for example I have created Previous Month dax to calculate Feb data .

Uzi2019_0-1712120910355.png

 

If I put this in slicer visual filter like this

Uzi2019_1-1712120989551.png

 

 

So it is just having Feb month not other data. users wil not be able to change the selection bcz there is no data.

 

So solution you are looking that automatically data should be selected based on latest refresh is not quite possible. 

 

I hope I answered your question!

 

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!
amitchandak
Super User
Super User

@VisualJade , The standard slicer do not support that as of now. You can try preselected slicer

https://appsource.microsoft.com/en-us/product/power-bi-visuals/insiderscoop1611244107840.powerbi_cus...

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

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!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.

Top Solution Authors
Top Kudoed Authors