Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
upaliwije
Creator II
Creator II

Total in Pivot table

Hi

DESCRIPTIONUNIT_NOSUNIT_COSTTotal Cost
8 Port Switches657,000455,000
16 Port Switches (Cat6)2925,000725,000
24 Port Switches (Cat6)1635,000560,000
AD Servers4170,000680,000
Total114237,00027,018,000
Correct Total2,420,000

In my above Pivot table when I apply partial sum, above Total 27,018,000 apper. But the actual Total is 2,420,000/- This may be due to my set expression for Total Cost is Unit_nos* Unit_Cost (114*237,000=27,018,000). Is there any method to show my correct total in the Total Row. If so pls educate me.

1 Solution

Accepted Solutions
sunny_talwar

This is what I meant

Sum(Aggr(SUM(UNIT) * SUM(UNIT_COST), DESCRIPTION))

View solution in original post

7 Replies
sunny_talwar

Try this:

Sum(Aggr(UNIT_NOS * UNIT_COST, DESCRIPTION))

upaliwije
Creator II
Creator II
Author

Then I get following table

DESCRIPTIONUNIT_NOSUNIT_COSTTotal Cost
8 Port Switches657,0000
16 Port Switches (Cat6)2925,0000
24 Port Switches (Cat6)1635,00035,000
AD Servers4170,0000
Total114237,00035,000
sunny_talwar

Well I mean for you to replace UNIT_NOS and UNIT_COST with these actual expressions

Sum(Aggr(UNIT_NOSExpression * UNIT_COSTExpression, DESCRIPTION))

upaliwije
Creator II
Creator II
Author

Sorry  I dont get what you say

My 3 expression are as follows

SUM(UNIT)

SUM(UNIT_COST)

Sum(Aggr(UNIT * UNIT_COST, DESCRIPTION))  - as suggested by you

sunny_talwar

This is what I meant

Sum(Aggr(SUM(UNIT) * SUM(UNIT_COST), DESCRIPTION))

hectorvega
Contributor III
Contributor III

Upali, did you use an if with a Dimensionality()=0 to get the correct sums on the total? 

upaliwije
Creator II
Creator II
Author

Thanks  a lot