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

MDX - How do you restrict .members to subcube within calculated members

$
0
0
I believe that calculated members can go beyond the bound of a subcube. However, to me this is counter-intuitive.If I declare a subcube as:[font="Courier New"]create subcube mycube as (select {[Dim].[Dim].[Dim].&[key1] , [Dim].[Dim].[Dim].&[key2]} on 0 from mycube[/font]followed by the query:[font="Courier New"]with member Measures.X as [Dim].[Dim].[Dim].countselect {Measures.X} on 0 from mycube[/font]I would expect to see the value 2 not the count of members in the real cube.Any ideas how to get around this?

Viewing all articles
Browse latest Browse all 1341

Trending Articles