I'm not sure if this question belongs to this forum or the Reporting services forum.
My problem is that I am trying to generate a pie chart in reporting services that shows the top 10 items based on the Quantity measure and sums the other components up and shows them in one slice. The pie should have 11 slices, one for each of the top 10 items and 1 for the other items.
Here is the mdx query I'm using
with set [TopComponents] as
'Generate(
{Topcount([Component].[Name].Members, 10, [Measures].[Quantity]) as TC},
Head(VisualTotals({[Component].[Name].currentMember, [Component].[Name].Children - TC}, "* Others"))
)'
Select [Measures].[Quantity] on columns,
[TopComponents] on rows
From [Time Registration]
This query returns what I want when I execute it in the SQL Server management studio but when I try to use it in Reporting services, the "others" member is changed to "null" and the pie chart that uses the dataset omits it showing only the top 10 items.
Any ideas on how I can fix this?