# Excel: Pivot table issue

Hi,

I am working with pivot tables and working on value field settings.
I want cumulative percentages so I am using %running Total In option.
here is the sample  data set

TOB      Year      JB
1      2010      2
2      2010      3
3      2010      4
4      2010      5
5      2010      6
6      2010      7
7      2010      8
8      2010      9
1      2011      5
2      2011      6
3      2011      8
4      2011      9
5      2011      4
6      2011      8

here is the data that I want

Sum of JB      Column Labels
Row Labels      2010      2011
1      4.55%      12.50%
2      11.36%      27.50%
3      20.45%      47.50%
4      31.82%      70.00%
5      45.45%      80.00%
6      61.36%      100.00%
7      79.55%
8      100.00%

here is the data that is coming

Sum of JB      Column Labels
Row Labels      2010      2011
1      4.55%      12.50%
2      11.36%      27.50%
3      20.45%      47.50%
4      31.82%      70.00%
5      45.45%      80.00%
6      61.36%      100.00%
7      79.55%      100.00%
8      100.00%      100.00%

assumptions:
1. I do not know the TOB per year they can be from 1 to N, incremental of 1
Sample.xlsx
###### Who is Participating?

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Commented:
The best way I can think of for this is to use conditional formatting to hide values where the cell above is equal to 1 using a formula like:
=INDIRECT("R[-1]C",0)=1
and a custom number format of ;;;
See attached example.
Sample--2-.xlsx
Commented:
I did some changes in raw data and use one of the pivot table as base to do what you are looking for...

Enclosed is the sample file for your reference which does exactly what you are looking for...

Saurabh...
Sample-Data.xlsx
TrainerCommented:
In the attached sample, I have two Pivot tables.

Pivot1 - places the null values at the top of the list to clearly state no values by using a 0%.
Pivot2 - Hides the 100% values for 7 and 8 with the custom number format of ;;;

However, I would like to state that the original is correct in showing that the last two values do not contribute to the running total.  If you add the JB field a second time to the Pivot table, the value would be in a column next to the running total and the null or 0 value of 7 & 8 would be more obvious.
PivotTables.xlsx

Experts Exchange Solution brought to you by