Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Quenjo
Helper II
Helper II

How to handle date format "YYYY-MM-DD" when transforming data ?

Hi community,

 

I have quite a strange issue, let me show you some examples :

 

Quenjo_0-1664289199209.png

 

When importing data from the database it imports the dates as a "Text" field.

When I change the "Text" into "Date" format, here is the output :

Quenjo_1-1664289247636.png

 

This is exactly what I am expecting. However, when saving my modifications, on my report I have the following :

Quenjo_2-1664289323661.png

 

How is it possible ? How can I handle this ?

Taking into account that on my preview everything seems to be fine...

 

I cannot let the field be in "Text" format because I need to do some filtering on the dates.

 

Many thanks for the help provided.

 

Jonathan

 

 

 

1 ACCEPTED SOLUTION
v-jingzhang
Community Support
Community Support

Hi @Quenjo 

 

In Power BI Desktop, switch to Data view, select your Date column, ensure its Data type is Date and change its Format to dd.mm.yyyy in Column tools ribbon. 

vjingzhang_0-1664334531514.png

 

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

View solution in original post

2 REPLIES 2
v-jingzhang
Community Support
Community Support

Hi @Quenjo 

 

In Power BI Desktop, switch to Data view, select your Date column, ensure its Data type is Date and change its Format to dd.mm.yyyy in Column tools ribbon. 

vjingzhang_0-1664334531514.png

 

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

amitchandak
Super User
Super User

@Quenjo , Make sure the data type is date in both power query and in DAX. Check column tools for data type

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.