Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
Hello All,
I am getting data from an API using powerquery. Result is a JSON file which we are expanding into columns. One of the column is CreateDate which is of format "yyyy-MM-DDTHH:MM:SS.ms"
Ex: 2021-06-29T00:52:19.343
This column is being considered as Text in the report, when I am trying to convert it to datetime, it is not able to convert it automatically and giving error as "We can't automatically convert the column to Date/Time type".
Is there any way to convert this column to date time?
Thanks,
Giripavan.
Solved! Go to Solution.
@Giripavan , try if you can use DateTime.FromText in new column.
This should take this time as per example in
https://docs.microsoft.com/en-us/powerquery-m/datetime-fromtext
else replace T using Text.Replace
example
DateTime.FromText (Text.Replace([DT], "T", " "))
@Giripavan , try if you can use DateTime.FromText in new column.
This should take this time as per example in
https://docs.microsoft.com/en-us/powerquery-m/datetime-fromtext
else replace T using Text.Replace
example
DateTime.FromText (Text.Replace([DT], "T", " "))
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Ask questions in Eventhouse and KQL, Eventstream, and Reflex.
User | Count |
---|---|
85 | |
83 | |
66 | |
60 | |
57 |
User | Count |
---|---|
183 | |
111 | |
105 | |
77 | |
70 |