Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

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.

 

 

 

 

 

Regards

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

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

12 Replies

  • v-jingzhang's avatar
    v-jingzhang
    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.

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

    • Rotemshan's avatar
      Rotemshan
      Helper I

      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

       

      After

       

      • v-jingzhang's avatar
        v-jingzhang
        Community Support

        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. 

         

        Best Regards,
        Community Support Team _ Jing

  • Anonymous's avatar
    Anonymous
    Not applicable

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

    --Nate

    • Anonymous's avatar
      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.

       

      • Fowmy's avatar
        Fowmy
        Super User

        Anonymous 

        Share a sample of your data and the expected result.


  • Anonymous 

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

    • Anonymous's avatar
      Anonymous
      Not applicable

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

       

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