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.
I have a ADE function which PowerBI calls that returns a couple of columns, one of which is ingestTime. When I go to transform the data from a text value to 'DateTime' it throws an error: Expression.Error: We cannot convert the value "09/23/2020 11:05:10 ..." to type DateTimeZone. I have confirmed that the date is formatted as such: '09/23/2020 11:05:10 PM'. I'm not selecting DateTimeZone so I don't know why it is even throwing this error.
ADE Function (generally): Table | project Column1, Column2, format_datetime(ingestTime, 'MM/dd/yyyy h:mm:ss tt')
Solved! Go to Solution.
Hi @lunchbox ,
Please change the format to "MM/dd/yyyy h:mm:ss AM/PM" to have a try. You also could use custom format in Model view like below:
https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-custom-format-strings
Hi @lunchbox ,
Please change the format to "MM/dd/yyyy h:mm:ss AM/PM" to have a try. You also could use custom format in Model view like below:
https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-custom-format-strings
Hi @lunchbox
may be you can change data type with locale in Power Query (see figure):
With kind regards from the town where the legend of the 'Pied Piper of Hamelin' is at home
FrankAT (Proud to be a Datanaut)
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
95 | |
80 | |
68 | |
59 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |