NTile
セット内のタプルの除算番号を返します。 この関数は、集約ストレージ・データベースにのみ適用されます。
構文
NTile ( member_or_tuple, set, number_of_divisions, numeric_value_expr )
パラメータ
ノート
-
この関数は、集約ストレージ・データベースにのみ適用できます。
-
この関数は、数値でセットを順序付けし、nの等分割に分割して、指定されたタプルが含まれる除算番号を返します。
例
WITH
MEMBER [Measures].[7tile] AS
'Ntile
([Measures].[Price Paid],
{ [Products].Levels(0).Members },
7,
[Measures].[Price Paid]
)'
SELECT
{ [Measures].[Price Paid], [Measures].[7tile] } on columns,
{ [Products].Levels(0).Members } on rows
FROM ASOSamp.Sample