Forum Discussion

AlBud's avatar
AlBud
Frequent Visitor
3 years ago
Solved

Custom Date Import

Hi all,

 

My problem is when I format in Power Query my custom date it doesn't format as a date and error's up as the below:

 

 

My source file has a custom date format. It's formatted in MSExcel as MMM.

 

I'm importing this into Power Query, I then unPivot the colums:

 

And get the below:

 

 

I can format the column "Attribute" as a date and get the below error:

 

 

Any ideas? I don't want to change the format of my source file.

  • Anonymous's avatar
    Anonymous
    3 years ago

    Hi AlBud ,

     

    How about adding a conditional column to convert the number to month name?

    It's twelve months in total, so it's not particularly troublesome.

     

     

    Best Regards,

    Stephen Tao

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

     

2 Replies

  • Dinesh_Suranga's avatar
    Dinesh_Suranga
    Continued Contributor

    AlBud 

    Hi,

    As I think the custom format for date in your excel should be "MMM".

    Change it to "MMM-yyyy"

    then refresh data set.

    Thank you

     

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi AlBud ,

     

    How about adding a conditional column to convert the number to month name?

    It's twelve months in total, so it's not particularly troublesome.

     

     

    Best Regards,

    Stephen Tao

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.