The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello, Community!
I have a column of data, several actually, that are date, time and timezone output but will not transform to that data type. I presume this is due to a decimal being present in the data.
All of my columns of date/time/timezone data are currently text columns with data identical in format to
YYYY-MM-DD HH:MM:SS:mmmssssss +0000 UTC
How do I properly transform all of these date/time/timezone columns to useable date/time format and data types?
Any thoughts @lbendlin or anyone on how I might acheive this?
Thank you!
Solved! Go to Solution.
@parry2kThis does not work, as none of the date and time options would apply to the column type. I was able to get this resolved however, playing with OpenAI responses. All data in the columns has +0000 UTC. What I did was a find and replace "+0000 UTC" with "" or a null value. This removed the +0000 UTC and left only the time values. I was then able to chose the appropriate date/time for data type and was fixed!
@lbendlinI did not place this as I cannot copy and paste the data from that environment. I did share a sample of the format for all values, however. Thank you for your respones, you are awesome!
YYYY-MM-DD HH:MM:SS.mmmssssss +0000 UTC
or
2023-10-13 10:53:55.123456789 +0000 UTC
@parry2kThis does not work, as none of the date and time options would apply to the column type. I was able to get this resolved however, playing with OpenAI responses. All data in the columns has +0000 UTC. What I did was a find and replace "+0000 UTC" with "" or a null value. This removed the +0000 UTC and left only the time values. I was then able to chose the appropriate date/time for data type and was fixed!
@lbendlinI did not place this as I cannot copy and paste the data from that environment. I did share a sample of the format for all values, however. Thank you for your respones, you are awesome!
YYYY-MM-DD HH:MM:SS.mmmssssss +0000 UTC
or
2023-10-13 10:53:55.123456789 +0000 UTC
Please provide sample data (with sensitive information removed) that covers your issue or question completely, in a usable format (not as a screenshot). Leave out anything not related to the issue.
If you are unsure how to do that please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...
Please show the expected outcome based on the sample data you provided.
If you want to get answers faster please refer to https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...
@eyelikedata2 first convert it to datetimezone data type and then convert it to datetime.
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
User | Count |
---|---|
77 | |
75 | |
36 | |
31 | |
28 |
User | Count |
---|---|
95 | |
81 | |
55 | |
48 | |
48 |