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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
s_mansell
Helper I
Helper I

El último viernes del mes actual y el primer viernes del mes siguiente

Hola a todos

Necesito un campo que devuelva la fecha del último viernes del mes actual y otro campo que devuelva la fecha del primer viernes del mes siguiente, ¿alguna ayuda?

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@s_mansell, tratar como

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, tratar como

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

@amitchandak ¡Muchas gracias!

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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