To achieve this one need to use the Axis function provided by MDX
WITH MEMBER [Average] AS [Measures].[Internet Sales Amount]/ SUM(Axis(1).Item(0).Item(0).Dimension.DefaultMember,[Measures].[Internet Sales Amount]) ,FORMAT='PERCENT' SELECT {[Measures].[Internet Sales Amount],[Average]} on COLUMNS, NONEMPTY ( [Product].[Product Categories].[Category].MEMBERS, [Measures].[Internet Sales Amount] ) ON ROWS FROM [Adventure Works] |
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.