Segui i passaggi indicati sotto per calcolare la media pesata di Costi di spedizione Internet e Numero ordini Internet utilizzando un membro calcolato.
SUM(
[product categories].currentmember.children, [internet order count] * [internet freight cost])
/ SUM(
[product categories].currentmember.children, [internet order count]
)
Adesso puoi visualizzare le medie pesate di Numero ordini Internet e Costi di spedizione Internet per ogni sottocategoria.

Nella seguente guida è illustrato il processo di creazione di un'istruzione MDX in entrambe le dimensioni della geografia di prodotti e clienti. Questo esempio di media pesata complessa indica a Tableau di ottenere la media pesata dell'Importo vendite Internet, in ogni combinazione di Sottocategoria e Paese, per i rispettivi discendenti.
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]
Nella vista seguente è illustrata la media pesata dell'Importo vendite Internet, in ogni combinazione di Sottocategoria e Paese, per i rispettivi discendenti.
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.