この計算を作成するには、以下の手順に従い、添付のワークブックを参照してください。
SUM([Sales])-SUM([Sheet1 (target)].[Target])3. 地域が特定のサブカテゴリーの売上目標に達したかどうかを確認するための計算フィールド [Fail or Succeed (失敗または成功)] を作成します。
if [Diff]>0 then "Succeed" else "Fail" END
4. [Fail or Succeed (失敗または成功)] を [列] に、[Region (地域)] を [行] に、[Sub-Category (サブカテゴリー)] を [詳細] に追加します。
5. [Sub-Category (サブカテゴリー)] を [列] に追加します。
6. [Sub-Category (サブカテゴリー)] を右クリックし、[Measure (メジャー)] > [Count(Distinct) (カウント(個別))] を選択します。
1. COUNTD([Sub-Category]) を計算して成功か失敗かを判定する別の計算フィールドを作成します。
成功:
if [Diff]>0 then COUNTD([Sub-Category]) END失敗:
if [Diff]<=0 then COUNTD([Sub-Category]) END2. 各地域の失敗または成功の合計を計算する計算フィールド "Solution_Fail or Succeed (ソリューション_成功または失敗)" を作成します。
if [Diff]>0 then window_sum([Succeed]) else window_sum([Fail]) END
3. "Solution_Fail or Succeed (ソリューション_成功または失敗)" の表計算を設定し、"Sub-Category (サブカテゴリー)" を使用して計算します。
4. ビューに表示する 1 つの値だけを保持する "Filter (フィルター)" 計算フィールドを作成します。
if [Diff]>0 then window_sum([Succeed])=running_sum([Succeed]) else window_sum([Fail])=running_sum([Fail]) END5. "Filter (フィルター)" の表計算を設定し、"Sub-Category (サブカテゴリー)" を使用して計算します。
001459711

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.