Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
PBI_Rookie_19
New Member

Time Tracking - Hours and Minutes between dates

Hi ! I need help. This might seem basic for most of you, but this ain't clicking with my brain.

 

We have a ticketing tool that where we want to look how much time an agent spends on a ticket from open to closed status.

 

Column 1 is called Start Date and is formatted as example 8/16/23 6:13:00 AM

Column 2 is called Close Date and is formatted as example 8/16/23 6:58:00 AM

Column 3 is called Tech and this shows the technicians first and last name

 

I understand that there are 45 mins between the open and closed date for this example. My issue is that I want to visualize this for our team and list out all of our agents and their time spent using a slicer. I'd love for this to be shown in "hh:mm:ss" if possible.

 

My data will begin on 1/1/23 and will continue into 2024. 

 

I've looked at using the DATEDIFF function, but it's not really showing me exactly how I need to visualize it. If anyone out there could give me step by step info with screen shots or some DAX I'd greatly appreciate it. Thank you!

1 REPLY 1
danextian
Super User
Super User

H @PBI_Rookie_19 ,

 

You can create a calculated column to get the difference between two timestamps and then format it as hh:mm:ss. A simple endcolumn - startcolumn shoul do.

 

danextian_0-1699681161629.png

 

Please note the slicer can accept time format as a dropdown - using the between option will return dates instead.  Please see samples below:

 

danextian_1-1699681230832.png

danextian_2-1699681273530.png

 

 










Did I answer your question? Mark my post as a solution!


Proud to be a Super User!









"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

Check out the September 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors