The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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