Forum Discussion
Anonymous
6 years agoNot applicable
Time Different in the same column
Hi All, How I can get the time different for time_tz column between each row (in the same column) using DAX
amitchandak
Super User
6 years agoAnonymous , Try like
Diff = datediff(maxx(filter(Table, [time_tz]<earlier([[time_tz]])),[time_tz]),[time_tz],hour)
Or add the subgroups
Diff = datediff(maxx(filter(Table, [time_tz]<earlier([[time_tz]]) && [device_name]<earlier([[device_name]])),[time_tz]),[time_tz],hour)
change unit of time hour as per need
- Anonymous6 years agoNot applicable
Hi, I am getting this error.
Thanks