Forum Discussion

DJsummers's avatar
DJsummers
Helper I
3 years ago
Solved

Average Ticket Completion Time

Hi

 

I connect to an SQL dataset using the DirectQuery option and the table I am having a problem with is the one in the image attached. IssueNumber, CreatedOn & ResolvedOn are all from IssuesView table.

I have created 3 measures

Created = MAX(IssuesView[CreatedOn])
Resolved = MAX(IssuesView[ResolvedOn])
&
Ticket Duration = DATEDIFF([Created], [Resolved], MINUTE)

I would now like to get the average ticket duration but I am unable to do so. I can't use AVERAGE on my Ticket Duration measure as I get the error 'AVERAGE function only accepts a column reference as the argument number 1'

 


I have it filtered out for the past 7 days.

 

Any assistance you guys can offer would be gratefully appreciated as always!

Dan

 




2 Replies