Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
How to add one hour to column Value below?
This is my custom step:
No matter what the second argument of the function is, nothing happens....
Solved! Go to Solution.
hi @webportal
it's best to add UTC Time Zone, and then use "DateTimeZone.SwitchZone" function of Power Query to swap to whichever time zone you want to use.
I used UTC and CEST as example. You can look up the time zones on this website (it also tells you the time difference which you will need to use to set up your parameter): https://www.timeanddate.com/worldclock/
Adding UTC Column would look like this:
From then on you need to create Parameter with however many hours the time difference will be and use the parameter to switch time zones like so:
Create another custom column to switch time zones using your required parameter and delete any columns you no longer need in the next step (UTC column for example)
End result looks like this:
hi @webportal
it's best to add UTC Time Zone, and then use "DateTimeZone.SwitchZone" function of Power Query to swap to whichever time zone you want to use.
I used UTC and CEST as example. You can look up the time zones on this website (it also tells you the time difference which you will need to use to set up your parameter): https://www.timeanddate.com/worldclock/
Adding UTC Column would look like this:
From then on you need to create Parameter with however many hours the time difference will be and use the parameter to switch time zones like so:
Create another custom column to switch time zones using your required parameter and delete any columns you no longer need in the next step (UTC column for example)
End result looks like this:
pls try this
DateTime.From(Number.From(Value) + Number.From(#time(1,0,0)))
-----------or-------------------
DateTime.From(Text.From(Value)&" "&Text.From(#time(1,0,0)))
------------or----------------
DateTime.From(Text.From(Value)&" "&Time.ToText(#time(1,0,0),"hh:mm:ss"))
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
144 | |
87 | |
65 | |
50 | |
45 |
User | Count |
---|---|
217 | |
88 | |
81 | |
65 | |
56 |