3 Replies Latest reply: Jan 31, 2018 7:23 AM by Sunny Talwar

# Sums in Pivot table with If formula

Hi,

I created several a formulas with an If formula within. The calculated values for each single item is correct, but the sum incorrect.

Can someone tell me why?

In the first Column, you can see how many Items are found --> this line is correct (no if calculation)

Second column shows the age of every Item --> no if formula, calculation correct

Third Column: Doors calculation correct (IF Formula, but not one items, where this if formula is necessary) --> Calcuation for VA Repairs incorrect (the sum can not be taller then the sum of the second column, as this is a part of the total aging in the second column)

Fourth Column: If calculation give values not equal to 0 for every item, but the sum is 0.

Thanks for your help and BR from Germany

Benjamin

• ###### Re: Sums in Pivot table with If formula

See here

Sum of rows in pivot tables ‒ QlikView

In short you need to use

Sum(Aggr(YourExpressionHere, YourDimension/s))

• ###### Re: Sums in Pivot table with If formula

Hi,

sounds good, but I get always a mistake in the formula: