I would like to allow users to specify their own dynamic grouping of members. In the AdventureWorks tutorial, that would mean a user could define "Product Group 1" as Accessories and Clothing, and "Product Group 2" as Accessories and Bikes." I could have an
I can get results like that by defining members as part of the MDX query:
with
member [Product].[Category].[Product Group 1] as
aggregate({[Product].[Category].[Accessories], [Product].[Category].[Clothing]})
member [Product].[Category].[Product Group 2] as
aggregate({[Product].[Category].[Accessories], [Product].[Category].[Bikes]})
select [Measures].[Internet Sales-Sales Amount] on 0,
{[Product].[Category].[Product Group 1], [Product].[Category].[Product Group 2] } on 1
from [Analysis Services Tutorial]
My question is: is there any way I could save these product groups as part of the cube, so you could just reference {[Product].[CustomGroups]}
rather than having to include with member group1 as ... member group2 as ..
on the query?
Sure, I could incorporate them into the dimensional model itself, which is almost what I want, but I'd like changes to take effect without refreshing the cube.
[Product Group 1]
and[Product Group 2]
and a custom set[mySetofProdGroups]
in the cube-script? – whytheqcreate member [product group 1] as ... ; create set [mySetOfProdGroups] as {[product group 1], ...}
? – wrschneider