cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Rotemshan
Helper I
Helper I

Error in date column - Unable to change type

Hello, 

 

I'm experiencing some issues with a date column, 

I have reviewed some of the suggestions in the forum, but unfortunately, none of the solutions worked. 

 

I'm working with data that was imported from a CSV file (Not sure how important this detail is).

 

One line is empty in the column 

The data type is "text" by default but, when trying to change it to a date, or change it by locale, all become to be "errors"

I tried to:

  1. Split the column to date and time
  2. Replace the blank values with null/blank

Nothing seems to be working

Any Ideas to fix it? 

 

Before

Rotemshan_0-1643099465885.png

 

 

After

Rotemshan_1-1643099465887.png

 

 

1 ACCEPTED SOLUTION

I changed the source of the data to be XLSX instead of SCV, 

It saves a lot of time converting the data

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@Rotemshan , Create a new column using Date>FromText([Column]) 

https://docs.microsoft.com/en-us/powerquery-m/date-fromtext

 

if required do clean and trim

Power Query Trim and Clean : https://youtu.be/NRYPsCnS0w4

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!! !!
Dashboard of My Blogs !! Connect on Linkedin
Want To Learn Power BI
Learn Power BI Beginners !! Advance Power BI Concepts !! Power BI For Tableau User !! Learn Power BI in Hindi !!
Proud to be a Super User!
!! Subscribe to my youtube Channel !!

I'm sorry - I'm a newbie, 

Could you please be more detailed 

I tried to google your answer and couldn't understand what steps should be taken 

I changed the source of the data to be XLSX instead of SCV, 

It saves a lot of time converting the data

Helpful resources

Announcements
Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

charticulator_carousel_with_text (1).png

Charticulator Design Challenge

Put your data visualization and design skills to the test! This exciting challenge is happening now through May 31st!

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Power BI Dev Camp Session 22 768x460.jpg

Check it out!

Mark your calendars and join us on Thursday, May 26 at 11a PDT for a great session with Ted Pattison!