Forum Discussion
How to calculate the time difference between date and time?
- 4 years ago
bourne2000 for 2nd one, use duration.totalminutes function
Duration.TotalMinutes ( [Start Column] - [End Column] )Follow us on LinkedIn and to our YouTube channel
Learn about conditional formatting at Microsoft Reactor
My latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡ Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.
bourne2000 can you change the type from date time to time zone and then in the next step-change it to datetime. let's first check that.
- bourne20004 years ago
Helper V
parry2k Thanks
When I converted into timezone
However when I tried to convert back to date/time, the values are changing
Please advise
- bourne20004 years ago
Helper V
parry2k It's working thanks. I just extracted time into separate columns
Can you advise my second question. If I do subtract, then I am getting negative values. I need to create total hour column and total minutes column from the end and start date