Page History
Sv translation | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||
CrossValue function is used to access Indicators from other Data Sets. It receives two parameters:
Following example returns Students count from Results data set.
Cross Reference with and without Drill-downWhen cross-referencing values, BellaDati does take in consideration applied drill-downs. That means both data sets need to have the same attribute (same code) and same members. To display value without drill-down, use the cross value in combination with the function withoutDrillDown. That will display same value for each member.
In some cases the members might be the same but the attribute code might be different. In that case you need to explicitelly tell BellaDati, which attribute from the referenced data set should be used. You can achieve this by specifying memberIdentifier as second parameter of crossValue functions. You need to construct you own string with memberValue.
In this example L_COUNTRY_REF is the code of attribute in referenced data set and memberValue is value of current member (name of country).
Cross Reference with FilterBellaDati also does not take in consideration filters applied throught view settings. Therefore, you need to explicitelly tell BellaDati in formula definition which filters and how do you want to use them.
Filter can be defined also directly inside the crossValue function:
Multiple conditions can be combined by using the plus sign:
Cross Reference with DateWhen filtering date, date attribute must be in format 'yyyy-MM-dd'.
filtered date can also defined inside the crossValue function:
You can find more about filters and their combinations in Filtering in Formulas. Next Steps
crossValue('CROSS', '[L_ATT1="aaa"]'+'[L_ATT2="bbb"]','M_CROSS') |
Sv translation | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||
CrossValue機能は他のデータセットからインディケーターにアクセスするときに使用されます。 2つのパラメーターを受け取ります:
以下の例は結果データセットから生徒数を返却します。
他所参照、ドリルダウンの有無値を他所参照する際、BellaDatiは適用したドリルダウンを考慮します。つまりは、両方のデータセットは同じアトリビュト(同じコード)と同じメンバーでなくてはいけません。 ドリルダウンなしで値を表示するには、withoutDrillDown機能との組み合わせでクロス値を使用してください。これでそれぞれのメンバーに同じ値が表示されます。
メンバーが同じであってもアトリビュトコードが異なる場合があります。この場合BellaDatiに、参照データセットのどのアトリビュトを使用するかを明確に伝えてください。 以上の工程はcrossValue機能の2番目のパラメーターとしてmemberIdentifierを特定することで実行できます。ユーザー自身がmemberValueで自身のストリングを構成する必要があります。
この例では、L_COUNTRY_REFは参照データセットのアトリビュトコードで、memberValueは現在のメンバー(国名)の値です。
フィルターで他所参照BellaDatiはビュー設定を通して適用したフィルターを考慮しません。 それゆえ、BellaDatiにフォーミュラ定義において、どのフィルターおどのように使いたいかを明確に伝える必要があります。
日付を用いた他所参照日付を絞り込む場合、日付アトリビュトは'yyyy-MM-dd'形式でなくてはいけません。
絞り込まれた日付はcrossValue機能内でも定義できます:
フィルターとその組み合わせに関するさらなる詳細は、フォーミュラでの絞込みをご覧下さい。 次に |