Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
deekey2
Contributor
Contributor

Individual Column Total from pivot table

Hi All,

I created a pivot table as below. And I would like to calculate the % of each column so I tried to get the total of each column first. But when I use Sum(Total QTY) to get column total(e.g. 147 as below), it shows the sum of all columns total(e.g. 43,418).

And I expect to sum the column total like

first column NC01 >  15+44+25+34+18+6+5 = 147

deekey2_2-1636024064534.png

Any suggestions? Thanks a lot.

 

1 Solution

Accepted Solutions
NitinK7
Specialist
Specialist

find the QVF and table 3

for Type column I have wrote set expression, might be you want like this

and there seems there allready individual column % are  calculated

 

View solution in original post

6 Replies
NitinK7
Specialist
Specialist

Might be there duplicated values in your data table, please check once

 

deekey2
Contributor
Contributor
Author

checked, no duplicated values.

seem Sum(Total QTY) returns total QTY of all cells..

NitinK7
Specialist
Specialist

if possible can you please share your QVF file with only this single table

deekey2
Contributor
Contributor
Author

Thanks. I found why...

As you read the following output, it is prefect when I don't filter out "Type=D" in table 1..

but in my case, I expect to display D and E only(e.g. table 2), and calculate the individual column %, any suggestions?

I attached the QVF for you reference..

deekey2_0-1636109670567.png

Regards,

 

 

NitinK7
Specialist
Specialist

I didn't understand 

calculate the individual column %.

if possible can you share with example what you actually want?

NitinK7
Specialist
Specialist

find the QVF and table 3

for Type column I have wrote set expression, might be you want like this

and there seems there allready individual column % are  calculated