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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Anonymous
Not applicable

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/
Anonymous
Not applicable

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

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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