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
jstacruz
Frequent Visitor

Help! Date column is in type text and cannot be converted to date

Hello all!

I need your help to see why this specific error occurred. Here is a photo of my dataset:



Image and video hosting by TinyPic

I created "Month Closed" and "Year Closed" table based from the date/time column "Last Update Time" to get the closed date. For some odd reason, when I'm trying to combine both month and year using the query on the photo, it produces an error that cannot convert "" of type Text to type Date. I find it peculiar because I tried it to combine columns "Month Created" and "Year Created" for => "Month Year Created" column and it worked perfectly. I checked the data type of "Last Update Time" but it's in right format.

Do you have any idea on why this is happening?

Thanks so much.


Regards,

Nina

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

There is a blank cell in one of the two column.  See if this works

=IFERROR(your_formula,BLANK())


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

4 REPLIES 4
Ashish_Mathur
Super User
Super User

Hi,

There is a blank cell in one of the two column.  See if this works

=IFERROR(your_formula,BLANK())


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

There are no blank cells for the columns. And I tried the query, it did not change anything Smiley Sad

Nishantjain
Continued Contributor
Continued Contributor

In your screenshot, I can see the data type as date. Have you tried to change it to text?

Hi,

Share the link from where i can download your PBI file.  I will try to correct for the mistake in your formula.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

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.