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

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

Anchor
top
top

Table of Contents
classcontents

...

概要

Styleclass
ClasstopLink

...

top

Calculated fields allow you to create basic calculations with the fields available in your report.
Note: a calculated field that you create in the report builder cannot be used across multiple reports. It is unique to your report only. If you create a set of calculated fields you wish to use across multiple reports you can either:

  1. Request the calculations to be included in the View by your administrator or
  2. Copy the report containing the calculations using the copy function - the copied report will contain the new calculated fields as well.

Why Use Calculated Fields?

When an administrator designs a View they may not create all the variables that you are likely to need in the course of your report writing. The intention of a view is to provide you with sufficient fields for you to be able to write the report you need and to use some of these fields as the basis for more complex calculations.

...

ページトップ

計算フィールドを使用して、フィールドに対する基本的な計算を行うことができます。
注意:レポートビルダーで作成した計算フィールドは、複数のレポートで共有することはできません。そのレポートに固有のものです。複数のレポートで共有する一連の計算フィールドを作成する場合は、以下のいずれかを実行することができます。

  1. 管理者に要請してビューに対して計算フィールドを定義してもらう。
  2. コピー機能を使って計算フィールドを含むテンプレートレポートをコピーし、これをひな形として別のレポートを作成する。

 

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

計算フィールドの効用

ビューを設計する際、管理者がユーザーによるレポート作成に必要と思われるすべての変数を用意してくれるとは限りません。ビューの目的はユーザーがレポートを作成するのに充分で、かつそれらに基づいてより複雑な集計を行うことができるだけのフィールドを提供することです。

シンプル式

Styleclass
ClasstopLink

...

top

ページトップ

シンプル式を使用すると、式ビルダーインターフェースのボタンを使用して、計算式を作成することができます。これらは非常にシンプルな加算または乗算からCaseステートメントまで、多岐にわたる場合があります。Simple Formulas allow you to build calculations using the formula builder button interface. These may range from very simple addition or multiplication through to CASE statements.

Expand
titleClick to view instructions...
  1. Click the + button at the bottom of the field list in the Data step of the report builder.
    Image Removed
  2. The Calculated Field window will now appear. You will need to define the following:
    1. Provide a name for your formula in the Calculated Field Name box. This will be used as the field name in your table and/or chart output.
    2. Select Simple from the Formula Type drop down list.
    3. Use the formula buttons and field drop down list to add components to your calculation. You cannot type directly into the calculation area of the window, each part of the formula needs to be added using buttons. Yellowfin will not permit you to select combinations of variables that are incompatible - therefore options that are greyed out will become active as you add in elements.
      Note: if you wish to type your calculation you may need to use the Freehand SQL option discussed later.
      Image Removed
  3. Once finished click the Validate button to ensure your calculation is not missing any components.
    Image Removed
  4. Click Save to complete your calculation. It will now be available in a folder called calculated fields at the bottom of the field list in the Data step.
    Image Removed

...

クリックして手順を表示します。
  1. レポートビルダーの「データ」ステップで、フィールド一覧の下部にある「+」ボタンをクリックします。
    Image Added
  2. 「計算フィールド」ウインドウが表示されます。以下のことを定義する必要があります。
    1. 計算フィールド名」ボックスで、式の名前を指定します。この名前は、表やグラフの表示でフィールド名として使用されます。
    2. 式のタイプ」ドロップダウンリストから、「シンプル」を選択します。
    3. 式のボタンやフィールドドロップダウンリストを使用して、計算式に要素を追加します。ウインドウの計算領域に直接入力することはできず、ボタンを使用して、式のそれぞれの部分を追加する必要があります。Yellowfinは式として成り立たない変数や演算子の組み合わせを許可しません。そのため、その局面で選択できない要素を以下の図のようにグレイ(灰色)で表示します。
      注意:計算式を入力する場合は、後述する「フリーハンドSQLオプションの使用が必要なことがあります。
    4. Image Added
  3. 終了したら、「テスト」ボタンをクリックして、計算式に欠落している要素がないことを確認します。
    Image Added
  4. 保存」をクリックして計算式を完成します。「データ」ステップのフィールド一覧の下部にある計算フィールドと呼ばれるフォルダーに、計算式が表示されるようになります。
    Image Added

定義済みの式

Styleclass
ClasstopLink

...

top

ページトップ

定義済みの式を使用して、式のルールが管理者によって定義されたものかシステムデフォルトかに関係なく、レポートに式のルールに基づいて計算式を追加することができます。Using a pre-defined formula you can add calculation to your report that will be based on formula rules defined by an administrator or are system default.

Expand
titleClick to view instructions...
  1. Click the + button at the bottom of the field list in the Data step of the report builder.
    Image Removed
  2. The Calculated Field window will now appear. You will need to define the following:
    1. Provide a name for your formula in the Calculated Field Name box. This will be used as the field name in your table and/or chart output.
    2. Select Pre-Defined from the Formula Type drop down list.
    3. Choose the formula you wish to apply - the selection is specific to the type of database that your data is sourced from.
      Image Removed
    4. You will now be provided with options to complete your calculation. Click on each parameter to define it.
      Image Removed
    5. Provide a value using one of the options provided. These will vary depending on the type of value required.
      Image Removed
  3. Click Save to complete your calculation.
    Image Removed
  4. Your calculation will now be available in a folder called calculated fields at the bottom of the field list in the Data step.
    Image Removed

