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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

how to do month(max(date)) in DAX?

I have a visual where I just want to display the month of the latest date…

 

In sql I would do month(max(date))… In dax; I do max(month) and I obviusly get the wrong result…

 

 

How can achieve it?

(my model is pretty standard, with DimDate and a fact connected to it….

1 REPLY 1
amitchandak
Super User
Super User

@Anonymous , Try measure like

 

Month(maxx(allselected(Table), Table[Date]))

 

or

 

format(maxx(allselected(Table), Table[Date]), "mmm")

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.