12 Replies Latest reply: Jun 19, 2013 3:48 PM by rodrilauro

# Partial Sum Totals Error in Pivot Table

Hi All,

I have created a pivot table and I'm using the partial sum total on one dimension from the presentation tab. The problem is the incorrect totals that are coming up. Any suggestions on how to correct the partial sum totals would really be appreciated.

• ###### Partial Sum Totals Error in Pivot Table

Pivot tables will evaluate your partial sums as expression total, while you probably expect a sum of rows.

Please check the Help pages for 'Sum of rows in pivot tables' using advanced aggregation.

Your expression might need to be changed to something like

=sum( aggr( sum(Value), TableDimension1, TableDimension2, ...))

Hope this helps,

Stefan

• ###### Partial Sum Totals Error in Pivot Table

Hi Stefan,

EXP 1) count( value)

EXP 2) count(value)/count( value2)

I'm using 2 dimensions. Now, I'm using the partial sums on 1 dimension , just to get the total of my expression 1. So, basically in my pivot table I want to add a Total row showing the expression total.

I'm not sure where to use the sum expression you stated above.

• ###### Partial Sum Totals Error in Pivot Table

When you are saying, you want the expression total, I think you should already see it...

Could you post a screenshot of your table here and the values for the total you expect to see?

If you want the sum of rows (what I still assume), you need to use your expression, i.e. the count( value) within the aggr() function, and then a sum around all to get the sum of rows, like

=sum( aggr( count( value), dimension1, dimension2))

You need to replace dimension1, dimension2 by your actual dimension field names, of course.

Regards,

Stefan

• ###### Partial Sum Totals Error in Pivot Table

Hi Stefan,

This is a screenshot of the pivot table. As you could see , the count total in both the columns is showing a wrong total. It is not accurate. I need the total of all the columns at the bottom.

Thank you. I really appreciate your prompt replies.

• ###### Partial Sum Totals Error in Pivot Table

So your first count should be 2660 and your second total 2609, right?

Have you tried the advanced aggregation, like

=sum( aggr( count( value), COLOR, STATUS))

• ###### Partial Sum Totals Error in Pivot Table

Yes, you are right. The totals should be 2660 and 2609. If you are saying that i should another expressions =sum( aggr( count( value), COLOR, STATUS)), then that would add another column to it. And I've tried it, but its still not working. Its displaying nothing.

thank you.

• ###### Partial Sum Totals Error in Pivot Table

Well you could and should use the expression instead of your original one (but for testing, having another one should bother).

Please check that the field names are correct and correctly spelled, also the case is correct (field names are case sensitive). Are your field called 'value', 'COLOR' and 'STATUS' ?

Could you upload a small sample here?

• ###### Partial Sum Totals Error in Pivot Table

Hi , I think this is problem of Loosly coupled dimensions. Are you using dimensions and expressions from two different tables lnked on some key. If yes the please chek your key this key is not giving you 1:1 linking.

Regards

Vijay

• ###### Re: Partial Sum Totals Error in Pivot Table

Hi,

I attached sample Test.qvw file. It may help for you.

Regards,

Iyyappan.

• ###### Partial Sum Totals Error in Pivot Table

Hi,

could you transfer that pivot table to straight table and send us screenshot of displayed values?

regards

• ###### Partial Sum Totals Error in Pivot Table

Thank you everyone for replying. I appreciate you replies. I used the advanced aggregation suggested above my Stefan and that solved all the program.

Thanks again!!

• ###### Re: Partial Sum Totals Error in Pivot Table

Hi,
Can someone help me with this?

I have almost the same problem. I have an Expression  that is the multiplication of two parts (Part A * part B).
When I make the sum of my own for the two parts, and then multiply both TOTALS it is correct. But it is not the correct total for the pivot grid.

This is the Expression

(Sum(STOCK_AL_CIERRE_AJU)  - Sum(VENTA_AJU) + Sum(CAJAS))     // PART A

*

(sum(NIV)/sum( CAJAS)) // PART B

I only use one Dimension, it is YearMonth.