Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
wonkymeister
Creator III
Creator III

Pivot Table with Column Percentages

Hi,

I have a pivot table, with YEAR across the top (3 years so 3 columns), with the user being able to select from a list of available dimensions down the side.

I need the % to calculate for each individual column (year), as opposed to a percentage of the total.

Any ideas?outcomes_pivot.PNG

1 Solution

Accepted Solutions
jmvilaplanap
Specialist
Specialist

Then, the expression is: sum(Value)/sum(TOTAL <Year> Value)

Capture3.PNG

View solution in original post

10 Replies
jmvilaplanap
Specialist
Specialist

As I can see, I think you are doing a percentage about the total, for example in the first cell is the percentage of the Stage 1 in 2015/6 about the total.

I think, you need only use the "function" TOTAL, for example: =sum(valueField)/sum(TOTAL valueField), isn't it?

Regards

wonkymeister
Creator III
Creator III
Author

nope - tried that with no success

jmvilaplanap
Specialist
Specialist

Could you give me a dataset for testing?

jmvilaplanap
Specialist
Specialist

I tested and it works for me, I'll show you

Capture3.PNG

you can see the expressions at the top of the fields.

P.S. I'm sorry but I don't know how to upload a *.qvw file.

wonkymeister
Creator III
Creator III
Author

sorry - want i want is the percentage of stage for that year only: like this:outcomes_pivot 2.PNG

jmvilaplanap
Specialist
Specialist

Then, the expression is: sum(Value)/sum(TOTAL <Year> Value)

Capture3.PNG

wonkymeister
Creator III
Creator III
Author

Jose sir you are a legend.

thank you

jmvilaplanap
Specialist
Specialist

You're welcome Phillip

wonkymeister
Creator III
Creator III
Author

just a thought - can this be done in Set analysis also?