Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Sv translation
languageen
Note
It is recommended to get familiar with dateAt and dateInterval function before proceeding with this tutorial.

Link relative ratio

Link relative ratio refers to comparison between the current data and data of the previous period, for example value of indicator before one month. This can be done in BellaDati with very simple formula:

Code Block
languagegroovy
dateAt('now'){M_NUMBER}/dateAt('now-1m'){M_NUMBER}

If you need to aggregate the value for a period of time, use this formula instead:

Code Block
languagegroovy
dateInterval(date('now-1d'), date('now')) {M_NUMBER }/
dateInterval(date('now-1d-1m'), date('now-1m')) {M_NUMBER }

Year-on-year Comparison

Year-on-year comparison is made between the results for a current period and the same period in the previous year. This can be done in BellaDati with very simple formula:

Code Block
languagegroovy
dateAt('now'){M_NUMBER }/dateAt('now-1y'){ M_NUMBER}

If you need to aggregate the value for a period of time, use this formula instead:

Code Block
languagegroovy
dateInterval(date('now-1d'), date('now')) {M_NUMBER }/
dateInterval(date('now-1d-1y'), date('now-1y')) {M_NUMBER }
Sv translation
languageja
Note

このチュートリアルに進む前に、dateAt dateInterval機能を十分参照することをお勧めします。

相対比のリンク

相対比のリンクは現在のデータと以前の期間、例えばインディケーター値の1ヶ月前、の比較を表します。これはBellaDatiで非常に単純なフォーミュラを使って行えます。

Code Block
languagegroovy
dateAt('now'){M_NUMBER}/dateAt('now-1m'){M_NUMBER}

ある期間の値を総計する必要がある場合、代わりにこのフォーミュラを使ってください:

Code Block
languagegroovy
dateInterval(date('now-1d'), date('now')) {M_NUMBER }/
dateInterval(date('now-1d-1m'), date('now-1m')) {M_NUMBER }

年度ごとの比較

年度ごとの比較は現在の期間と昨年の同期間の結果の比較です。これはBellaDatiで非常に単純なフォーミュラを使って行えます。

Code Block
languagegroovy
dateAt('now'){M_NUMBER }/dateAt('now-1y'){ M_NUMBER}

ある期間の値を総計する必要がある場合、代わりにこのフォーミュラを使ってください

Code Block
languagegroovy
dateInterval(date('now-1d'), date('now')) {M_NUMBER }/
dateInterval(date('now-1d-1y'), date('now-1y')) {M_NUMBER }