[Sales] + [Profit] は ZN( [Sales] ) + ZN( [Profit] ) になります。SUM( [Sales] ) + SUM( [Profit] ) は ZN( SUM( [Sales] )) + ZN( SUM( [Profit] )) になります。[Region] = NULL would become ISNULL( [Region] )IF [Region] = "North Pole" THEN [Sales] END
IF [Region] = "Central"
THEN [Sales]
ENDIF [Region] = "North Pole"
THEN [Sales]
ELSE 0
ENDIF [Region] = "Central" THEN [Sales] END - IF [Region] = "West" THEN [Sales] END
SUM( IF [Region] = "Central" THEN [Sales] END ) - SUM( IF [Region] = "West" THEN [Sales] END )
注: 条件付きステートメントで使用されているディメンションのいずれかがビューに含まれている場合、このオプションは機能しません。[Region] がビューに含まれている場合、上記の例は機能しません。
{ FIXED : SUM( IF [Region] = "Central" THEN [Sales] END ) }
-
{ FIXED : SUM( IF [Region] = "West" THEN [Sales] END ) }
注: ビューからのディメンションを上記の計算 (FIXED の後) に追加することが必要になる場合があります。
WINDOW_SUM( SUM( IF [Region] = "Central" THEN [Sales] END )) - WINDOW_SUM( SUM( IF [Region] = "West" THEN [Sales] END ))表関数を使用する別の例については、「ビュー内の 1 つのメジャーにおける 2 つの値の差を計算」を参照してください。
FLOAT( [Price] )FLOAT( RIGHT( [Price], LEN( [Price] ) - 1 ))FLOAT(
IF ISNULL( FLOAT( LEFT( [Price],1 )))
THEN RIGHT( [Price], LEN( [Price] ) - 1 )
ELSE [Price]
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.