@Luke M: Can you base an Excel Table on another Excel table and still have it dynamically expand to show only the number of rows needed to hold the data? That could possibly also solve my problem if I can do some aggregates during the pull and skip the Pivot entirely. I would pull it straight from the databases, but I need it so they can manually adjust information in the detail table and all the other Excel and Pivot Tables update based on that.
@fred:
Below is the data, where ComparePrice and Price come from different databases, one only available as a summary and the other as detail:
Data Table:
[pre]
Item Color Size ComparePrice Price
-----------------------------------------------
Apple Red Large 10.00 6.00
Apple Red Medium 10.00 5.00
Apple Blue Large 10.00 10.00
Apple Pink Medium 14.00 9.00
Apple Pink Small 14.00 6.00
Orange Orange Large 8.00 8.00
Orange Silver Large 10.00 9.00
[....]
Pivot Table output:
[pre]
Item Size ComparePrice Total of Price
------------------------------------------------
Apple Red 10.00 11.00
Apple Blue 10.00 10.00
Apple Pink 14.00 15.00
Orange Orange 8.00 8.00
Orange Silver 10.00 9.00
[/pre]
I'd really like to be able to have some header and footer rows as regular Excel rows/cells above and below the Excel Table. There are only, say, 5 fruits to keep track of, but a variable number of colors.
Desired Output (expandable as necessary, where Database 1 Price is the Total of Price column, and Database 2 Price is the ComparePrice column. Note that columns are not in the same order as the Pivot Table):
Color Database 1 Price Database 2 Price
---------------------------------------------
*Apple* + Static Header
Red 30.00 31.00 | Dynamic Excel Table rows
Blue 10.00 10.00 | Dynamic Excel Table rows
Pink 14.00 15.00 | Dynamic Excel Table rows
*Total Apple* 54.00 56.00 - Footer
*Orange* + Static Header
Orange 8.00 8.00 | Dynamic Excel Table rows
Silver 10.00 9.00 | Dynamic Excel Table rows
*Total Orange* 18.00 17.00 - Footer
[/pre]