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

error date column

Hello PBI Community,

 

Anyone please help me with this error in date column. Also i tried splitting the column with delimiter and had errors. Can anyone help me with either of these errors.

 

I have attached pictures for reference.Date correction.PNG

 

 

 

 

 

Remove errors.PNG

Regards

1 ACCEPTED SOLUTION
v-jingzhang
Community Support
Community Support

Hi @Anonymous 

Remove your current Change Type step or convert the Date column to Text type first. Then right click on the Date column and select Change Type > Using Locale... In the Change Type window, select Date for Data Type, English (United Kingdom) or other locales which has the same date format as your original Date column input. This should change the type into Date correctly.

053101.jpg

Regards,
Community Support Team _ Jing
If this post helps, please Accept it as the solution to help other members find it.

View solution in original post

12 REPLIES 12
hammedabdulazee
New Member

Simply follow the steps below to resolve the issue. Select your local time that works for you.

 

hammedabdulazee_0-1684420677878.png

 

hammedabdulazee_2-1684420727194.png

 

 

 

v-jingzhang
Community Support
Community Support

Hi @Anonymous 

Remove your current Change Type step or convert the Date column to Text type first. Then right click on the Date column and select Change Type > Using Locale... In the Change Type window, select Date for Data Type, English (United Kingdom) or other locales which has the same date format as your original Date column input. This should change the type into Date correctly.

053101.jpg

Regards,
Community Support Team _ Jing
If this post helps, please Accept it as the solution to help other members find it.

Hello, 

 

I'm experiencing the same problem, 

Unfortunately, the solution here didn't work, 

The data type is "text" 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? 

 

Before

Rotemshan_0-1643080472550.png

 

After

Rotemshan_1-1643080701004.png

 

Hi @Rotemshan 

 

As your original column has both date and timestamps values, change its type to Date/Time instead of Date. When it is of Date/Time type, then you can change it to Date type without any errors. 

22012601.jpg

 

Best Regards,
Community Support Team _ Jing

Hi @v-jingzhang 

I tried the suggested but unfortunately, still getting the same error 

Rotemshan_0-1643167335196.png

 

@Rotemshan Can you share the error message?

Eventually, I changed the source of the data to XLSX instead of CSV, it saves a lot of time transforming the data, 

I'm not sure if this is the best practice, but it works. 

Thank you very much 

Fowmy
Super User
Super User

@Anonymous 

Your dates columns are not in Date Type, please change the type to date before this step.

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Anonymous
Not applicable

Can you please elaborate further, I have changed from the data type to date.

 

watkinnc
Super User
Super User

Besides making sure you are using the correct locale settings, I'm afraid the solution is to clean up that dirty data.

--Nate


I’m usually answering from my phone, which means the results are visualized only in my mind. You’ll need to use my answer to know that it works—but it will work!!
Anonymous
Not applicable

I tried changing my locale but the problem still prevails. Can you see the second SS and tell how can I replace the dashes or remove those dashes.

 

@Anonymous 

Share a sample of your data and the expected result.


Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

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.

Top Solution Authors
Top Kudoed Authors