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.
Hi, the logoff column is in datetime format, with the data being extracted from the stoptime column. Unfortunately the column is in the UTC time zone. How do I convert to UTC Brazil (-3 hours)? I need to creat a new column or edit the logoff column
Solved! Go to Solution.
Add a step to convert logoff to datetime format, then add a variation of the following:
#"Added logoff (UTC)" = Table.AddColumn(#"*** your prior step here ***", "logoff (UTC)", each DateTime.AddZone ( [logoff], 0 ), type datetimezone ),
#"Added logoff (Brazil)" = Table.AddColumn(#"Added logoff (UTC)", "logoff (Brazil)", each DateTimeZone.RemoveZone ( DateTimeZone.SwitchZone ( [#"logoff (UTC)"], -3 ) ), type datetime),
Hope this works for you,
@admfabiomachado , you can add coumn using DAX in Data or Report as below
New Column =
If the UTC time is 3 hours different in your case try just edit the fomula with - ((1/24)*3)
Add a step to convert logoff to datetime format, then add a variation of the following:
#"Added logoff (UTC)" = Table.AddColumn(#"*** your prior step here ***", "logoff (UTC)", each DateTime.AddZone ( [logoff], 0 ), type datetimezone ),
#"Added logoff (Brazil)" = Table.AddColumn(#"Added logoff (UTC)", "logoff (Brazil)", each DateTimeZone.RemoveZone ( DateTimeZone.SwitchZone ( [#"logoff (UTC)"], -3 ) ), type datetime),
Hope this works for you,
Hi @admfabiomachado ,
Check this function:
https://docs.microsoft.com/pt-br/powerquery-m/datetimezone-switchzone
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 |
---|---|
109 | |
99 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
102 | |
87 | |
64 |