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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Slicer date : force start and send selection due to current week

Hey,

 

Actually I'm using a date slicer, but I'd like to start and end date to be automaticly selected depending on the current week, but the user will still have the option to change thoose dates on the original scale.

 

For example, from

SamOPEN_0-1598282620222.png

 

if we are the 2020/08/24 I want my default start and end date to be 2020/08/24 and 2020/08/30 :

 

SamOPEN_0-1598283018695.png

6 REPLIES 6
benabdillahr
Frequent Visitor

Hey,

Any luck with this? I am running to the same issue.

v-deddai1-msft
Community Support
Community Support

Hi @Anonymous ,

 

Would you please try to add a measure filter in your visual level filter :

 

Measure = IF(WEEKNUM(MAX('Table'[Date]),2) = WEEKNUM(TODAY(),2),1,0)

 

2.PNG

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Best Regards,

Dedmon Dai

 

 

 

Anonymous
Not applicable

Thank you @v-deddai1-msft , but this is not what I'm looking for, I want the min and max range of my slicer to be the same, I just want the selection of the start and end date to be updated :
SamOPEN_0-1598283018695.png

Hi @Anonymous ,

 

Based on my test, it is not possible to meet your requirement currently.You can come up a new idea about that and add your comments there to improve Power BI and make this feature coming sooner.

 

 

https://ideas.powerbi.com/forums/265200-power-bi-ideas

 

Best Regards,

Dedmon Dai

amitchandak
Super User
Super User

@Anonymous , You can not initialize date ranges using some function.

 

You can create a column in date table

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

and use that in filter as this week

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
Anonymous
Not applicable

Thank you for your answer @amitchandak but I want the user to be still able to slice the date to whatever he wants between the initial min and max date.
I just need a preselection of beginning and end date corresponding to the current week.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors