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
Anonymous
Not applicable

Question about Date Difference format.

Hello! This is my first post here. 

So, I'm working with a support-ticket database, which includes fields such as "ID number", "Client", "Creation Date", "Close Date", "Solving Agent", etc.

One of the metrics I'm willing to obtain is a graph that shows the Average Ticket Resolution Time of each of the agents. This is in order to check how fast are each of the employees working with their tickets.

How would you recommend to do that? My first attemp was:

1- Create a new column "creation-solution time" = 1*(DBNAME[Close_Date]-DBNAME[Creation_Date])

2- I obtained a column that shows the time it took the agent to solve the ticket since it was created, with the following format:

            -At Power Query: DD.HH:MM:SS

            -At Data (Power BI): a rational number > 0.00000

3- I tried creating a measure:

            -TimePerPerson = CALCULATE (AVERAGE ('DBNAME'[creation-solution time]) , 'DBNAME'[Agent])

 

But as you might imagine, that brough to nothing good.

My intention is to create a bar chart with each agent and their average resolution time. Do you have any other idea/experience to proceed in order to obtain this?

 

Thank you so much for reading! Hope you could help me!!

 

Franco.

1 REPLY 1
amitchandak
Super User
Super User

@Anonymous , You can create a new column with diff in seconds

creation-solution time = Datediff(DBNAME[Creation_Date],DBNAME[Close_Date], second)

 

Then you can create a Avg measure

Avg = average(Table[creation-solution time])

 

You can new measure for display

Quotient([Avg ],3600) &":" & Quotient(mod([Duration],3600),60) &":" & Mod(mod([Duration],3600),60) 

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 Kudoed Authors