index()!=1In der beigefügten Beispielarbeitsmappe werden die folgenden Anweisungen anhand des Beispieldatensatzes "Superstore" demonstriert:
IF [Segment] = "Consumer" THEN [Profit] END
WINDOW_MIN( SUM([Corporate Sales ])) - WINDOW_MIN( SUM([Consumer Sales]))
Pivotieren Sie Kennzahlwerte in Tableau Prep. Hinweis: Berechnete Felder können in Tableau Desktop nicht pivotiert werden. Demzufolge muss das Pivotieren in Tableau Prep erfolgen.
Erstellen der Ansicht in Tableau Desktop
IF MIN([Pivot1 Names]) = 'Sales' THEN SUM([Sales]) ELSEIF MIN([Pivot1 Names]) = 'Dummy Measure' THEN ZN(LOOKUP(SUM([Sales]),-1)) - (LOOKUP(SUM([Sales]),-3)) END
IF MIN([Pivot1 Names]) = 'Dummy Measure' THEN [New Measure Values] END
001458133
1853 KB

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.