guptamols

New Member
Joined
May 22, 2017
Messages
9
Hi, I have the below data and i want to calculate score. As of now, i calculate this after the pivot area. Can i calculate it inside the pivot using calculated field / item ?

Transaction IdRegionP1P2P3P4GoodScore
A989KAR1FALSE75%
A789KAR1FALSE75%
A900KAR11FALSE50%
A968GUJTRUE100%
A455GUJ1FALSE75%
A456KARTRUE100%
A910GUJ11FALSE50%
A915GUJTRUE100%
A457KARTRUE100%
A458KAR1FALSE75%

<tbody>
</tbody>

Pivot looks like below

REGIONFALSETRUETotal
GUJ224
KAR426
Total6410

<tbody>
</tbody>

Have to calculate % TRUE as a score inside the pivot itself
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Inelegant approach but should give you what you are asking for...

Assuming Score is column H, put this in I2 and copy it down the column (you can format this as a %): =--G2

Expand your pivot table source to include the new column (which I called % True) and in your pivot table:

Drag % True to your values section
Select the drop down for this new field and select Value Field Settings
Summarize value field by Average and make number format Percentage
Hide the 2 columns that got added inside the pivot table showing Average % of True for both the TRUE and FALSE column labels (this is the inelegant part), keeping the Total Average of % True column
 
Upvote 0

Forum statistics

Threads
1,215,972
Messages
6,128,032
Members
449,414
Latest member
sameri

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top