Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Sv translation
languageen

Using ATTRIBUTE VALUES LOOPING functions

Info

This recommendation applies to functions eachMember(), membersSum(), membersAvg(), membersMin() and membersMax().

The common principle of these functions is iterating over the desired attribute values. E.g. eachMember('L_CITY') { ... } iterates over cities contained in the source data set. If there are N unique cities, the loop is executed N times. Depending on the hardware configuration, execution of one of these function is very demanding and affects the performance of the entire system if not used properly. The main criterion is how many times is the loop executed, in other words, how many unique entries does the chosen attribute have. According to our best practices and feedback from customers, the correct usage should follow this matrix:

Unique attribute valuesUsageExample
100.000KPI label, chart, table or map with up to 20 elements (time entries, attribute values).Table showing indicator with looping function for list of 20 cities.
20.000KPI label, chart, table or map with up to 100 elements (time entries, attribute values).Table showing indicator with looping function for list of 20 cities for 5 months.
5.000KPI label, chart, table or map with up to 500 elements (time entries, attribute values).Table showing indicator with looping function for list of 20 cities and 4 countries over 1 month.
1.000KPI label, chart, table or map with up to 2.000 elements (time entries, attribute values) Table showing indicator with looping function for list of 50 cities and 10 countries over 5 months.

The conclusion derived from the matrix above is, that these functions should be used in combination with maximum 100.000 unique attribute values. For larger amount of data users may want to use the BellaDati-R module, which is coming in Q2/2016.

Tip

For some use cases, consider using forEachRow() instead of looping functions.

Sv translation
languageja

アトリビュト値のルーピング機能の使用

Info

この推奨はeachMember(), membersSum(), membersAvg(), membersMin(), membersMax()の機能に適用されます。

これらの機能の共通項は希望のアトリビュト値で繰り返すことです。例えば、 eachMember('L_CITY') { ... } はソースデータセットに含まれる都市にまたがって繰り返されます。N個の固有の都市があった場合、繰り返しはN回実行されます。ハードウェア設定に応じて、これらの機能の1つの実行は非常に要求が厳しく、正しく使用されていない場合全システムのパフォーマンスに影響します。主要な判定基準は繰り返しの実行回数、つまりは、選択したアトリビュトが持っている固有のエントリーの数です。顧客からのベスト・プラクティスとフィードバックによると、正しい使用法はこのメトリックに従います:

固有のアトリビュト値使用法
100.00020までの要素(時刻入力、アトリビュト値)を持つKPIラベル、グラフ、表20都市のリストでの繰り返し機能を持つインディケーターの表
20.000100までの要素(時刻入力、アトリビュト値)を持つKPIラベル、グラフ、表20都市5ヶ月間のリストでの繰り返し機能を持つインディケーターの表
5.000500までの要素(時刻入力、アトリビュト値)を持つKPIラベル、グラフ、表4カ国20都市1ヶ月のリストでの繰り返し機能を持つインディケーターの表
1.0002000までの要素(時刻入力、アトリビュト値)を持つKPIラベル、グラフ、表10カ国50都市5ヶ月間のリストでの繰り返し機能を持つインディケーターの表

以上の行列から、これらの機能は最大100.000の固有のアトリビュト値の組み合わせで使われるべきであるという結論が導き出されます。より多くのデータを使うユーザーはQ2/2016に出されるBellaDati-R moduleをお使いください。

Tip

いくつかの場合では、ルーピング機能の代わりにforEachRow()の使用をご検討下さい。