Solved

Add a computed field to a Pivottable for Month-Year

Posted on 2011-03-15
4
243 Views
Last Modified: 2012-05-11
I'm trying to add a computed field to a Pivottable for Month/1/Year.  The data used to create the Pivot only has columns for Month and Year.  I need to group the data by MM/YY so I tried to add a formula field month_date&"/1/"&year_date but it displays it as a SUM of MyFieldname with #VALUE! for the cell values.  
The version is Excel 2007.
0
Comment
Question by:Ed_CLP
[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
  • 2
4 Comments
 
LVL 85

Expert Comment

by:Rory Archibald
ID: 35137939
Can you not simply group by Year then month? That would produce the same outcome.
0
 

Author Comment

by:Ed_CLP
ID: 35137987
No, that's what I do now.  I need to group/sort/chart the data  as MM-YY.  I'm reporting on a rolling 6 and 12 month dataset that spans 2 years.   I'm finding that when I insert a formula field the Pivot only has options to sum,avg,count etc for the formula field and column.
0
 
LVL 85

Accepted Solution

by:
Rory Archibald earned 250 total points
ID: 35138114
I'm still not really clear why you can't report on what you have, but you would need to add a column to the underlying data I think. Neither a calculated field nor calculated item will work for this.
0
 

Author Comment

by:Ed_CLP
ID: 35138165
Yeah, that's the way it looks - I'll have to add the computed value to the source worksheets.
I'm trying to duplicate some existing reports and they aren't grouped by year and then month, other wise the Pivottable would work fine.  

Thanks
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
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.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

739 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