S
Sebastian Crewe
Greetings,
My question concerns filtering of data within an OWC Pivot Table control
(v11) used on a Windows Forms project (VS 2005). My data source is an
Analysis Services cube (AS 2005, SP1).
We have a lot of data here, going back 5 years. My objective is to be able
to filter what is displayed within the Pivot Table. An example layout is as
follows:
Calendar Year
Region | Store [Measures].[Store Sales]
In this example, Region and Store are set up as two levels within a hierarchy.
Stores have been opened and closed over the years. What I am hoping to
achieve is for the Pivot Table to display only rows for Stores with [Store
Sales] > 0. If all years are being shown, then it is reasonable for all
Stores to show as well. But if say only 2006 has been chosen via the little
filter dropdown arrow on the Time dimension in the column axis, then I would
like to exclude those stores for which [Store Sales] are 0 (inactive during
the year on display). If, later, we want to look at Profits, then a filter
which shows Profits <> 0 would be appropriate. For various reasons, both
Store Sales and Profits are calculated measures.
I'm guessing that it is better to do this on the client side rather than
adjusting the base MDX query. The user might look at any year, so it seems
best to have all the data returned by the server, and then to do the
filtering locally. But I can't find anyway to achieve this. The latest
edition of OWC doesn't have a plFilterFunctionInclude option. The
PivotField.IncludedMembers doesn't do the filtering on the data. Actually, I
can't decide if I should be hunting within the PivotView object or the
PivotData object.
Any leads or suggestions gratefully received.
Thanks and regards,
Sebastian Crewe
My question concerns filtering of data within an OWC Pivot Table control
(v11) used on a Windows Forms project (VS 2005). My data source is an
Analysis Services cube (AS 2005, SP1).
We have a lot of data here, going back 5 years. My objective is to be able
to filter what is displayed within the Pivot Table. An example layout is as
follows:
Calendar Year
Region | Store [Measures].[Store Sales]
In this example, Region and Store are set up as two levels within a hierarchy.
Stores have been opened and closed over the years. What I am hoping to
achieve is for the Pivot Table to display only rows for Stores with [Store
Sales] > 0. If all years are being shown, then it is reasonable for all
Stores to show as well. But if say only 2006 has been chosen via the little
filter dropdown arrow on the Time dimension in the column axis, then I would
like to exclude those stores for which [Store Sales] are 0 (inactive during
the year on display). If, later, we want to look at Profits, then a filter
which shows Profits <> 0 would be appropriate. For various reasons, both
Store Sales and Profits are calculated measures.
I'm guessing that it is better to do this on the client side rather than
adjusting the base MDX query. The user might look at any year, so it seems
best to have all the data returned by the server, and then to do the
filtering locally. But I can't find anyway to achieve this. The latest
edition of OWC doesn't have a plFilterFunctionInclude option. The
PivotField.IncludedMembers doesn't do the filtering on the data. Actually, I
can't decide if I should be hunting within the PivotView object or the
PivotData object.
Any leads or suggestions gratefully received.
Thanks and regards,
Sebastian Crewe