Anchor | ||||
---|---|---|---|---|
|
Table of Contents | ||
---|---|---|
|
Overview
You can set the default format for a field on the format tab. This will then be the display type when a user adds the column to a report. The report writer may choose to change the format through the report formatting options if they wish.
The formats are limited to the data type – For example the data type below is integer so only number based formats are permitted – such as currency, decimal, percentage or time stamp.
Format
Based on the type of field that the column being formatted is there are various format options. The ones listed below come default with Yellowfin, however as this is customisable there may be additional ones that comes as part of your installation.
...
...
Common Format Options
...
Link To URL
...
概要
「書式」タブでフィールドにデフォルトの書式を設定することができます。この書式は、ユーザーがレポートにカラムを使用する際に、初期値として使用されます。また、その必要があれば、ユーザーはレポート上でフィールドの書式を変更することができます。
フィールドの書式は、データ型によって制限されます。たとえば、通貨、十進数、パーセンテージ、タイムスタンプなどの書式は、フィールドの値が整数の場合にのみ設定可能です。
書式
カラムに書式設定されているフィールドタイプに基づいて、さまざまな書式オプションがあります。Yellowfinのデフォルトのオプション一覧を以下に示していますが、Yellowfinはカスタマイズできるため、ソフトウェアの一部として他にもオプションがある場合があります。
| 一般的な書式オプション |
---|---|
URLへリンク | 返されたデータの値をURLリンクに渡すことができます。ハッシュ(##)を使用して、URLのどこにカラム(列)値を配置するのかをYellowfinに示します。例:以下に示すように、IPアドレスのカラム(列)に書式を設定してURLを入力します: http://www.google.com.au/search?hl=en&q=##This essentially means that every IP address will be placed into it i.e.:これは実質的には、どのIPアドレスでも配置できることを意味します。例: http://www.google.com.au/search?hl=en&q=10.100.32.44 |
Org Reference Code | Converts the text in the cell to the value of an internal lookup table. E.g. AU to Australia
|
Raw Formatter | Displayed the data as it would have been returned from the database – no additional formatting applied. |
| Text |
Text | Displays as plain text |
Email Address | Creates a hyperlink on the text that will open an email client and pre-populate the sent to address. |
URL Hyperlink | Creates a hyperlink on the text and will open web page on click. Assumes the text is a legitimate URL. |
Flag Formatter | If your data contains ISO country codes you can display these as flags of the world instead of text. |
| Date |
Date | Displays value as a date – multiple date options exist. |
Time | Displays value as a time field – multiple date options exist. |
Timestamp | Displayed full date and time value |
Date Part Formatter | Allows you display part of the date, e.g. Month Name, rather than the full date. |
| Numeric |
Numeric | Displays value as a decimal – allows you to set the decimal places to be used. |
Percentage Bar | Converts a percentage value less than or equal to 100 into a bar. |
Additional Format Options
The display options are used to change the data format of the column such as the number of decimal places and the prefix or suffix to be applied.
Option | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Sub Format | Depending on the format option you have chosen for the column above you will have a separate set of sub format options. Select the appropriate sub format option. | |||||||||||||||
Date Other | If you select ‘Other’ from the date sub format you will be able to build your own custom date format. | |||||||||||||||
Decimal Places | If you have a defined a numeric format you can set the number of decimal places to be defined. This can be used to define cents in a decimal place for $20.00 by adding in:
| |||||||||||||||
Prefix | The prefix is used to include additional characters before the value that is returned from the data base. This can be used to define currency for $20.00 by adding in: | |||||||||||||||
Suffix | The suffix is used to include additional characters after the value that is returned from the data base. This can be used to define percentage for 30% by adding in: | |||||||||||||||
Rounding | The rounding format allows you to choose how a decimal value should be rounded.
| |||||||||||||||
Thousand Separator | Turns the defaulted thousand separator for your instance on or off. For example: |
Semi Additive Fields
When the field type is a metric you will be able to set the additive type, which can be set to either Additive or Semi-Additive.
The additive type option should be set to Semi-Additive when there are fields upon which the metric is constrained by use (when business rules dictate how the column should be used in a report). When this is the case a new tab labelled Constraint is displayed to enable the user to select these constraints.
See 集約フィールドへの制約 for more information
Default Aggregation
When the field type is a metric you will be able to set the default aggregation (e.g. Sum, Average etc).
This is used when adding the metric to a report it will automatically set the aggregation based on this default value. The options in the dropdown when the field type is a date are count, max and min. For all other field types the dropdown options are sum, average, count, max and min.
See 集計 for more information.
...
参照コード | セル内のテキストを内部検索テーブルの値に変換します(例:AUからAustraliaに変換)。
|
RAW(書式設定なし) | データベースからデータが返されたときに、そのデータを表示します(追加の書式設定は適用されません)。 |
| テキスト |
---|---|
テキスト | プレーンテキストを表示します。 |
電子メールアドレス | テキストにハイパーリンクを作成します。電子メールのクライアントが開き、以前に送信したアドレスが事前に挿入されます。 |
URLハイパーリンク | テキストにハイパーリンクを作成します。なお、このリンクをクリックすると、Webページが開きます。テキストが適切なURLになっていることが前提です。 |
国旗書式(Flag Formatter) | データにISOの国コードがある場合、そのコードをテキストではなく各国の国旗で表示することができます。 |
| 日付 |
日付 | 値を日付として表示します。複数の日付オプションがあります。 |
時間 | 値を時間フィールドとして表示します。複数の日付オプションがあります。 |
Timestamp | 完全な日付と時間の値が表示されます。 |
日付フォーマッター | 日付全体ではなく、月名など日付の一部を表示することができます。 |
| 数値型(Numeric) |
数値型(Numeric) | 値を10進数として表示します。小数点以下桁数を設定することかできます。 |
パーセンテージ棒グラフ | 100以下のパーセンテージ値を棒グラフに変換します。 |
その他の書式オプション
表示オプションは、適用する小数点以下桁数の数や接頭文字または接尾文字など、カラム(列)のデータ書式の変更に使用されます。
オプション | 説明 | ||||||||
---|---|---|---|---|---|---|---|---|---|
サブ書式 | カラム(列)に選択した書式オプションによって、サブ書式のセットが異なります。設定するサブ書式を選択します。 | ||||||||
日付その他 | 日付のサブ書式から「その他」を選択すると、独自のカスタムの日付書式を作成することができます。 | ||||||||
小数点以下桁数 | 数値型の書式を設定する場合、定義する小数点以下桁数の数を設定できます。これを使用して、1ドル未満のセントを小数点以下桁数で定義することができます。$20.00の場合、小数点以下桁数を
| ||||||||
接頭文字 | 接頭文字は、データベースから返される値の前に追加の文字を含めるために使用します。これは、通貨の定義に使用することができます。$20.00の場合は$を追加します。 | ||||||||
接尾文字 | 接尾文字は、データベースから返される値の後に追加の文字を含めるために使用します。これは、パーセンテージの定義に使用することができます。30%の場合は%を追加します。 | ||||||||
丸め(端数処理) | 丸め(端数処理)書式では小数値の丸め方を選択できます。
| ||||||||
千単位区切文字 | インスタンスに対してデフォルトになっている千単位区切文字をONまたはOFFに替えます。例: |
制約あり集約フィールド
フィールドタイプがメトリック(数値)である場合、集約タイプを「制約なし集約」、あるいは「制約あり集約」に設定することかできます。
メトリック(数値)のフィールドが用途によって制限されている(ビジネスルールによってレポート上でのカラムの使用方法に条件が設けられている)場合、集約タイプは「制約あり集約」に設定されなければなりません。制約あり集約を選択すると、その詳細を設定するための「制約」というタブが新たに表示されます。
詳細については、集約フィールドへの制約を参照してください。
デフォルト集約
フィールドタイプがメトリック(数値)である場合、合計、平均などの集計形式を指定することができます。
これは、メトリック(数値)フィールドをレポートに使用する際に、自動的に指定された集計を行うものです。フィールドタイプが日付である場合には「個数」、「最大」、「最小」、その他のフィールドタイプの場合には、「合計」、「平均」、「個数」、「最大」、「最小」が選択できます。
詳細については、集計を参照してください。
色
Wiki Markup |
---|
{html}<iframe width="700" height="394" src="https://www.youtube.com/embed/8xO2P6VlpKU?color=white" frameborder="0" allowfullscreen></iframe>{html} |
When the field type is a metric you will be able to define a default colour to be applied in charts.
...
フィールドタイプがメトリック(数値)である場合、グラフで適用されるデフォルトの色を定義することができます。
色セットを使用する方法の詳細については、グラフの書式を参照してください。