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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Anonymous
Not applicable

extracting the month from a date field

Hi

I have a field that contains dates and want to just take out the month so I can plot a series of data points against that single month value instead of a range of date. Is there a function/measure/dax that will look at the date and return just the month value from it?

THanks!

Paul

1 ACCEPTED SOLUTION
BA_Pete
Super User
Super User

Hi @Anonymous ,

Try:

MONTH([date])

This will give you the month NUMBER (e.g. Jan = 1, Feb = 2 etc.).

If you want this to be more user-friendly, you could add a SWITCH(), something like this:

MyMonth =
SWITCH(
    TRUE(),
    MONTH([date]) = 1, "Jan",
    MONTH([date]) = 2, "Feb"... etc.

 

Good luck



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




View solution in original post

3 REPLIES 3
BA_Pete
Super User
Super User

Hi @Anonymous ,

Try:

MONTH([date])

This will give you the month NUMBER (e.g. Jan = 1, Feb = 2 etc.).

If you want this to be more user-friendly, you could add a SWITCH(), something like this:

MyMonth =
SWITCH(
    TRUE(),
    MONTH([date]) = 1, "Jan",
    MONTH([date]) = 2, "Feb"... etc.

 

Good luck



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




az38
Community Champion
Community Champion

@Anonymous @BA_Pete 

🙂

or you can get month name by 

Column =[Date].[Month]

or

Column = FORMAT([Date], "mmm")

or

Column = FORMAT([Date], "mmmm")

 


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

Ah, yes. Do what @az38 said. Way tidier.

@Anonymous 



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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.