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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
LauraBueno
Helper III
Helper III

Date format in power Bi Desktop

Hi all,

 

I have data table in power bi Desktop that has a column with date information and the format is text. I am trying to convert it to Date format however when I try to change the format it considers US format for some reason. I have set up English (United Kingdom) in both desktop and also PowerBi service so not sure why it is selecting US format 😞

 

Also, something strange that I have notice is that it is mixing both formats so when I have 29/06 it considers UK version (since it cannot use 29 for the month) but otherwise it will use US format for the date.

Any ideas how could I fix this please?

 

Thanks in advance!

Lauradateformaterror.png

1 ACCEPTED SOLUTION
VIJAYKUMART
Resolver I
Resolver I

step 1:

VIJAYKUMART_1-1646919443064.png

Step 2:

 

VIJAYKUMART_0-1646919296870.png

 

then change data type in power query. Hope it helps

 

View solution in original post

4 REPLIES 4
VIJAYKUMART
Resolver I
Resolver I

step 1:

VIJAYKUMART_1-1646919443064.png

Step 2:

 

VIJAYKUMART_0-1646919296870.png

 

then change data type in power query. Hope it helps

 

Actually, a bit strange, but I was changing it within the 'data' tab and didn't work but when I changed it from the power query it works 🙂 so Thanks a lot 

Hi @VIJAYKUMART ,

 

thanks - I tried that but it didn't help, it still changes the format to US version 😞

Adescrit
Impactful Individual
Impactful Individual

Try this:

 

Date = 
VAR __Day = VALUE( LEFT( 'Table'[Text], 2) )
VAR __Month = VALUE( MID( 'Table'[Text], 4, 2))
VAR __Year = VALUE( RIGHT( 'Table'[Text] , 4) )

RETURN
    DATE( __Year, __Month, __Day )

Did I answer your question? Mark my post as a solution!
My LinkedIn

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.