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

MDX simple concept question

$
0
0
As near as I can tell from documentation, the Descendants() function returns a set.This returns a set of 1,500+ product names.[code="plain"]SELECT { } ON COLUMNS, {Descendants([Product].CurrentMember, [Product].[Product Name])} ON ROWSFROM [Sales and Warehouse];[/code]Then why doesn't this return the same set of 1,500+ product names? I only get the one item "Set Of Products".[code="plain"]WITH MEMBER [Set Of Products] AS { Descendants([Product].CurrentMember, [Product].[Product Name]) }SELECT { } ON COLUMNS, { ([Set Of Products])} ON ROWSFROM [Sales and Warehouse][/code]And if I try using StrToSet, it complains that it isn't a set ([i]The function expects a tuple set expression for the 1 argument. A string or numeric expression was used.[/i])[code="plain"]WITH MEMBER [Set Of Products] AS { Descendants([Product].CurrentMember, [Product].[Product Name]) }SELECT { } ON COLUMNS, { SetToStr(( [Set Of Products] ))} ON ROWSFROM [Sales and Warehouse][/code]So, my calculated measure must not be a set.Can someone shed some light?Thanks,Rob

Viewing all articles
Browse latest Browse all 1341

Trending Articles