About Microsoft Office Pivot Table -
08-20-2004
, 09:39 PM
Dear all,
Previously, I used Excel Pivot Table to make a report according to the
following MDX query.
MDX query:
WITH
MEMBER [Measures].[Net Amount] AS
'[Measures].[Gross Amount] - [Measures].[Discount Amount]',
SOLVE_ORDER = 1
MEMBER [Measures].[Unit Price] AS
'[Measures].[Net Amount] / [Measures].[Qty]',
SOLVE_ORDER = 2
select
{ crossjoin({[Branch].[Store A],[Branch].[Store B], [Branch].[Store C],
[Branch].[Store D], [Branch].[Store E],
[Branch].[Store F],
[Branch].[Store G]},
{[Measures].[Qty], [Measures].[Unit Price],[Measures].[Net Amount]})}
on columns,
non empty{ nonemptycrossjoin({[Supplier].[Suppcname].members}, {[Item
Category].[Chicken].children})} on rows
from
[Receiving Datawarehouse]
where
([Delivery Date].[2004].[June], [Section].[All Section].[Kitchen] )
It took about 15 mins to finish the job. Recently, I discovered that it took
about 1-2 mins to get the same result when I use the "Microsoft Office Pivot
Table 11.0" (a web form component). Its structure is similar to Excel' s
Pivot Table. However, it is not easy to print all the results.This make me
hesitate to introduce this method to my colleagues.
By the way, what are the difference between these two pivot tables. Why the
difference between their query speeds is so great?
Hope somebody can explain this discovery for me! Thanks!
Polly |