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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
oriabbhou1
Frequent Visitor

Set Week slicer default to previous week

Hi,

 

I have 3 columns from my site table.

 

Week= 'Survey_20_21'[Week Start Date].[Date]&"-" & 'Survey_20_21'[Week End Date].[Date]

Week start date= Survey_20_21[Distro Date].[Date] - WEEKDAY('Survey_20_21'[Distro Date].[Date],2)

Week end date= 'Survey_20_21'[Distro Date].[Date] - WEEKDAY('Survey_20_21'[Distro Date].[Date],2) + 7

 

I have set week to a slicer so my user can view my report by their desired week but now I need help defaulting my week slicer to the previous week. Any help would be greatly appreciated.

1 REPLY 1
amitchandak
Super User
Super User

@oriabbhou1 , Create a Column like this in your date table and sort it on Week Start date and then you can select Last week in The slicer

 

Week Type = Switch( True(),
[start week]<=Today() && [end date]>=Today(),"This Week" ,
[start week]<=Today()-7 && [end date]>=Today()-7,"Last Week" ,
[Week Name]
)

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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