La solución depende de qué totales deben ocultarse. El libro de trabajo en el panel derecho de este artículo usa el conjunto de datos de muestra Superstore para mostrar las siguientes soluciones.
Todas las soluciones empiezan en la hoja de trabajo "original". Los pasos para crear "original" se encuentran en el libro de trabajo.
IF MIN([Segment]) != MAX([Segment]) //TRUE para todas las filas de totales del segmento o un elemento superior en la jerarquía de visualización AND MIN([Sub-Category]) = MAX([Sub-Category]) //TRUE para todas las filas de la vista, excepto los totales de subcategoría o un elemento superior en la jerarquía de visualización AND MIN([Sub-Category]) IN ('Bookcases','Appliances') //enumerar subtotales para ocultar THEN NULL ELSEIF MIN([Subcategoría]) != MAX([Subcategoría]) AND MIN([Category]) = MAX([Category]) AND MIN([Category]) = 'Furniture' THEN NULL ELSE SUM([Sales]) END
IF MIN([Segment]) != MAX([Segment])
AND MIN([Sub-Category]) = MAX([Sub-Category])
AND MIN([Sub-Category]) IN ('Bookcases','Appliances')
THEN NULL
ELSEIF MIN([Subcategoría]) != MAX([Subcategoría])
AND MIN([Category]) = MAX([Category])
AND MIN([Category]) = 'Furniture'
THEN NULL
ELSE SUM([Profit])
END
001466835
1540 KB

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.