[Sales] + [Profit] würde zu ZN( [Sales] ) + ZN( [Profit] ) werdenSUM( [Sales] ) + SUM( [Profit] ) würde zu ZN( SUM( [Sales] )) + ZN( SUM( [Profit] )) werden[Region] = NULL würde zu ISNULL( [Region] ) werdenIF [Region] = "Nordpol" THEN [Umsatz] END
IF [Region] = "Zentral"
THEN [Umsatz]
ENDIF [Region] = "Nordpol"
THEN [Umsatz]
ELSE 0
ENDIF [Region] = "Zentral" THEN [Umsatz] END - IF [Region] = "Westen" THEN [Umsatz] END
SUM( IF [Region] = "Zentral" THEN [Umsatz] END ) - SUM( IF [Region] = "Westen" THEN [Umsatz] END )
Hinweis: diese Option wird nicht funktionieren wenn eine der Dimensionen, die in der bedingten Anweisung verwende werden, in der Ansicht enthalten sind. Das Beispiel oben funktioniert nicht, wenn [Region] in der Ansicht miteinbegriffen ist.
{ FIXED : SUM( IF [Region] = "Zentral" THEN [Umsatz] END ) }
-
{ FIXED : SUM( IF [Region] = "Westen" THEN [Umsatz] END ) }
Hinweis: Es kann notwendig sein, Dimensionen der Ansicht zur Berechnung oben hinzuzufügen (nach FIXED).
WINDOW_SUM( SUM( IF [Region] = "Zentral" THEN [Umsatz] END )) - WINDOW_SUM( SUM( IF [Region] = "Westen" THEN [Umsatz] END ))Ein anderes Beispiel, das Tabellenfunktionen verwendet finden Sie unter Berechnen der Differenz zwischen zwei Werten für die gleiche Kennzahl in einer Ansicht.
FLOAT( [Preis] )FLOAT( RIGHT( [Preis], LEN( [Preis] ) - 1 ))FLOAT(
IF ISNULL( FLOAT( LEFT( [Preis],1 )))
THEN RIGHT( [Preis], LEN( [Preis] ) - 1 )
ELSE [Preis]
END001474028

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.