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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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]
)

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors