Ashish said:
Hi,
"By way of MS Query you can also point a pivot table at an arbitrarily
large data source, say 1 million rows, and still work with the data in
Excel 2003." - What exactly do you mean by this? How does this work?
Hi Ashish,
Let's say you have an Access database with a table (or select query)
that returns over 1 million rows, and you want to make a pivot table out
of it. On a blank worksheet, fire up the pivot table wizard. In Step 1,
choose External data source. In Step 2, click Get Data... A Choose Data
Source dialog will open where you can pick the source ("MS Access
Database"). The rest should be self explanatory.
The beauty of it is Excel does not balk at the data set's row count. The
data goes to the pivot cache. This seems to be limited only by available
memory (I've used 2+ million rows for pivot table sources). Of course,
in Excel 2003 and prior you are limited to a 2^16 row x 2^8 column
workspace for the PT. By the way, I credit Mike Alexander for cluing me
in to the above functionality.
I guess this isn't really a function of MS Query per se at this point,
but you can use MS Query to intercept and manipulate the external data:
Once you have chosen the source file, table and fields, click Next a
couple times to navigate past the filter and sorting options. You will
find an option to "View data or edit query in Microsoft Query". From
here you can do pretty much anything you might want to do with SQL: join
in other tables, aggregate, etc.
One thing that does not seem to be supported when using the external
data widget for pivot tables is parameter queries (I only just realized
this).
Having said that, MS Query is quite useful for obtaining external data
using a parameter specified in your worksheet, and it can be configured
to update automatically.
I hope you found this helpful.