Forum

Using locale gives ...
 
Notifications
Clear all

Using locale gives error

4 Posts
2 Users
0 Reactions
75 Views
(@carolina-vidrascu)
Posts: 3
Active Member
Topic starter
 

Hi,

I'm doing the Power Query course, lesson 4.03. When using Locale as instructed in the course I get an error message:

"DataFormat.Error: We couldn't parse the input provided as a Date value.

Details: 01-29.2015"

I'm in UK. 

No other steps applied to the query.

 

Thank youError-message.PNGSteps.PNG

 
Posted : 21/08/2020 6:37 am
(@mynda)
Posts: 4761
Member Admin
 

Hi Carolina,

Welcome to the forum! Did you choose Data Type 'Date' and Locale 'English (United States)? I just tested it again here and it works with those settings.

Mynda

 
Posted : 21/08/2020 7:20 am
(@carolina-vidrascu)
Posts: 3
Active Member
Topic starter
 

As I'm in Uk I put English UK. I just did it again selecting the English United States, and it worked.  Does that mean when you are selecting Locale you are telling the Power Query the format that the data is already in, not the format that you want the data do be in? So is the dd/mm/yyyy the only date format in Power Query or you can have others as well  ( like in excel).

Thank you.

 
Posted : 21/08/2020 8:54 am
(@mynda)
Posts: 4761
Member Admin
 

Yes, you're telling PQ the format the data is in. PQ already knows your locale so it knows the format you want it in. 

In terms of formatting dates, that part is still done in Excel like it always is. Power Query is not where you format, it's where you clean the data ready for loading to Excel where you can start altering the formatting.

Hope that clarifies things.

Mynda

 
Posted : 21/08/2020 8:50 pm
Share: