Here's an example for the Foodmart Sales cube, which sums [Unit Sales]
across [Product].Drink], [Product].[Food] and [Promotions].[Big Promo]:
Quote:
|
With Member [Product].[All Products].[X] as
|
'Aggregate({
([Product].[All Products].[Drink],
[Promotions].[All Promotions]),
([Product].[All Products].[Food],
[Promotions].[All Promotions]),
([Product].[All Products],
[Promotions].[All Promotions].[Big Promo])})'
select {[Measures].[Unit Sales]} on columns,
[Product].[Product Family].AllMembers on rows
from Sales
- Deepak
Deepak Puri
Microsoft MVP - SQL Server
*** Sent via Developersdex http://www.developersdex.com ***