目前元組
Essbase 的 MDX CurrentTuple 函數會傳回集合中目前的元組。目前在查詢執行機制的相關資訊環境中指出。與反覆函數 (例如「篩選」) 一起使用。
語法
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 | 飲食 | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| East | 西部 | 南部省 | 中央區 | East | ... | 中央區 | East | 西部 | 南部省 | 中央區 |
| 27740 | 28306 | 16280 | 33808 | 23672 | ... | 33451 | 7919 | 36423 | 18676 | 42660 |