Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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 @learner03
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 @learner03
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!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
98 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |