Pivot Table questions

aells

New Member
Joined
Apr 22, 2008
Messages
13
OK this is a good one.

I have two pivot tables, each has the same data, except one is Forecast and one is actual.

Columns are month
Rows are Customer and then part number

data is Units and Total Sales.in columnar format.

What I would like to be able to do is create a new pivot table that will take the actuals to date and use them instead of the forecast totals.

Is there a way to do this easily?
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Hi,

It should be easy enough. Just create one pivot table directly from the two source data and in the SQL select the forecasts and actuals. Such as, at the first step of the pivot table wizard take the external data option. The SQL might be something like below - use whatever syntax works for you for the date filtering. It might depend on your database?

HTH, Fazza

Code:
SELECT *
FROM actuals
WHERE actuals.some_date < Date
UNION ALL
SELECT *
FROM forecasts
WHERE forecasts.some_date >= Date
 
Upvote 0

Forum statistics

Threads
1,214,644
Messages
6,120,709
Members
448,983
Latest member
Joaquim_Baptista

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top