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

Date Formats switching between American and English in the same column

Has anyone else come across this problem or varying formats on dates in the same column?

I have a column of text, some with dates in, some with "TBC" and "N/A", so I've created a new column extracting into a date format anything with a LEN > 5.

 

As an example, the text "25/04/2018" extracts to this new column as "25 April 2018"

but "12/03/2018" extracts as "03 December 2018"

 

I've checked the Excel source formatting and there is no issue there so I'm a little stuck at the minute.

 

 

 

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

@Anonymous,

 

You may use DATE Function to add a calculated column.

Column =
DATE ( RIGHT ( Table1[Column1], 4 ), MID ( Table1[Column1], 4, 2 ), LEFT ( Table1[Column1], 2 ) )
Community Support Team _ Sam Zha
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
Anonymous
Not applicable

Hi @Anonymous 

 

I came across the exact same issue. Reformatting the data type to 'Date' via the Modeling tab didn't work for me.

 

However, going into 'Edit Queries' and transforming the data type here from 'Any' into 'Date' displayed the correct format across the whole column of dates.

v-chuncz-msft
Community Support
Community Support

@Anonymous,

 

You may use DATE Function to add a calculated column.

Column =
DATE ( RIGHT ( Table1[Column1], 4 ), MID ( Table1[Column1], 4, 2 ), LEFT ( Table1[Column1], 2 ) )
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.