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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Cannot Convert value " of type to type Date

I have the dax formula below to create a new column which I have set to be Date format. It was previously working but all the suddent today I am getting "Cannot Convert value " of type to type Date" which only goes away if I set the column back to text format, which will not work for me. Any ideas on how to fix it?

MonthYear = Format (Pipeline[Award Date], "MMMM, yyyy")
1 ACCEPTED SOLUTION

I'm not able to replicate the issue and if what you are saying is correct about the original data column then i don't see why it should not work.

 

What if you try and duplicate the original column and change the format under modeling instead of using a calculated column

 

Capture.PNG

 

This gives you pretty much the same format as you desired

View solution in original post

5 REPLIES 5
Gordonlilj
Solution Sage
Solution Sage

Hi,

 

It seems it's having trouble converting to a date datatype.

Is it possible you could provide the data for the Pipeline[Award Date] column?

 

 

Anonymous
Not applicable

image.png
I have gone through the column and found no bad data in this column, my above formula runs perfectly fine if I have the calculated column set as a text datatype. However I need to have it as a date type to sort 

Right, so the problem most likely lies then with the calculated column itself.

Probably should have asked this previously as well but could you provide the data for the calculated column when it's in text format

Anonymous
Not applicable

image.png

Which is ulimately the format I want it to look like and sort the data by in my Matrix

I'm not able to replicate the issue and if what you are saying is correct about the original data column then i don't see why it should not work.

 

What if you try and duplicate the original column and change the format under modeling instead of using a calculated column

 

Capture.PNG

 

This gives you pretty much the same format as you desired

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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