Not
Bu sayfaya erişim yetkilendirme gerektiriyor. Oturum açmayı veya dizinleri değiştirmeyi deneyebilirsiniz.
Bu sayfaya erişim yetkilendirme gerektiriyor. Dizinleri değiştirmeyi deneyebilirsiniz.
Bir tuple fonksiyonu, bir kümeden bir tuple alır veya bir tuple'ın string temsilini çözerek bir tuple alır.
Üye fonksiyonları ve küme fonksiyonları gibi tuple fonksiyonları, Analiz Hizmetlerinde bulunan çok boyutlu yapıların müzakere edilmesinde gereklidir.
MDX'te üç tuple fonksiyonu vardır: Current (MDX),Item (Tuple) (MDX) ve StrToTuple (MDX). Aşağıdaki örnek sorgu, her birinin nasıl kullanılacağını gösterir:
WITH
//Creates a set of tuples consisting of Years and Countries
SET MyTuples AS [Date].[Calendar Year].[Calendar Year].MEMBERS * [Customer].[Country].[Country].MEMBERS
//Returns a string representation of that set using the Current and Generate functions
MEMBER MEASURES.CURRENTDEMO AS GENERATE(MyTuples, TUPLETOSTR(MyTuples.CURRENT), ", ")
//Retrieves the fourth tuple from that set and displays it as a string
MEMBER MEASURES.ITEMDEMO AS TUPLETOSTR(MyTuples.ITEM(3))
//Creates a tuple consisting of the measure Internet Sales Amount and the country Australia from a string
MEMBER MEASURES.STRTOTUPLEDEMO AS STRTOTUPLE("([Measures].[Internet Sales Amount]" + ", [Customer].[Country].&[Australia])")
SELECT{MEASURES.CURRENTDEMO,MEASURES.ITEMDEMO,MEASURES.STRTOTUPLEDEMO} ON COLUMNS
FROM [Adventure Works]