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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
basyan1991
Regular Visitor

How to set current week as default slicer

Hi 

 

I tried to follow the below video to set the default slicer as current month in PowerBI. And it works well on my other report.

https://www.youtube.com/results?search_query=Set+Default+Slicer+Selection+to+Current+week

 

But this time I would like to set the slicer to current week. I have created the date table as I need a week cycle to start from Thurs to Wed.

 

I can set today as "Current Week". But I can't figure out a way to replace the remaining days as "Current Week" as well.

 

basyan1991_1-1672908924643.png

 

Appreicate all your help!

1 ACCEPTED SOLUTION

@basyan1991 , Try like

 

var _st= today() +-1*if(WEEKDAY(today())<4,WEEKDAY(today())+3,WEEKDAY(today())-4)
var _end = _st+6
return
if([Date]>=_st && [Date] <=_end, "Today", [Date] &"")

 

 

 

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

View solution in original post

4 REPLIES 4
Idrissshatila
Super User
Super User

Hello,

 

you should have a week number column, then you use in you measure were if(weeknum(today()) = week number column,"Current week")

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

 

Follow me on Linkedin

 



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




Thanks for replying! But from what I understand this wont be able to work as I have a different week cycle setting. Starting from Wednesday to next Thursday.

Not sure whether I understand this correctly. 

@basyan1991 , Try like

 

var _st= today() +-1*if(WEEKDAY(today())<4,WEEKDAY(today())+3,WEEKDAY(today())-4)
var _end = _st+6
return
if([Date]>=_st && [Date] <=_end, "Today", [Date] &"")

 

 

 

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

I have tried that on my report. It works perfect now! 

Thanks for your help!

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.