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.
Hello Everyone - I was wondering if you could help me this issue. I have field with Date of Subcontract that comes Date/Time/Time Zone format, so I want to change it to Date format. But when I try to change it in Query edit, for some reason it subtract a date.
For example 2/6/2017 12:00:00 AM, it become 2/5/2017. I don't know why exactly this happening, but I'll really apperciate it, if you could help me solve this problem. Thank you in advance.
Solved! Go to Solution.
Hi @Anonymous
First way: Change the data type to 'Date' in Data view.
Second way: Add the custom column to remove the TimeZone.Then change the type to 'Date'.
=DateTimeZone.RemoveZone([date])
Regards,
Cherie
Check these links:
https://docs.microsoft.com/en-us/powerquery-m/datetimezone-removezone
https://docs.microsoft.com/en-us/powerquery-m/datetimezone-switchzone
Regards,
Tarun
Did I answer your question? Mark my post as a solution!
Since your dates are midnight and your timezone is -6 it is subtracting 6 hours and hence previous day.
Thank you for the quick reply, is there a way to fix that or go around it by creating like a column with just date?
Hi @Anonymous
First way: Change the data type to 'Date' in Data view.
Second way: Add the custom column to remove the TimeZone.Then change the type to 'Date'.
=DateTimeZone.RemoveZone([date])
Regards,
Cherie
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 |
---|---|
113 | |
97 | |
85 | |
70 | |
61 |
User | Count |
---|---|
151 | |
121 | |
104 | |
87 | |
67 |