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

Show first day of the last week of the month

Hi All, 

 

I need help from you dear gurus. 

 

I need to return the first day of the last week of the month in the query. This is so that I can filter out only the data that I need. 

 

For e.g., if its 20/09 today then I would need to return 30th of August (Monday which is the first day of the last week of the month) 

 

Thanks a bunch for all your wisdom. 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , You can get like

 

Last Month last weekWeek Start date =
var _dt = eomonth(today() ,-1)
return
_dt+-1*WEEKDAY(_dt,2)+1

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@Anonymous , You can get like

 

Last Month last weekWeek Start date =
var _dt = eomonth(today() ,-1)
return
_dt+-1*WEEKDAY(_dt,2)+1

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.