Forum Discussion
tracyhopaulson
2 years agoResolver I
Calculate Time
How do I calculate total time between start time and stop time when my data is like this?
- 2 years ago
Once you examined the code, replace the Source step with your own source.
Anonymous
2 years agoNot applicable
Hi tracyhopaulson ,
According to your description, here are my steps you can follow as a solution.
(1) My test data is the same as yours.
(2) We can create two slicer tables.
Start Time Slicer = VALUES('Table'[TimeStamp(PST)])Stop Time Slicer = VALUES('Table'[TimeStamp(PST)])
(3) We can create a measure.
Time = DATEDIFF(MAX('Start Time Slicer'[TimeStamp(PST)]),MAX('Stop Time Slicer'[TimeStamp(PST)]),MINUTE)
(4) Then the result is as follows.
If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.