Forum Discussion
Convert Date Time in UTC to PST
Try this:
= Table.TransformColumns(#"Resource Absence", {{"AbsentStart", DateTimeZone .ToLocal}, {"AbsentEnd", DateTimeZone.ToLocal}})
- vincenardo5 years agoHelper I
When editing the table, can you give me the steps on where to add it? I can't figure where to place it, I assume it's not in a new column. Thanks!
- Anonymous5 years agoNot applicable
Sorry, under your applied steps, right click on the last step, click "Add new step". Then copy and paste everything including the "=" into the formula bar.
- vincenardo5 years agoHelper I
I recieved this error; ??
Expression.Error: A cyclic reference was encountered during evaluation
- Anonymous5 years agoNot applicable
Ok, your last step name is #"Reordered Columns1", so:
= Table.TransformColumns(#"Reordered Columns1", {{"AbsentStart", DateTimeZone .ToLocal}, {"AbsentEnd", DateTimeZone.ToLocal}})
- vincenardo5 years agoHelper I
Appreciate the help, still have an issue;
Here is the dataset before I put in the Code you suggested (The AbsentStart_PST was using a different way to conver the AbsentStart)
I inserted the code you suggested (Custom1) - and I get this error on the AbsentStart and AbsentEnd.
Any ideas? I like your suggestion the best because the code is much less then what I used and will ensure the time is coverted to the local time.