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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
ahudache
Contributor
Contributor

Average by Dimension

Hello,

I'm looking to compute the monthly average count within a pivot table. Below is an example of the pivot. I'm able to create the Count section, but anytime I try to incorporate the Monthly Avg, it doesn't let me compute the average of a COUNT by the dimension (which is MONTH). I believe I should be using RangeAvg, but haven't been able to get it to work properly.

Dimension:Month

Expression: count(ID)

    

Count % of Monthly Avg
IDJanFebMarMonthly AverageJanFebMar
1720626633660109%95%96%
2598604460554108%109%83%
338445233038999%116%85%
4401466302390103%120%78%
51381341,08645330%30%240%

Ultimate Goal: I would like to highlight the count cell that is > 150% of the monthly average. Eg: ID=5, the counts jumped to 240% of what the monthly average usually is.

Any help is much appreciated!

Thanks,


Andrew

1 Reply
swuehl
MVP
MVP

Maybe something like this as pivot table expression for your monthly average:

=Avg(TOTAL<ID> Aggr( Count(ID), ID, Month))