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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Total sum of average values

Hi,

I have a pivot table with only one dimension and only one expression.

The expression consist of an average, =AVG(field)

When I check the checkbox 'Show partial sums' in the tag 'presentation' it shows a total which is an average but I need a sum of the averages in the table.

How could I get this total as a sum?

Thanks.

1 Solution

Accepted Solutions
Not applicable
Author

Hi ,

Try using this expression  sum(Aggr(  Avg(field),dimension field))

Regards

View solution in original post

5 Replies
Not applicable
Author

Hi ,

Try using this expression  sum(Aggr(  Avg(field),dimension field))

Regards

jagan
Partner - Champion III
Partner - Champion III

HI,

Try like this

=Sum(Aggr(Avg(Field), DimensionName))

Regards,

Jagan.

tamilarasu
Champion
Champion

Hi Luis,

Try,

If(Dimensionality()=0,Sum(Field),Avg(Field))

MayilVahanan

Hi

Try like this

=Sum(Aggr(Avg(FieldName), DimensionName))

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
luciancotea
Specialist
Specialist

Well, it's unusual to display the sum of averages... but here you go:

Since you can't change the total expression to "Sum of rows" like in a straight table, you could check the level of aggregation using DIMENSIONALITY(). See the help on using it.

Or, you could switch to straight table and change the expression total calculation mode.