# New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

Contributor

## Qlik Sense - Totalling row sum in a pivot table

Hello,

I cannot find an answered question regarding this topic.

I have a pivot table where the row measure are an average of a data field.  When I click add totals in the it adds up the total records and not the totals of each row.  Please see below totals do not add up to the totals of all the other rows.

Thanks,

Kizzy

1 Solution

Accepted Solutions
MVP

## Re: Qlik Sense - Totalling row sum in a pivot table

You have two dimension, don't you? You need to add all of them into your expression

Sum(Aggr(Expression, Division, [Application Status]))

16 Replies
Esteemed Contributor

## Re: Qlik Sense - Totalling row sum in a pivot table

Add the total in ur dimensions:

exmple:

Contributor

## Re: Qlik Sense - Totalling row sum in a pivot table

Hi Omar,

I tried that and it still does not show the total of the rows.

Thanks,

Kizzy

MVP

## Re: Qlik Sense - Totalling row sum in a pivot table

What exactly is your expression here? Are you using Dimensionality() somewhere in your expression?

Contributor

## Re: Qlik Sense - Totalling row sum in a pivot table

Hi Sunny,

not sure what you mean by dimensionality but I am using the following

MEASURE     -     Avg([Days In Status])

Thanks,

Kizzy

MVP

## Re: Qlik Sense - Totalling row sum in a pivot table

And you want to see the sum of rows as your total, right?

Check this

Sum of rows in pivot tables ‒ QlikView

Basically, wrap your expression around with Sum(Aggr()) function and see if that works for you

Sum(Aggr(Avg([Days In Status]), <Dimension/s>))

Contributor

## Re: Qlik Sense - Totalling row sum in a pivot table

Hi Sunny,

I am using QLIK Sense not Qlik View and the sum does not work, it does not bring up any results.  Any ideas?

Thanks,

kizzy

MVP

## Re: Qlik Sense - Totalling row sum in a pivot table

There is not much difference between QlikView and Qlik Sense when it comes to this kind of expression. Anyways, would you be able to share a sample to see what might be going on?

Contributor

Hi Sunny,