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 moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
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.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 40 | |
| 37 | |
| 31 | |
| 23 | |
| 15 |
| User | Count |
|---|---|
| 76 | |
| 59 | |
| 31 | |
| 31 | |
| 25 |