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!View all the Fabric Data Days sessions on demand. View schedule
Hi,
I was using this formula below to filter on current week and next 5 weeks but since the coming weeks are in 2023, this formula it's not working properly..
Any help?
Formula I'm using :
Solved! Go to Solution.
This solution works also !
Hi @Anonymous ,
If this is your expected output, try:
Date_Filter =
VAR _weekday = WEEKDAY(TODAY(),2)
VAR _min_date = TODAY()-_weekday+1
VAR _max_date = _min_date+35
VAR _filter = IF('Dim_Calendar'[Calendar Date]>=_min_date&&'Dim_Calendar'[Calendar Date]<_max_date,"current week & next weeks")
RETURN
_filter
Best Regards,
Gao
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data in the Power BI Forum
This solution works also !
Hi @Anonymous ,
Please confirm your Dim_Calendar contains data for 2023?
Best Regards,
Samarth
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin
Yes, sure! I have data for 2023 and more in my Dim_Calendar table.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!