Quantcast
Channel: SQLServerCentral » Data Warehousing » Analysis Services » Latest topics
Viewing all articles
Browse latest Browse all 1341

SCOPE issue with Excel created subcube

$
0
0
Hi All,I have a the below query that is being generated by Excel which includes a subcube:[code="sql"]SELECTNON EMPTY [Channel].[Channel Group - Channel].[Channel Group] ON COLUMNS ,NON EMPTY Hierarchize({DrilldownLevel({[Product].[Product Number - Product].[All]},,,INCLUDE_CALC_MEMBERS)})DIMENSION PROPERTIES PARENT_UNIQUE_NAME,HIERARCHY_UNIQUE_NAME ON ROWS FROM ( SELECT ({[Product].[Product Number - Product].[Product Number].&[ABC206], [Product].[Product Number - Product].[Product Number].&[ABC205]}) ON COLUMNS FROM [Products])[/code]As you can see Excel has created a sub cube to filter the set down to just the two product I want.. Any ideas?However when I calculated measure to get the count of products that I've selected:[code="sql"]CREATE MEMBER CURRENTCUBE [Measures].[Selected Product] ASDescendants(Existing [Product].[Product Number - Product].CurrentMember, [Product].[ProductNumber - Product].[ProductNumber]).Count,VISIBLE = 1;[/code]The result is the total count of all products (there are 1106) instead of only the two in the subcube generated by Excel...It's been driving me insane so any help is much appreciated!!Cheers,Jim.

Viewing all articles
Browse latest Browse all 1341

Trending Articles