Befolgen Sie die folgenden Schritte, um den gewichteten Mittelwert von "Internetversandkosten" und "Anzahl Internetbestellungen" unter Verwendung eines berechneten Elements zu verwenden.
SUM(
[product categories].currentmember.children, [internet order count] * [internet freight cost])
/ SUM(
[product categories].currentmember.children, [internet order count]
)
Die gewichteten Mittelwerte von "Anzahl Internetbestellungen" und "Internetversandkosten" werden nun für jede Unterkategorie angezeigt.

Das folgende Beispiel führt Sie durch das Erstellen einer MDX-Anweisung über die Produkt- und Kundengeografiedimensionen.Dieser komplexe gewichtete Mittelwert weist Tableau an, den gewichteten Mittelwert von "Internet Sales Amount" für jede Kombination aus "Unterkategorie" und "Land" für die jeweiligen Nachfolger abzurufen.
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]
In der folgenden Ansicht wird der gewichtete Mittelwert von "Internet Sales Amount" für jede Kombination aus "Unterkategorie" und "Land" für die jeweiligen Nachfolger gezeigt.
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.