Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Wiki Markup
{anchor:top}
{toc: class=contents}

h2. Overview概要

{styleclass: Class=topLink}[topページトップ|#top]
{styleclass}
WithYellowfinのビュービルダーを使って、データベースから読み出したデータを使って計算を行う、計算フィールドを作成することができます。これらの計算には、単純な四則演算だけでなく、複雑なSQLステートメントを含めることが可能です。
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.

You can create a number of different types of calculated columns including: 
||Type||Description||
|*[|| 説明 ||
| *[式ビルダー|Formula Builder]* |This allows you to build calculations through a builder interface, rather than having to write the SQL yourself.|
|*[Grouped Valuesビルダーインターフェースを通して計算を作成できます。自分でSQLを記述する必要はありません。 |
| *[グループ化値|Formula Builder#Grouped Values]* |This allows you to create a field that returns grouped results.|
|*[グループ化された値を返すフィールドを作成できます。 |
| *[定義済みフィルター|Pre-Defined Filters]* |This allows you to define filters for Report Writers to use, rather than defining them for each report.|
|*[Parameters]*|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.|
|*[レポート作成者が使用するフィルターを作成できます。レポート作成者は、レポートごとにフィルターを定義する必要がなくなります。 |
| *[パラメーター|Parameters]* | レポート閲覧者により定義され、What-If分析(仮説分析)のレポートに渡される値を持つことができるフィールドを定義できます。 |
| *[フィルターグループ|Filter Groups]* |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|Freehand SQL]* |This allows you to build a calculation by writing the SQL, rather than using a builder.|
|*[SQLを記述することで計算を作成できます。ビルダーは使用しません。 |
| *[式テンプレート(カスタム関数)|Formula Templates (Custom Functions)]* |This allows you to build a calculation using a template, rather than having to use a builder, simply by specifying the fields it requires.|
|*[テンプレートを使用して計算を作成できます。ビルダーを使用する必要はなく、必要なフィールドを指定するだけで済みます。 |
| *[日付階層|Date Hierarchy]* |This allows you to create a time based hierarchy by converting date fields into various formats to create each level. 日付フィールドをさまざまな書式に変換してそれぞれのレベルを作成することで、時間ベースの階層を作成できます。 |


h2. Create New Columnフィールドの新規作成
{styleclass: Class=topLink}[topページトップ|#top]
{styleclass}
You can create new calculated fields within your view as required.
# To create a new field open the Calculated Fields folder in the unattached folders list.  Here you will see sub folders for [必要に応じ、計算を行うフィールドや同じカラムの書式の違うコピーなど、新しいフィールドを作成してビューに追加することが可能です。
# 新しいフィールドを作成するには、「未結合のフィールド」フォルダーリストの「計算フィールド」フォルダーを開きます。「 [式ビルダー|Formula Builder],」、「 [フリーハンドSQL|Freehand SQL],」、「 [式テンプレート(カスタム関数)|Formula Templates (Custom Functions)], and [」、「[日付階層|Date Hierarchy].  These are different ways that you can create calculations. 」サブフォルダーが表示されます。異なる方法で計算を作成できます。
!01.png!
_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)._
# 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.
# Advance to the formula entry by clicking the Formula tab, unless you chose the Date Hierarchy, this is set on the first tab.

次に「新しい関数の作成」、「SQLの登録」、「(既存の)関数の選択」から、どのような方法でフィールドを作成するかを選択します(カスタム関数の使い方のセクションを参照してください)。_
# 方法を選択したらレポートフォルダーにドラッグします。編集セクションが表示されますので、まずは既存のフィールドと同様にメタデータを定義してください。
# 「式」タブをクリックして、式の定義に進みます。「日付階層」を選択した場合を除いて、これが最初のタブに設定されます。

\\
\\
{horizontalrule}
{styleclass: Class=topLink}[topページトップ|#top]
{styleclass}