La solution n'est pas la même en fonction des totaux à masquer. Le classeur dans le volet supérieur droit de cet article utilise l'ensemble de données de l'exemple Superstore pour faire la démonstration de toutes les solutions qui suivent.
Toutes ces solutions se font à partir de la feuille de calcul « Original ». Les instructions de création de « Original » sont dans le classeur.
IF MIN([Segment]) != MAX([Segment]) //TRUE for all total rows for segment or higher in the view hierarchy AND MIN([Sub-Category]) = MAX([Sub-Category]) //TRUE for all rows in view except totals for sub-category or higher in the view hierarchy AND MIN([Sub-Category]) IN ('Bookcases','Appliances') //list subtotals to hide THEN NULL ELSEIF MIN([Sub-Category]) != MAX([Sub-Category]) 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([Sub-Category]) != MAX([Sub-Category])
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.