January Actuals and February Plan
March 31, 2023 - by Bill Jelen
The example in Can I Save Formatting in a Template? used GetPivotData to show Actual for some months and Plan for other months.
Good news: Excel 2010 offers a new feature called named sets that finally allows you to create asymmetric reports.
Bad news: Named sets work only with OLAP pivot tables for this release, so you cannot use them with regular pivot tables.
Good news: If you take your regular Excel data through Power Pivot, the data becomes an OLAP pivot table, and therefore you can use named sets.
To recap the problem, you want to show Actuals for January through April and Plan for the remaining months:
In the PivotTable Tools Option tab, choose Fields, Items, Sets and choose Create Set Based on Column Items.
Excel shows you a dialog with a new row for every column in your pivot table. Highlight a column and click Delete Row to remove it from the pivot table.
You eventually end up with a list of only the desired columns.
The resulting pivot table is shown below. It is amazing how hard this is in regular pivot tables, but certainly possible with Power Pivot datasets.
This article is an excerpt from Power Excel With MrExcel
Title photo by Brett Jordan on Unsplash