どの合計を非表示にする必要があるかによって、ソリューションは異なります。この記事の右側のペインにあるワークブックでは、[Superstore (スーパーストア)] サンプル データ セットを使用して、次のすべてのソリューションを示しています。
すべてのソリューションは、"original" ワークシートから開始します。"original" を作成する手順は、ワークブックに記載されています。
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.