Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
Hi. I have a table that has the following data:
| TicketID | Status | Time |
| 201 | In | 09:55 |
| 202 | In | 10:02 |
| 203 | In | 10:23 |
| 204 | In | 10:35 |
| 201 | Out | 10:49 |
| 205 | In | 10:53 |
| 206 | In | 11:21 |
| 202 | Out | 11:23 |
| 203 | Out | 11:31 |
| 204 | Out | 11:44 |
I would like to calculate the duration each TicketID has been in the building (Difference between In / Out Time for every TicketID).
Any suggestions how this could be calculated please?
Solved! Go to Solution.
Hi, @fetster
Please check the below picture and the sample pbix file's link down below.
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
Linkedin: linkedin.com/in/jihwankim1975/
Twitter: twitter.com/Jihwan_JHKIM
Hi @fetster
Here you have the choice to use cards and to return 0 when the satus for a ticket is not Out yet
Don't forget to format the Time column and the card
Regards
Amine Jerbi
If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook
Hi, @fetster
Please check the below picture and the sample pbix file's link down below.
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
Linkedin: linkedin.com/in/jihwankim1975/
Twitter: twitter.com/Jihwan_JHKIM
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 27 | |
| 24 | |
| 18 | |
| 15 | |
| 15 |
| User | Count |
|---|---|
| 63 | |
| 42 | |
| 41 | |
| 38 | |
| 37 |