계산된 멤버를 사용하여 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 문을 만드는 과정을 안내합니다. 이 복합 가중 평균 예에서는 Tableau에 Subcategory 및 Country의 각 조합에서 해당 하위 항목에 대한 Internet Sales Amount의 가중 평균을 구하도록 지시합니다.
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.