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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Average - Total mode

Hi,

I'm using a straight table where one of the columns is a count and the dimention limit is the top 7 users plus the others.

As a total I want the average of all users, but, using the total mode, it returns a diferent value.

It seems that it counts the others as one user.

Any suggestions?

Thanks in advance!

JS

4 Replies
sunny_talwar

Would you be able to share a sample? I know why it is doing this, but to suggest a work around will be better if we have a sample to work with.

hic
Former Employee
Former Employee

I would use the following formula:

   Count( distinct XXX ) / Count( distinct User )

If you use "User" as dimension, this will show the original number for the individual Users (divided by 1). The "Others" slice and the totals will however be divided by another number and so the expression will show the average.

HIC

swuehl
MVP
MVP

Maybe use a total mode 'expression total' and as expression something like

if(Dimensionality(),

     Count(YourField),

     Avg( Aggr(Count(YourField), YourDimension))

)

Not applicable
Author

Thank you very much!!