Pivot Table [Delta] Field

thedr9wningman

New Member
Joined
Feb 27, 2007
Messages
13
Hi, I'm trying to do something I think of as very simple, but I cannot seem to figure it out. I'm doing a comparison of values (so the same field) with different attributes over time.

I'm simply trying to calculate this delta field using fields so that I can dynamically generate the differences. I cannot for the life of me figure out how to do this other than using getpivotdata().

The date columns are called "date of update" and can be various longitudinal values (values/versions over time). Other than that, I'm using a summation of the 'value' field, which is simply the values in a table summed up by the "era" (the row labels that map to the time periods). How do I make an item or field (I don't understand the difference) that is simply value5/2-value8/21=delta? (another way to say it is [valuedate of update A]-[valuedate of update B]=delta)

Example (sorry for the rotten formatting, I'm doing the best I can):

Rich (BB code):
Sum of Value	Column Labels		
Row Labels	    5/2/2013	8/21/2013	Delta
2004 - 2009	4.50	        1.50	           -3.00
2010 - 2014	4.59	        4.59	
2015 - 2019		        0.00	
2020 - 2024		        0.00	
2025 - 2029		        0.00	
Grand Total		9.09	        6.09

Data is structured as such...
Rich (BB code):
Year	Date of update	Value		Status			era
2008	8/21/2013		1.00	Current from model	2004 - 2009
2009	8/21/2013		0.09	Current from model	2004 - 2009
2010	8/21/2013		0.88	Current from model	2010 - 2014
...
2008	5/2/2013		1.00	Historical value	2004 - 2009
2009	5/2/2013		0.09  	Historical value	2004 - 2009

Thanks for any assistance.

-Feeling thick.
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Hi up in rainy Portland!

You can do what you describe using a Calculated Item (not a Calculated Field).

This article provides a good overview....

The Microsoft Office Blog

For your purpose, you could make a Calculate Item "Delta" with the formula:
='Date of update'[-1] -'Date of update'[-2]

Make sure to click on one of your "Date of update" headers before clicking the "Fields Items & Sets" button from the Ribbon.
 
Upvote 0
Hi Jerry:

Thanks for the response, but the link is not working.

Group Not Found The requested Group cannot be found.

The login procedure for that site was onerous and difficult as well...

That said, I did find something on that blog that helped. I'm now able to select differing items and perform calculations on them.

Thanks for pointing me in the right direction! I seriously looked for over an hour!
Excel Blog - PivotTables: Calculated Items
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,349
Messages
6,124,427
Members
449,158
Latest member
burk0007

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