Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Removed translated content for 'cs'
Sv translation
languageen

Formulas and scripts are used to create calculated indicators from indicators inside of BellaDati dataset.

There are four types of indicators defined by formula:

  • Formula indicators defined on data set level. These are available in all reports based on this data set.
  • Formula indicators defined ad hoc on view level in each report. These are available only for the particular view and belong to the two subcathegories:
    • Additional formula defined indicators
    • Formulas on date/time axis

Creating Formulas

Note

Make sure that you are familiar with Displaying Indicators section prior proceeding with Formulas.

You can edit Formulas only of Calculated Indicators. To create Calculated Indicator:

  1. Go to Indicators Settings dialog.
  2. From the left drop-down menu, select New formula indicator
  3. Change name of the indicator by clicking on the existing name.
  4. Click on Indicator Settings.
  5. Create/edit formula in Formula window.
Info

Calculated indicators can be determined by calculator symbol next to indicator name.

 

 

Tip

You can leverage autocomplete or lists of availabe functions for rapid formula development.

 

 

See Formula Reference Guide for complete specification of available formulas.

Editing Formulas

Click on Indicator name in the report to open Indicator settings window.

 

Anchor
FormulaIndicatorEditor
FormulaIndicatorEditor

Formula indicator editor

 

Formula indicator editor provides you direct results of formula indicator in selected indicator. In order to access formula editor, select option Formula editor on Indicator settings dialogue window. Selecting of this option will open new tab of your browser where will be displayed formula indicator editor next to the selected visualisation. Select option Save to apply the formula indicator in the visualisation or option Report to redirect back to the report (updated formula will be applied in this report):

Anchor
DebuggingFormula
DebuggingFormula

DEBUGGING the FORMULAS (ADVANCED OPTION)

In case you need to use more advanced methods to debug your formula. You can use formula.log file, that is present in every BellaDati installation. Please note. You have to have BellaDati on-premise installation to access formula.log file. Path to log file is YOUR INSTALLATION DIRECTORY/logs/belladati/formula.logYOUR INSTALLATION DIRECTORY differs according the installation you have made. For Unix installations you can use less command to view the formula.log file.

Aggregation in Calculated Indicators

Notice that Indicators setting dialog of Calculated Indicator lacks specification of Members and Time aggregation.

This is because you can define it programatically in combination with additional functions.

Member aggregation can be defined by suffixing Indicator with:

  • @SUM for aggregation
  • @AVG for average
  • @MIN for minimum
  • @MAX for maximum
  • @MEDIAN for median
  • @DC for distinct count
Info

Example: use M_SALES@SUM to obtain Total Sales or M_PRICE@MIN to find the lowest price.

 

 

Visit Formula Reference Guide to learn more about aggregations in formulas.

Next Steps

Sv translation
languagesk

 

Note

Táto stránka je do Slovenčiny preložená len čiastočne!

Vzorce sú používané na vytvorenie vypočítaných (odvodených) ukazovateľov zo základných ukazovateľov v BellaDati. 

Existujú štyri typy vypočítaných ukazovateľov:

  • Vypočítané ukazovatele definované na úrovni skupiny dát. Tieto sú všetky dostupné v reportoch založených na danej skupine dát.
  • Vypočítané ukazovatele definované ad hoc na úrovni pohľadu v reporte. Tieto sú dostupné len pre daný pohľad a delia sa do dvoch kategórií:
    • Dodatočné ukazovatele definované vzorcom
    • Vzorce na časovej ose

Vytváranie vzorcov

Note

Predtým ako budete pokračovať so vzorcami sa uistite, že ste oboznámený s časťou zobrazovanie ukazovateľov.

Môžete upravovať vzorce len pri vypočítaných ukazovateľoch. Na vytvorenie vypočítaného ukazovateľa

  1. Prejdite na okno nastavení ukazovateľov
  2. Zadajte názov a kliknite na zelené plus vedľa poľa Nový ukazovateľrovide name and click on green plus button next to New Indicator input.
  3. Kliknite na Nastavenia ukazovateľa
  4. Vytvorte/upravet vzorec v novom okne
Info

Vypočítané ukazovatele sa dajú rozoznať podľa symbolu kalkulačky hneď vedľa ich názvu.

 

 

Tip

Môžete použiť autocomplete alebo zoznamy dostupných funkcií pre zrýchlenie tvorby vzorcov.

 

 

Pre bližšie informácie prejdite na sprievodcu tvorbou vzrocov.

