30日間の無料評価版をお試しいただけます。

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Table of Contents
classcontents

...

概要

Styleclass
ClasstopLink

View Calculated Fields

With Yellowfin’s view builder you can create derived columns based on the fields sourced from the database. These calculations can include simple mathematical calculations or more complex SQL statements.

ページトップ

Yellowfinのビュービルダーを使って、データベースから読み出したデータを使って計算を行う、計算フィールドを作成することができます。これらの計算には、単純な四則演算だけでなく、複雑なSQL文を含めることが可能です。

 

Wiki Markup
{html}<iframe width="700" height="394" src="https://www.youtube.com/embed/9DQ__G45BGI?color=white" frameborder="0" allowfullscreen></iframe>{html}

 

You can create a number of different types of calculated columns including:作成することができる計算フィールドのタイプは以下の通りです:

Type

Description説明

式ビルダー

This allows you to build calculations through a builder interface, rather than having to write the SQL yourself.

Grouped Values

This allows you to create a field that returns grouped results.

ビュー定義計算フィルター

This allows you to define filters for Report Writers to use, rather than defining them for each report.

パラメーター

This allows you to define a field that can have its value defined by a Report Reader and then passed into the report for What If analysis.

ビュー定義フィルターグループ

This allows you to create a set of fields to be used as filters in reports. This can include filter dependencies and cached values.

フリーハンドSQL

This allows you to build a calculation by writing the SQL, rather than using a builder.

式テンプレート(カスタム関数)

This allows you to build a calculation using a template, rather than having to use a builder, simply by specifying the fields it requires.

日付階層

This allows you to create a time based hierarchy by converting date fields into various formats to create each level.

...

マウスの操作で計算式を作成することができます。自分でSQLを記述する必要はありません。

グループ化値

グループ化された値を返すフィールドを作成できます。

ビュー定義計算フィルター

レポート作成者が使用するフィルターを作成することができます。レポート作成者は、レポートごとにフィルターを定義する必要がなくなります。

パラメーター

レポート閲覧者により定義され、What-If分析(仮説分析)のレポートに渡される値を持つことができるフィールドを定義することができます。

ビュー定義フィルターグループ

レポート内のフィルターとして使用されるフィールドのセットを作成することができます。フィルターグループには、フィルターの従属関係およびキャッシュされる値を含めることができます。

フリーハンドSQL

SQLを記述することで計算を作成することができます。ビルダーは使用しません。

式テンプレート(カスタム関数)

テンプレートを使用して計算を作成することができます。ビルダーを使用する必要はなく、必要なフィールドを指定するだけで済みます。

日付階層

日付フィールドをさまざまな書式に変換してそれぞれのレベルを作成することで、時間ベースの階層を作成することができます。

フィールドの新規作成

Styleclass
ClasstopLink

View Calculated Fields

You can create new calculated fields within your view as required.

ページトップ

必要に応じ、計算を行うフィールドや同じカラムの書式の違うコピーなど、新しいフィールドを作成してビューに追加することが可能です。 

  1. 新しいフィールドを作成するには、「未結合のフィールド」フォルダー一覧の「計算フィールド」フォルダーを開きます。以下のサブフォルダーが表示されます。
    1. 式ビルダー
    2. フリーハンドSQL
    3. 式テンプレート(カスタム関数)
    4. 日付階層
  1. 異なる方法で計算を作成することができます。次に「新しい関数の作成」、「SQLの登録」、「(既存の)関数の選択」から、どのような方法でフィールドを作成するかを選択します(カスタム関数の使い方のセクションを参照してください)。
    Image Added
  2. 方法を選択したらレポートフォルダーにドラッグします。編集セクションが表示されますので、まずは既存のフィールドと同様にメタデータを定義してください。
  3. 「式」タブをクリックして、式の定義に進みます。「日付階層」を選択した場合を除いて、これが最初のタブに設定されます。
  4. To create a new field open the Calculated Fields folder in the unattached folders list. Here you will see sub folders for:
    1. 式ビルダー,
    2. フリーハンドSQL,
    3. 式テンプレート(カスタム関数),
    4. and 日付階層.
  5. These are different ways that you can create calculations. Select how you wish to create the field by either selecting to create a new calculated formula, or type in an SQL statement, or use an existing function as defined in the custom function XML file (See Using Custom Functions).
    Image Removed
  6. Choose the type you want and drag it into the report folders like you would a normal field. This will open the field edit section. Define the metadata for the field as usual.
  7. Advance to the formula entry by clicking the Formula tab, unless you chose the Date Hierarchy, this is set on the first tab.

 

horizontalrule
Styleclass
ClasstopLink

View Calculated Fieldsページトップ