This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
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
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 35 | |
| 32 | |
| 26 | |
| 21 | |
| 18 |
| User | Count |
|---|---|
| 68 | |
| 36 | |
| 32 | |
| 25 | |
| 23 |