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

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

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
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.