Úprava vzorcov

Pre otvorenie okna Nastavenia ukazovateľa kliknite na názov ukazovateľa v reporte.

Aggregation in Calculated Indicators

Notice that Indicators setting dialog of Calculated Indicator lacks specification of Members and Time aggregation.

This is because you can define it programatically in combination with additional functions.

Member aggregation can be defined by suffixing Indicator with:

  • @SUM for aggregation
  • @AVG for average
  • @MIN for minimum
  • @MAX for maximum
  • @DC for distinct count
Info

Example: use M_SALES@SUM to obtain Total Sales or M_PRICE@MIN to find the lowest price.

Time aggregation can be defined by suffixing Indicator with:

  • @SUMT for aggregation in time
  • @AVGT for average in time
  • @MINT for minimum in time
  • @MAXT for maximum in time
  • @DCT for distinct count in time
Info

Example: use M_SALES@SUMT to obtain Total Sales in time or M_PRICE@MINT to find the lowest price in time.

Note

Memeber and Time aggreagation can be combined togeter.

Visit Formula Reference Guide to learn more about member and time aggregation in formulas.

Kam ďalej

Sv translation
languageja

数式とスクリプトを使用して、BellaDatiデータセット内のインジケータから計算インジケータを作成します。

数式によって定義されるインジケータには4種類あります:

  • データセットレベルで定義された数式インジケータ。これらはこのデータセットに基づくすべてのレポートで利用可能です。
  • 各レポートのビューレベルでアドホックに定義された数式インジケータ。これらは特定のビューのみで利用可能であり、2つのサブカテゴリーに属します:
    • 追加の数式定義のインジケータ
    • 日付/時間軸の数式

数式の作成

Note

数式に進む前に、Displaying Indicatorsセクションを十分参照してください。

計算インジケータ数式のみを編集できます。計算インジケータを作成するには:

  1. インジケータ設定ダイアログに進みます。
  2. 左側のドロップダウンメニューから、[新しい数式インジケータ]を選択します
  3. インジケータ設定をクリックします。
  4. 数式ウィンドウで数式を作成/編集します。
Info

計算インジケータは、インジケータ名の横にある計算機のマークによって特定されます。

 

 

Tip

迅速な数式開発のために、オートコンプリートや利用可能な関数のリストを活用することができます。

 

 

利用可能な数式の完全な仕様については、Formula Reference Guideをご覧下さい。

数式の編集

レポートのインジケータ名をクリックし、インジケータ設定ウィンドウを開きます。

 

Anchor
FormulaIndicatorEditor
FormulaIndicatorEditor

数式インジケータエディター

数式インジケータエディターは、選択したインジケータで数式インジケータの結果を直接提供します。数式エディターにアクセスするには、インジケータ設定ダイアログウィンドウで数式エディターオプションを選択します。このオプションを選択すると、ブラウザの新しいタブが開き、選択したビジュアライゼーションの横に数式インジケータエディターが表示されます。[保存]オプションを選択して、ビジュアライゼーションで数式インジケータを適用するか、レポートオプションを選択してレポートにリダイレクトします(更新された数式はこのレポートに適用されます):

Anchor
DebuggingFormula
DebuggingFormula

数式のデバッグ(高度なオプション)

より高度な方法を使用して数式をデバッグする必要がある場合、すべてのBellaDatiインストールに存在するformula.logファイルを使用できます。formula.logファイルにアクセスするには、BellaDatiオンプレミスのインストールが必要であることにご注意ください。ログファイルへのパスは、インストールディレクトリ/logs/belladati/formula.logです。インストールディレクトリは、行ったインストールによって異なります。Unixインストールでは、より少ないコマンドでformula.logファイルを閲覧することができます。

計算インジケータの集計

計算インジケータインジケータ設定ダイアログには、メンバー時間集計の指定がないことにご注意ください。

これは、追加機能と組み合わせてプログラムで定義できるためです。

メンバー集計は、以下をインジケータの末に付けることで定義できます:

  • @SUM (集計)
  • @AVG (平均)
  • @MIN (最小)
  • @MAX (最大)
  • @MEDIAN (中央値)
  • @DC (ディスティンクトカウント)
Info

例: 合計売上を取得するにはM_SALES@SUMを使用、最低価格を検索するにはM_PRICE@MINを使用します。

 

数式の集計についての詳細は、Formula Reference Guideをご覧下さい。

次に

Sv translation
languagede

