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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
majdkaid22
Helper V
Helper V

how to change text to date

Hi,

 

I have data coming from SalesForce. BI is not recognising the date as date. when changing the type to date, am left with so many errors, which is quite strange, as the date in the error tab is still formatted in the same way of the correct ones.

 

Power Bi.PNGpower bi1.PNG

 

I tried few methods that I know, but none worked. I changed the value of / with none and then tried to workout the CALCULATING the Infraction Date but it didn't perform as expected due to the number of characters are not equal in all rows.

 

powerbi3.PNG

 

 

Any thoughts to help in a solution? 

 

1 ACCEPTED SOLUTION
arify
Microsoft Employee
Microsoft Employee

Looks like you're parsing a "DD/MM/YYYY" format, but your workbook's culture is "MM/DD/YYYY". Luckily, Date.FromText takes an optional culture parameter. Can you try Date.FromText([CreateDate], "en-GB") ?

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi, i have a semilar problem...

If i want to change text to date, i got some errors which i can't explain to myself. The "error dates" aren't different then the ok once.

 

PowerBI.PNG

 

Any thoughts to help in a solution?  Thanks in advance!

arify
Microsoft Employee
Microsoft Employee

Looks like you're parsing a "DD/MM/YYYY" format, but your workbook's culture is "MM/DD/YYYY". Luckily, Date.FromText takes an optional culture parameter. Can you try Date.FromText([CreateDate], "en-GB") ?

Great!  Worked for me as well

It indeed has worked @arify 

 

Thanks mate

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.