Pivot Table - Formula's outside of PivotTable?

gmooney

Active Member
Joined
Oct 21, 2004
Messages
252
Office Version
  1. 365
Platform
  1. Windows
I have a pivot table that I am unable to make a calculated field work in the pivot table (maybe due to my lack of using pivot tables). So I created the formulas in the first column to the right of the pivot table.

This would be acceptable except for when the user changes 1 of the 2 filters the formula rows might not line up correctly to the corresponding pivot table rows.

I then thought if I used the getpivotdata formula that would ensure that the formulas would follow to the correct row BUT again, even though the formula might have the correct result if the row changed, the formula row won't change?

Any thoughts?

Below is a print screen because I can't figure how the new Mr. Excel Capture

1575589639177.png


The column with the 77.7% is the column that is NOT a part of the pivot table. The formula for that is simply the 20.7/11.6-1. The formula will always be Brand 1/Brand 2. In this example under Bag Small there is no Brand 2 som. no calculation and it Clamshell Small disregard the 4.5oz item
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
No problem! Do you know what power pivot is? Pivot tables are limited in what they can do and after my brief reading of your problem I think you'll need to use power pivot to set up the analysis you'd like to do in a scalable way (pivot tables don't really do divide well).

I'd be happy to help guide you (and maybe other members will step in too if I'm misunderstanding).
 
Upvote 0
No problem! Do you know what power pivot is? Pivot tables are limited in what they can do and after my brief reading of your problem I think you'll need to use power pivot to set up the analysis you'd like to do in a scalable way (pivot tables don't really do divide well).

I'd be happy to help guide you (and maybe other members will step in too if I'm misunderstanding).
Hi Louis...I have heard of PowerPivot before but never used it. The quick question that comes to mind with it is that this file that the PivotTable is in is currently being shared with about 70 users. Does whatever I do in my file with PowerPivot transfer within the file to them?
 
Upvote 0
Yes, the PowerPivot is within the excel, so you should be OK on that front.

To set up the measure, you'll need to make sure that PowerPivot is activated as an add-on. Then add your raw data as tables to your PowerPivot - these will then update automatically if your data changes. then go into powerpivot and create a new measure in the calculated measures section within powerpivot to do the division function that you need. You can then add this to the pivot table. There should be a bunch of youtube videos which you can use to show you how to do this in more detail.
 
Upvote 0

Forum statistics

Threads
1,214,979
Messages
6,122,551
Members
449,088
Latest member
davidcom

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