Siga los pasos descritos a continuación para calcular el promedio ponderado de Internet Freight Cost y de Internet Order Count utilizando un miembro calculado.
SUM(
[product categories].currentmember.children, [internet order count] * [internet freight cost])
/ SUM(
[product categories].currentmember.children, [internet order count]
)
Ahora se muestran los promedios ponderados de Internet Order Count y de Internet Freight Cost de cada subcategoría.

En el siguiente ejemplo se muestran los pasos para crear una instrucción MDX en las dimensiones de producto y de geografía de cliente. Este ejemplo de promedio ponderado complejo indica a Tableau que obtenga el promedio ponderado de Internet Sales Amount en todas las combinaciones de Subcategoría y País para sus descendientes respectivos.
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]
En la siguiente vista se muestra el promedio ponderado de Internet Sales Amount en todas las combinaciones de Subcategory y Country para sus descendientes.
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.