Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Sv translation
languageen
Section
Column
Info

This summary provides overview of all formulas that can be used in reports or data sets (predefined indicators).
If you are searching for transformation scripting during data import, see Developer documentation.

Indicators and codes

Each dataset indicator is specified by its unique code starting with M_ (M as Measure). Accessing the calculated indicator's value is possible by typing this code directly into the formula. For example:

Code Block
M_NAME_1 + M_NAME_2

Another way how to get the value of the indicator is to use the value() function:

Code Block
value('M_NAME_1') + value('M_NAME_2')
Note

Strings must be always enclosed by apostrophes: 'L_NAME'.

Both examples have the same result.

Drill-down (members) aggregation

Members aggregation determines the way how to count values in the case that exists more records for one selected member in a single time unit. Aggregation type is specified by adding the appropriate suffix to the indicator's code. When not specified, the SUM aggregation is applied.

Suffix

Description

Example

@SUM

Calculates the sum of all values for the selected drill-down attribute

M_NAME@SUM

@MIN

Calculates the minimum of all values for the selected drill-down attribute

M_NAME@MIN

@MAX

Calculates the maximum of all values for the selected drill-down attribute

M_NAME@MAX

@AVG

Calculates the average of all values for the selected drill-down attribute

M_NAME@AVG

@MEDIAN
Calculates median of all values for the selected drill-down attribute
M_NAME@MEDIAN

@DC

Calculates the distinct count of all values for the selected drill-down attribute

M_NAME@DC

Counting of level members

Each drill-down level is represented by particular members, for example the level City contains members like Berlin, Paris, New York etc. To get the count of these members, use the following syntax:

Code Block
L_NAME_COUNT //L_NAME represents the level code (prefix L like level)
L_NAME_DCOUNT //to get the unique count use the _DCOUNT suffix instead

Next Steps

Sv translation
languageja
Section
Column
Info

この要約はレポートやデータセット(既定義のインディケーター)に使える全てのフォーミュラの概要を提供しています。

データ取り込み中の変換スクリプトを探している場合は、開発者文書を参照して下さい。

インディケーターとコード

それぞれのデータセットインディケーターはM_ (メジャーのM )で始まる固有のコードで特定されています。計算されたインディケーター値にアクセスすることは、このコードを直接フォーミュラに入力することで可能です。例えば:

Code Block
M_NAME_1 + M_NAME_2

インディケーター値を得るもう一つの方法はvalue()機能を使うことです。

Code Block
value('M_NAME_1') + value('M_NAME_2')
Note

ストリングは必ずアポストロフィーで閉じられなければいけません: 'L_NAME'

両方の例は同じ結果です。

ドリルダウン(メンバー)集合体

メンバー集合体は、1つの時間単位内で1つ選ばれたメンバーにより多くのレコードが存在する場合のバリュー値の数え方を特定します。集合体タイプはインディケーターコードに正しい接頭語を付けることで特定されます。特定されないばあ、 SUM 集合体が適用されます。

接頭語

説明

@SUM

選択したドリルダウンアトリビュトの全値の合計を計算します。

M_NAME@SUM

@MIN

選択したドリルダウンアトリビュトの全値の最小を計算します。

M_NAME@MIN

@MAX

選択したドリルダウンアトリビュトの全値の最大を計算します。

M_NAME@MAX

@AVG

選択したドリルダウンアトリビュトの全値の平均を計算します。

M_NAME@AVG

@MEDIAN
選択したドリルダウンアトリビュトの全値の中間を計算します。
M_NAME@MEDIAN

@DC

選択したドリルダウンアトリビュトの全値のディスティンクトカウントを計算します。

M_NAME@DC

レベルメンバーの数え方

それぞれのドリルダウンレベルは特定のメンバーを表されます。例えば、レベルCityBerlin, Paris, New Yorkなどのメンバーを含みます。これらのメンバーの数を得るには以下のシンタックスを使用してください:

Code Block
L_NAME_COUNT //L_NAME represents the level code (prefix L like level)
L_NAME_DCOUNT //to get the unique count use the _DCOUNT suffix instead

Next Steps