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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
shamitshah
Partner - Creator
Partner - Creator

Average calculation

Hi,

Please see attached.

I am trying to get the the number of orders completed / interval time i.e. the  result of 12 /16:32:12 either in a text box or as a total in the column 'Orders Completed per hour". The result should be 0.73. Tried a couple of things, but it does not seem to work.

Any ideas?

Thanks

1 Solution

Accepted Solutions
sunny_talwar

May be this:

=Sum(Aggr(Count(DISTINCT{$<AUD_ResultCode={'*Remote*'}>}AUD_ResultCode), name))/24/Sum(Aggr(Max(ActionTime)-Min(ActionTime), name))

View solution in original post

2 Replies
sunny_talwar

May be this:

=Sum(Aggr(Count(DISTINCT{$<AUD_ResultCode={'*Remote*'}>}AUD_ResultCode), name))/24/Sum(Aggr(Max(ActionTime)-Min(ActionTime), name))

shamitshah
Partner - Creator
Partner - Creator
Author

Sunny,

Thanks! Works just fine.