ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Difference column in PivotTable (https://www.excelbanter.com/excel-discussion-misc-queries/189451-difference-column-pivottable.html)

[email protected]

Difference column in PivotTable
 
Hello,

I'm working with a fairly complex PivotTable in Excel 2007 and I'm
hoping that somebody can help me out. Here's the issue:

One one sheet of my workbook, I have a big table of data. Every row
represents a particular date, and I have several columns with numbers
in them. On a second sheet, I've created a PivotTable using the table
on the first sheet as the source of the data. On that pivot table, I
am able to add the Date field to the "Row Labels" section of my table
(thus, I have a row in my PivotTable for every date), and I'm able to
add one of my columns of data (for example, profit) to the "Values"
section of the PivotTable. Once I change the "Value Field Settings"
to something other than "Count" (right now, I'm using "Sum"), my data
shows up correctly in my PivotTable.

Now, what I'd like to do is to have a column in my PivotTable to show
the CHANGE in profit for every day, rather than the value itself. I
have tried a ton of things, and can't get it to work. In other words,
here's what I want:

Date Profit Change in Profit
3/1 1000
3/2 1200 200
3/3 1100 -100

Is this possible?

Thanks!

-Ben

Debra Dalgleish

Difference column in PivotTable
 
Add another copy of the Profit field to the Values area
In the pivot table, right-click on a cell in the new field
Click Summarize Data By, and then click More Options
Click the Show Values As tab
For Show Values As, select Difference From
For Base Field, select Date
For Base Item, select (previous)
Click OK


wrote:
Hello,

I'm working with a fairly complex PivotTable in Excel 2007 and I'm
hoping that somebody can help me out. Here's the issue:

One one sheet of my workbook, I have a big table of data. Every row
represents a particular date, and I have several columns with numbers
in them. On a second sheet, I've created a PivotTable using the table
on the first sheet as the source of the data. On that pivot table, I
am able to add the Date field to the "Row Labels" section of my table
(thus, I have a row in my PivotTable for every date), and I'm able to
add one of my columns of data (for example, profit) to the "Values"
section of the PivotTable. Once I change the "Value Field Settings"
to something other than "Count" (right now, I'm using "Sum"), my data
shows up correctly in my PivotTable.

Now, what I'd like to do is to have a column in my PivotTable to show
the CHANGE in profit for every day, rather than the value itself. I
have tried a ton of things, and can't get it to work. In other words,
here's what I want:

Date Profit Change in Profit
3/1 1000
3/2 1200 200
3/3 1100 -100

Is this possible?

Thanks!

-Ben



--
Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html



All times are GMT +1. The time now is 01:21 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com