計算されたメンバーを使用して "Internet Freight Cost (インターネット運送費)" と "Internet Order Count (インターネット注文数)" の加重平均を計算するには、次の手順に従います。
SUM(
[product categories].currentmember.children, [internet order count] * [internet freight cost])
/ SUM(
[product categories].currentmember.children, [internet order count]
)
各サブカテゴリの "Internet Order Count (インターネット注文数)"と "Internet Freight Cost (インターネット運送費)" の加重平均がこれで表示されます。

次の例では、製品と顧客の両地理的ディメンションにまたがる MDX ステートメントの作成について説明します。この複合的な加重平均の例では、"Subcategory (サブカテゴリ)" と "Country (国)" の組み合わせごとに、該当する子孫の "Internet Sales Amount (インターネット売上高)" の加重平均の計算結果を取得するように Tableau に指示します。
Sum(
CrossJoin(
Descendants ([Product].[Product Categories].CurrentMember,
[Product].[Product Categories].[Subcategory], SELF),
Descendants ([Customer].[Customer Geography].CurrentMember,
[Customer].[Customer Geography].[Country], SELF)
)
,([Measures].[Internet Sales Amount] * [Measures].[Internet Order Quantity])
) / [Measures].[Internet Order Quantity]
次のビューは、"Subcategory (サブカテゴリ)" と "Country (国)" の組み合わせごとに、該当する子孫の "Internet Sales Amount (インターネット売上高)" の加重平均を示したものです。
001458065

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.