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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
markefrody
Post Patron
Post Patron

DAX to Filter Past 2 Calendar Weeks, Current Week, and Future Weeks

Hi,

I am using storage mode: DirectQuery and would like to have a DAX wherein it will filter the past 2 calendar weeks, current week, and future weeks. For example:

Today is June 22, 2023
The past 2 calendar week days will be: Jun 4, 2023 to June 17, 2023
Current week days will be: June 18, 2023 to June 24, 2023
Future week days will be: June 25, 2023 onwards.

Appreciate your kind assistance.

Best regards,
Mark V.

1 ACCEPTED SOLUTION
Ahmedx
Super User
Super User
2 REPLIES 2
Ahmedx
Super User
Super User

Thank you very much @Ahmedx! Works great! Just modified the variable name but overall it works. 

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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