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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

DAX Convert Date to Month Error

Hello.

I have a date field which I converted from Text to Date or Date/Time.

The DAX formula is: Completion Month = FORMAT ('Table'[CompletionDate/Time],"YYYY MMM")

where CompletionDate/Time format looks like this: 1/8/2024 1:25:32 PM

and I would like Completion Month to look like this: January 2024

However, I got an error: "Cannot convert value " of type Text to type Date"

What am I doing wrong?
Thank you.

1 ACCEPTED SOLUTION
bhanu_gautam
Super User
Super User

@Anonymous , Create a new custom column instead of new measure,

 

Please accept as solution if it helps




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






View solution in original post

4 REPLIES 4
bhanu_gautam
Super User
Super User

@Anonymous , Create a new custom column instead of new measure,

 

Please accept as solution if it helps




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






Anonymous
Not applicable

Hi, I had created a column, not a measure; anyway, I deleted that column and re-created it, and now it works. Thank you.

Anonymous
Not applicable

Hello, CompletionDate/Time is in Date format (not Text), but still the Completion Month DAX gives the error "Cannot convert value " of type Text to type Date"  :(.
Thanks.

bhanu_gautam
Super User
Super User

@Anonymous ,  please check datatype of exisiting column it must be selected as text select it as date format from drop down in data type than use this formula




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.

Top Solution Authors