キューブデータソースの Tableau 計算フィールドではディメンションを直接参照することはできませんが、表計算ではビューのディメンションメンバーを参照できます。たとえば、INDEX() を使用して、ビューのディメンション値の列/行を参照できます。または、WINDOW_SUM(SUM(1)) を使用して、ビューのディメンションメンバーをカウントできます。
注意:この方法では、計算で間接的に参照されるすべてのディメンションをビューに含める必要がありますが、ビューをさらに変更してこれらのディメンションを非表示にすることができます。「ビューに存在しないディメンションによる表計算の実行」を参照してください。
次の手順は、2019 年売上の列、2018 年売上の列、およびこれら 2 年間の差の割合の列を含むクロス集計ビューを作成する方法を示しています。これらの操作手順を確認するには (また、この方法が機能する理由に関する詳細を参照するには)、この記事の右側のペインからワークブックをダウンロードしてください。
回避策として、代わりに計算されたメンバーを作成します。詳細については、「計算されたメンバーの作成方法」を参照してください。
キューブデータソースでは、データを Tableau Desktop にインポートする前に、指定したディメンションのメジャーバリューが事前に集計されます。そのため、計算でディメンションを使用すると、不正確な結果が作成される可能性があります。
この機能を今後の製品リリースに組み込むことに賛成する方は、次の Community Idea に投票してください。
関連情報:
001458180

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.