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
s_mansell
Helper I
Helper I

Last Friday of Current Month and First Friday of Next Month

Hi all, 

 

 

I need a field that returns the date of the last Friday in the current month and another field that returns the date of the first Friday of the upcoming month, any help? 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@s_mansell, try like

Last Friday of Current Month= 
var _date = Today()
 var _eo =EOMONTH(_date,0) 
return
 _eo+-1*if(WEEKDAY(_eo)-6<0,WEEKDAY(_eo)+1,WEEKDAY(_eo)-6)

First Friday of next month = [Last Friday of Current Month]+7

 

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@s_mansell, try like

Last Friday of Current Month= 
var _date = Today()
 var _eo =EOMONTH(_date,0) 
return
 _eo+-1*if(WEEKDAY(_eo)-6<0,WEEKDAY(_eo)+1,WEEKDAY(_eo)-6)

First Friday of next month = [Last Friday of Current Month]+7

 

@amitchandakThank you so much!

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.