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
AlBud
Frequent Visitor

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:

AlBud_2-1665132569843.png

 

 

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

 

AlBud_0-1665132319925.png

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

 

AlBud_1-1665132384364.png

And get the below:

AlBud_3-1665132675058.png

 

 

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

 AlBud_2-1665132569843.png

 

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

1 ACCEPTED SOLUTION
v-stephen-msft
Community Support
Community Support

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.

vstephenmsft_0-1665646266160.png

vstephenmsft_1-1665646301552.png

 

 

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.

 

View solution in original post

2 REPLIES 2
v-stephen-msft
Community Support
Community Support

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.

vstephenmsft_0-1665646266160.png

vstephenmsft_1-1665646301552.png

 

 

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.

 

Dinesh_Suranga
Continued Contributor
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

 

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