Formeln und Skripts werden verwendet, um aus Indikatoren innerhalb des BellaDati-Datasets berechnete Indikatoren zu erstellen.

Es gibt vier Arten von Indikatoren, die durch die Formel definiert werden:

  • Auf Datasetebene definierte Formelindikatoren. Diese sind in allen Reports verfügbar, die auf diesem Dataset basieren.
  • In jedem Report wurden Ad-hoc-Indikatoren auf Ansichtsebene definiert. Diese sind nur für die jeweilige Ansicht verfügbar und gehören zu den beiden Unterkategorien:
    • Zusätzliche durch Formel definierte Indikatoren
    • Formeln auf Datums-/Zeitachse

Formeln erstellen

Note

Stellen Sie sicher, dass Sie mit dem Abschnitt Anzeigen von Indikatoren vertraut sind, bevor Sie mit Formeln fortfahren.

Sie können Formeln nur für berechnete Indikatoren bearbeiten. So erstellen Sie ein berechnete Indikatoren:

  1. Wechseln Sie in den Dialog Indikatoreinstellungen.
  2. Geben Sie den Namen ein und klicken Sie auf die grüne Plus-Schaltfläche neben dem Eintrag Neuer Indikator.
  3. Klicken Sie auf Indikatoreinstellungen..
  4. Formel im Formelfenster erstellen/bearbeiten.
Info

Berechnete Indikatoren können durch ein Rechnersymbol neben dem Indikatornamen ermittelt werden.

 

 

Tip

Sie können die automatische Vervollständigung oder Liste der verfügbaren Funktionen für die schnelle Formelentwicklung nutzen.

 

 

Die vollständige Beschreibung der verfügbaren Formeln finden Sie im Formula Reference Guide.

Formeln bearbeiten

Klicken Sie im Report auf Indikatorname, um das Fenster mit den Indikatoreinstellungen zu öffnen.

 

Anchor
FormulaIndicatorEditor
FormulaIndicatorEditor

Formel-Indikator-Editor

 

Der Formelindikator-Editor bietet Ihnen direkte Ergebnisse des Formelindikators im ausgewählten Indikator. Um auf den Formeleditor zuzugreifen, wählen Sie die Option Formeleditor im Dialogfenster Indikatoreinstellungen. Wenn Sie diese Option auswählen, wird eine neue Registerkarte Ihres Browsers geöffnet, in der der Formelindikator-Editor neben der ausgewählten Visualisierung angezeigt wird. Wählen Sie die Option Speichern, um das Formelkennzeichen in der Visualisierung anzuwenden, oder die Option Report, um zum Report zurückzukehren (aktualisierte Formel wird in diesem Report angewendet):

Anchor
DebuggingFormula
DebuggingFormula

FEHLERBEHEBUNG DER FORMELN (ADVANCED OPTION)

Für den Fall, dass Sie erweiterte Methoden zum Debuggen Ihrer Formel verwenden müssen. Sie können die formula.log-Datei verwenden, die in jeder BellaDati-Installation vorhanden ist. Bitte beachten Sie. Sie benötigen eine lokale Installation von BellaDati, um auf die formula.log-Datei zugreifen zu können. Der Pfad zur Protokolldatei ist IHR INSTALLATIONSVERZEICHNIS/logs/belladati/formula.log. IHR INSTALLATIONSVERZEICHNIS unterscheidet sich je nach der von Ihnen vorgenommenen Installation. Bei Unix-Installationen können Sie den Befehl less verwenden, um die Datei formula.log anzuzeigen.

Aggregation in berechneten Indikatoren

Beachten Sie, dass der Indikator-Einstellungsdialog des berechneten Indikators keine Angaben zu Werten und Zeitaggregation enthält.

Dies liegt daran, dass Sie es programmatisch in Kombination mit zusätzlichen Funktionen definieren können.

Die Aggregation der Werte kann durch Anhängen des Indikators definiert werden mit:

 

  • @SUM für die Aggregation
  • @ AVG für den Durchschnitt
  • @MIN für Minimum
  • @MAX für Maximum
  • @MEDIAN für den Median
  • @DC für eindeutige Zählung
Info

Beispiel: Verwenden Sie M_SALES@SUM, um Total Sales zu erhalten, oder M_PRICE@MIN, um den niedrigsten Preis zu ermitteln.

 

 

Im Formula Reference Guide erfahren Sie mehr über Aggregationen in Formeln.

Nächste Schritte