I have a column called date
that is currently as data type text
.
I try to change it to date and this is what happens:
The error says:
DataFormat.Error: We couldn't parse the input provided as a Date value.
Details:
1/23/2022
I don't understand why.
I've been changing the data type of this column previously in other reports without problem.
Posting an alternative solution for awareness where one can select the Locale of the Data Transformation...
Click on the ABC
in the column header and then select Using Locale...
Then select Data Type Date
and Locale English (United States)
In Power Query, you can specify the Locale as the third parameter (eg "en-US"
):
Table.TransformColumnTypes(PreviousStep, {{"date", type date}}, "en-US")