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
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

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 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.