...

クリックして手順を表示します。
  1. レポートビルダーの「データ」ステップで、フィールド一覧の下部にある「+」ボタンをクリックします。
    Image Added
  2. 「計算フィールド」ウインドウが表示されます。以下のことを定義する必要があります。
    1. 計算フィールド名」ボックスで、式の名前を指定します。この名前は、表やグラフの表示でフィールド名として使用されます。
    2. 式のタイプ」ドロップダウンリストから、「定義済み」を選択します。
    3. 適用する式を選択します(データの供給元であるデータベースのタイプによって、選択は異なります)。
    4. Image Added
    5. 計算式を完成させるためのオプションが表示されます。各パラメーターをクリックして定義します。
      Image Added
    6. 表示されているオプションのいずれかを使用して値を指定します。表示されるオプションは、必要な値のタイプによって異なります。
      Image Added
  3. 保存」をクリックして計算式を完成させます。
    Image Added
  4. 「データ」ステップのフィールド一覧の下部にある計算フィールドと呼ばれるフォルダーに、計算式が表示されるようになります。
    Image Added

フリーハンドSQL

Styleclass
ClasstopLink

...

top

ページトップ

SQLに関するスキルがあれば、SQLエディター(フリーハンドSQL)を使用して直接SQLステートメントを記述することができます。「式」タブを選択してください。SQLエディター(フリーハンドSQL)が開きます。
登録するSQLをフィールドに記述してください。If you have SQL skills you may wish to write your SQL directly into the SQL edit box. In this case select the 'Enter SQL' option from the formula tab. This will open the SQL edit box.
Insert the SQL you wish to create your column.

Expand
titleClick to view instructions...
  1. Click the + button at the bottom of the field list in the Data step of the report builder.
    Image Removed
  2. The Calculated Field window will now appear. You will need to define the following:
    1. Provide a name for your formula in the Calculated Field Name box. This will be used as the field name in your table and/or chart output.
    2. Select Freehand SQL from the Formula Type drop down list.
    3. Enter the SQL use wish to use to populate the field.
      Note: The Freehand SQL builder will require:
      1. An SQL SELECT fragment, not including the SELECT keyword or any FROM or WHERE clauses
      2. Columns referenced to exist in the view
      3. No aggregate functions (AVG, MIN, MAX, SUM, and COUNT) should be used.
        Image Removed
  3. Once finished click the Validate button to ensure your calculation is not missing any components.
    Image Removed
  4. Click Save to complete your calculation. It will now be available in a folder called calculated fields at the bottom of the field list in the Data step.
    Image Removed

...

クリックして手順を表示します。
  1. レポートビルダーの「データ」ステップで、フィールド一覧の下部にある「+」ボタンをクリックします。
    Image Added
  2. 「計算フィールド」ウインドウが表示されます。以下のことを定義する必要があります。
    1. 計算フィールド名」ボックスで、式の名前を指定します。この名前は、表やグラフの表示でフィールド名として使用されます。
    2. 式のタイプ」ドロップダウンリストから、「フリーハンドSQL」を選択します。
    3. フィールドにデータを投入するために使用するSQLを入力します。
      注意:フリーハンドSQLビルダーの要件は以下のとおりです。
      1. SELECT命令の中身。SELECTキーワード、FROM節、またはWHERE節は使用できません。
      2. 参照するカラムがビュー内に存在していること。
      3. 集計関数(AVG、MIN、MAX、SUM、およびCOUNT)は使用不可。

      1. Image Added
  3. 終了したら、「テスト」ボタンをクリックして、計算式に欠落している要素がないことを確認します。
    Image Added
  4. 保存」をクリックして計算式を完成します。「データ」ステップのフィールド一覧の下部にある計算フィールドと呼ばれるフォルダーに、計算式が表示されるようになります。
    Image Added

計算フィールドの編集

Styleclass
ClasstopLink

...

top

To edit a calculated field:

  1. Hover over the calculation in the Field List of the Data step and click on the drop down menu to open it
    Image Removed
  2. Select the Edit Calculation option
    Image Removed

...

ページトップ

計算フィールドを編集するには、以下の手順を実行します。

  1. 「データ」ステップのフィールド一覧の計算式にマウスカーソルを重ね、ドロップダウンメニューをクリックして開きます。
    Image Added
  2. 計算式を編集」オプションを選択します。
    Image Added

計算フィールドの削除

Styleclass
ClasstopLink

...

top

To delete a calculated field:

  1. Hover over the calculation in the Field List of the Data step and click on the drop down menu to open it
    Image Removed
  2. Select the Delete option
    Image Removed

ページトップ

計算フィールドを削除するには、以下の手順を実行します。

  1. 「データ」ステップのフィールド一覧の計算式にマウスカーソルを重ね、ドロップダウンメニューをクリックして開きます。
    Image Added
  2. 削除」オプションを選択します。
    Image Added

 

horizontalrule
Styleclass
ClasstopLink

ページトップ

 

...