Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Avg function inside set analysis

Good morning,

Im doing a bug tracker report and i have some difficulties with close tickets statistics.

First of all, I filter close tickets with set analysis: Count({$<status={'old_done', 'old_notdone'}, Flags={2}>} TicketNumber)

Second, Average time is generated as Interval(Avg(Tickets.indicatedTime),'hh:mm'). But this formula takes time on open tickets too... So, could I merge both functions into one to calculate average time on only close tickets?

Thanks in advice!

Labels (1)
1 Solution

Accepted Solutions
swuehl
Champion III
Champion III

Hi,

try something like

Interval(Avg({$<status={'old_done', 'old_notdone'}, Flags={2}>} Tickets.indicatedTime),'hh:mm')

Regards,

Stefan

View solution in original post

2 Replies
swuehl
Champion III
Champion III

Hi,

try something like

Interval(Avg({$<status={'old_done', 'old_notdone'}, Flags={2}>} Tickets.indicatedTime),'hh:mm')

Regards,

Stefan

Not applicable
Author

Hello Stefan,

I think its correct.

Thanks!