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
Paulyeo11
Impactful Individual
Impactful Individual

when try to change the date field from date to text i get error msg

Hi All

After import sales order CSV file to PBI , for date field , it is import as text .

when i try to change the date field from text to date , i get error msg

Paulyeo11_0-1602755714151.png

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Paulyeo11 , DD/MM/YYYY format. You have to choose the system setting

https://community.powerbi.com/t5/Desktop/How-to-apply-UK-date-format-dd-mm-yyyy-in-Date-slicer/td-p/...

 

or create new date

new date =
var _pos = search("/",[Date],,0)
return
date(right([date],4), mid([date],_pos+1,2), left([date],_pos-1))

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Paulyeo11 , DD/MM/YYYY format. You have to choose the system setting

https://community.powerbi.com/t5/Desktop/How-to-apply-UK-date-format-dd-mm-yyyy-in-Date-slicer/td-p/...

 

or create new date

new date =
var _pos = search("/",[Date],,0)
return
date(right([date],4), mid([date],_pos+1,2), left([date],_pos-1))

Hi Amit

So for all my raw data date , i should info my IT staff to change to MM/DD/YYY right ?

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.