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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Date Formula (Month)

Hello, 

 

I am wondering what formula to use to grab months from a related table? Some tables are in format "July" and others are in the format 07/01/2017.

 

Thanks in advance for your help.

 

CK

1 ACCEPTED SOLUTION

Create a new column in your first table, "MonthName" or something with a formula like:

 

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

Then you can relate the two tables. Still not entirely sure what you are asking.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

4 REPLIES 4
v-ljerr-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous,

 

I'm not I can understand your requirement either. Could you post your table structures with some sample/mock data, and the expected result? So that we can better assist on this issue. Smiley Happy

 

Regards

Greg_Deckler
Community Champion
Community Champion

Can you provide sample data?

 

Sounds to me like you should create a new custom column where you standardize the format of the month.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Month Format #1.PNGMonth Format #2.PNG

 

This is from two different table...

Create a new column in your first table, "MonthName" or something with a formula like:

 

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

Then you can relate the two tables. Still not entirely sure what you are asking.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.