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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
July 2024 Power BI Update

Power BI Monthly Update - July 2024

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

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors