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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
kguinady
Regular Visitor

DAX : Get last/max available date of Prev. Month (NOT last calender date)

Hi,

 

Appreciate your kind help!

 

I just want to get the last/max available date of Prev. Month (NOT last calender date).

By using LASTDATE(PREVIOUSMONTH(Date)) on July 2017 i get 30 june (calender date) noting that last available date in june is 29 June.

 

Thanks a lot,

KEY

1 REPLY 1
erikajain02
Resolver I
Resolver I

Try this : Last Day = CALCULATE(Max(Table1[Date]),PREVIOUSMONTH(Table1[Date])) 

Helpful resources

Announcements
FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.