Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
I want to get the difference in time of two rows between out and in and then sum the differences for each category
For example: I have the following columns- ECN_ID, Date, Time, In/Out
I want to create another column called time difference that gives the difference between the rows
The time difference between:
out and in for ECN = 2 and date 5/10/24 is 10 mins, then 1 hour respectively so total = 01:10:00
for ECN=3 and date 5/10/24, first difference is of 5 mins, then 20 mins and then 25 mins so total becomes 00:50:00,
and for ECN=3 and date 6/10/24, first difference is of 5 mins, then 20 mins, then 25 and then 30 mins so total becomes 01:00:00
How to achieve this? Thanks in advance!
Solved! Go to Solution.
you can create a column
Proud to be a Super User!
you can create a column
Proud to be a Super User!
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 36 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 129 | |
| 88 | |
| 79 | |
| 68 | |
| 63 |