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

Announcements
Learn how to migrate to Qlik Cloud Analytics™: On-Demand Briefing!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Average Time by Distinct Group

Hi,

Hopefully this is in the right place, and if anyone can help it would be really appreciated.

I have data similar to the below table.   I want to find the average time taken per distinct order and test group.

OrderTest GroupOrder & Test GroupCodeTime Taken
1A1A15
1A1A25
1A1A35
1B1B115
2A2A110
2B2B110
3A3A120

So in this example the code columns means that I am getting 3 counts of '1A', but I only want 1, so I want my average to be

(5+15+10+10+20)/5=12, not (5+5+5+15+10+10+20)/7=10.  I basically want to ignore the duplicate 1A Order& Test Groups.


Do you know if this is possible.

Let me know if you would need any extra information.

Thank you,

Neil

11 Replies
Not applicable
Author

Hi

AvgTimeTaken.JPG

Not applicable
Author

aug4-1.PNG

For getting Total avg, the code is : avg(aggr(avg([time taken]),order,[test group]))