?
Solved

Calculated Field in Pivot Table

Posted on 2013-06-26
2
Medium Priority
?
578 Views
Last Modified: 2013-09-17
I need to use a calculated field to calculate the difference between the 2012 Margin (col. J) and the 2013 Margin (col. K). I know I can easily do this outside the pivot table. But can it be done inside the pivot table using a calculated field?
Sales-by-Category-YTD.xlsx
0
Comment
Question by:woodsboro_kid
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 23

Accepted Solution

by:
NBVC earned 2000 total points
ID: 39278310
I don't think you can use Calculated field to find difference of items in same original data column....  You will need to do it outside the table.
0
 
LVL 2

Expert Comment

by:mike247
ID: 39501136
You can do this within a pivot table (sort of), but it will show you only the difference and you have to reset the base year each year.  Click on 'Value Field Settings" on the value field (i.e. Sales) then click the "Show Values As" tab.  Choose the drop-down "difference from".  On the left choose the date field. On the right choose the base year.  Since you have to choose the base year, it will always compare each column to the base year.    

PowerPivot, however, can do it correctly so I recommend using PowerPivot instead.  If you get PowerPivot up and running and want advice on how this works, just reply to this thread and I will try to help.  You need to first be connected to the data source in PowerPivot and create a PowerPivot table with it.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question