How can I get difference of start and end time in Difference Column-
I want the result in Hours as whole number as I need to create measure afterwards to sum the hours.
Solved! Go to Solution.
=Hour (Endtime-starttime)
OR
=(endtime-starttime)*24
Proud to be a Super User!
Hi @akapoor03
If you consider decimal number, one way in M
Duration.TotalHours([End Time]-[Start Time])
and another way in DAX
DATEDIFF([Start Time],[End Time],MINUTE)/60
Hi @akapoor03
If you consider decimal number, one way in M
Duration.TotalHours([End Time]-[Start Time])
and another way in DAX
DATEDIFF([Start Time],[End Time],MINUTE)/60
=Hour (Endtime-starttime)
OR
=(endtime-starttime)*24
Proud to be a Super User!
This is given me below output-
you can change the data type to whole number
Proud to be a Super User!
perfect.Thanks
you are welcome
Proud to be a Super User!
User | Count |
---|---|
323 | |
91 | |
66 | |
57 | |
44 |
User | Count |
---|---|
299 | |
113 | |
89 | |
70 | |
60 |