La categoría del parámetro MDX SSRS elige todas las subcategorías

He estado buscando en todo stackoverflow para esto y no puedo entenderlo. Entonces tengo un conjunto de datos que usa un cubo SSAS, y tiene dos parámetros. Tiene una categoría y subcategoría.

Ya creé los conjuntos de datos para completar estos parámetros y funcionan bien cuando los selecciono a ambos.

La forma en que se ejecuta mi informe es que es una colección de subinformes en una tabla y está agrupada por categoría y subgrupo por subcategoría. Entonces, cuando selecciono el parámetro de categoría, enumera cada subcategoría para todos los subinformes.

Lo que intento hacer es obtener un total de todas las subcategorías dentro de esa categoría. Intenté usar valores predeterminados para TODOS pero no funciona. Intenté hacer un total en el grupo dentro de la tabla, pero eso no funciona.
Entonces, para el Grupo G1 y el subgrupo SG1 y SG2), y los subinformes SR1, SR2, es así

G1

-TOTAL (SG1 + SG2 + SG3)
--- SR1
--- SR2

-SG1
--- SR1
--- SR2


-SG2
--- SR1
--- SR2

Pude sacar las partes de informes del subgrupo configurando el parámetro de categoría en los subinformes como el parámetro pasado para la categoría y el parámetro de subcategoría como el valor del subgrupo. Pero necesito ese maldito total.

El MDX para mi categoría es

SELECT { } ON COLUMNS, { ([Service].[Category].[Category].ALLMEMBERS ) } DIMENSION PROPERTIES MEMBER_CAPTION, MEMBER_UNIQUE_NAME ON ROWS FROM [Sales-Cube] CELL PROPERTIES VALUE

El MDX para la subcategoría es

 SELECT { } ON COLUMNS, { ([Service].[Category].[Category].ALLMEMBERS * [Service].[SubCategory].[Subcategory].ALLMEMBERS ) } DIMENSION PROPERTIES MEMBER_CAPTION, MEMBER_UNIQUE_NAME ON ROWS FROM [Sales-Cube] CELL PROPERTIES VALUE

El MDX para el conjunto de datos que estoy usando los parámetros se creó usando el diseñador y es el siguiente

SELECT NON EMPTY { [Measures].[Sales Count] } ON COLUMNS, 
NON EMPTY { ([Date].[Fiscal Year].[Fiscal Year].ALLMEMBERS ) } DIMENSION PROPERTIES MEMBER_CAPTION, MEMBER_UNIQUE_NAME ON ROWS 
FROM ( SELECT ( Filter( [Service].[SubCategory].[SubCategory].ALLMEMBERS, Instr( [Service].[SubCategory].currentmember.Properties( 'Member_Caption' ), @ParamSubCategory )  > 0  ) ) ON COLUMNS 
FROM ( SELECT ( Filter( [Service].[Category].[Category].ALLMEMBERS, Instr( [Service].[Category].currentmember.Properties( 'Member_Caption' ), @ParamCategory )  > 0  ) ) ON COLUMNS 
FROM [Sales-Cube])) CELL PROPERTIES VALUE, BACK_COLOR, FORE_COLOR, FORMATTED_VALUE, FORMAT_STRING, FONT_NAME, FONT_SIZE, FONT_FLAGS

Entonces, según lo que se seleccione de la categoría, filtrará la subcategoría solo a aquellos dentro de la categoría para que caiga en cascada. Cualquier recurso o ayuda sería genial.

Respuestas a la pregunta(1)

Su respuesta a la pregunta