CurrentTuple
EssbaseのMDX CurrentTuple関数は、セットの現在のタプルを返します。Currentは、問合せ実行方法のコンテキストで示されます。Filterなどの反復関数と組み合せて使用します。
構文
CurrentTuple ( set )または
set.Currentまたは
set.CurrentTuple例
次の例では、Salesデータが存在するすべてのProductとMarketの組合せを検索します。
WITH SET [NewSet]
AS 'CrossJoin([Product].Children, [Market].Children)'
SELECT
Filter([NewSet], NOT IsEmpty([NewSet].CurrentTuple))
ON COLUMNS
FROM Sample.Basic
WHERE
{[Sales]}この問合せが返すグリッドは次のとおりです。
表4-54 MDX例からの出力グリッド
| 100 | 200 | ... | 400 | Diet | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| East | West | South | Central | East | ... | Central | East | West | South | Central |
| 27740 | 28306 | 16280 | 33808 | 23672 | ... | 33451 | 7919 | 36423 | 18676 | 42660 |