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

Apply a label to the all member when querying allmembers from a hierarchy

$
0
0
I need to create an MDX query returning allmembers from a hierarchy as I need the value for the All level of the Hierarchy. When I do this with the ALLMEMBERS function (null) is returned as the member name rather than All. Is it possible for me to set something in the cube to return a label for the All member used in this way.You can see an example query below which queries the AdventureWorks cube.[code="sql"] SELECT NON EMPTY { [Measures].[Reseller Sales Count], [Measures].[Reseller Sales-Sales Amount] } ON COLUMNS, NON EMPTY { ([Reseller].[Business Type].Allmembers) } ON ROWS FROM [Analysis Services Tutorial] [/code]What I want to see is 'All' rather than (null)

Viewing all articles
Browse latest Browse all 1341

Trending Articles