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.
I have a timestamp column and lines column. I need to calculate how much line been picked in the time duration.
For this I did following for calculating time difference-
Timestamp | lines |
30/11/2021 16:48 | 2 |
30/11/2021 16:48 | 2 |
30/11/2021 16:47 | 2 |
30/11/2021 16:44 | 3 |
30/11/2021 16:39 | 1 |
30/11/2021 16:39 | 1 |
30/11/2021 16:37 | 4 |
30/11/2021 16:37 | 1 |
30/11/2021 16:36 | 1 |
30/11/2021 16:34 | 1 |
30/11/2021 16:33 | 3 |
30/11/2021 16:33 | 2 |
30/11/2021 16:33 | 2 |
30/11/2021 16:28 | 2 |
30/11/2021 16:26 | 3 |
30/11/2021 16:25 | 1 |
30/11/2021 16:23 | 2 |
30/11/2021 16:22 | 2 |
30/11/2021 16:21 | 2 |
30/11/2021 16:19 | 1 |
30/11/2021 16:19 | 1 |
30/11/2021 16:17 | 4 |
30/11/2021 16:17 | 1 |
30/11/2021 16:17 | 1 |
30/11/2021 16:15 | 2 |
30/11/2021 16:12 | 2 |
30/11/2021 16:11 | 8 |
30/11/2021 16:10 | 1 |
30/11/2021 16:09 | 1 |
30/11/2021 16:09 | 1 |
30/11/2021 16:08 | 1 |
30/11/2021 16:08 | 2 |
30/11/2021 16:07 | 2 |
30/11/2021 15:57 | 1 |
30/11/2021 15:56 | 1 |
30/11/2021 15:56 | 1 |
30/11/2021 15:55 | 3 |
30/11/2021 15:53 | 2 |
30/11/2021 15:50 | 4 |
30/11/2021 15:49 | 2 |
30/11/2021 15:46 | 4 |
30/11/2021 15:45 | 2 |
30/11/2021 15:42 | 2 |
30/11/2021 15:40 | 4 |
30/11/2021 15:39 | 4 |
30/11/2021 15:39 | 1 |
30/11/2021 15:37 | 3 |
30/11/2021 15:35 | 8 |
30/11/2021 15:34 | 1 |
30/11/2021 15:33 | 2 |
30/11/2021 15:32 | 3 |
30/11/2021 15:32 | -3 |
30/11/2021 15:31 | 3 |
30/11/2021 15:30 | 2 |
30/11/2021 15:30 | 1 |
30/11/2021 15:29 | 4 |
30/11/2021 15:29 | 1 |
30/11/2021 15:28 | 2 |
30/11/2021 15:27 | -2 |
30/11/2021 15:24 | 2 |
30/11/2021 15:23 | 4 |
30/11/2021 15:17 | 2 |
@learner03 , Ideally diff include only one side. If it always +1 , then you can try like
var Diff=DATEDIFF(MinTime, MaxTime, HOUR) -1
or
check this to
var Diff= MaxTime - MinTime
This will directly give time
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 |
---|---|
114 | |
100 | |
78 | |
75 | |
52 |
User | Count |
---|---|
144 | |
109 | |
108 | |
88 | |
61 |