TOPPERCENT

TOPPERCENT

Description:

This function is used to sort a set in a descending order, and return a set of tuples with the highest values whose cumulative total is equal to or greater than a specified percentage.

Syntax:

TopPercent(Set_Expression, Percentage, Numeric_Expression)

Return type:

SET

Parameters:

Parameter

Description

Parameter

Description

Set_Expression

It is a valid MDX expression that returns a set.

Percentage

It is a valid numeric expression that specifies the percentage of tuples to be returned.

Numeric_Expression

It is a valid numeric expression, typically an MDX expression of cell coordinates that returns a number.

Example:

SELECT {[Measures].[Internet Average Sales Amount]} ON 0, TOPPERCENT( [Product].[Product Categories].[Product].MEMBERS ,20, [Measures].[Internet Sales Amount]) ON 1 FROM [AdventureWorksMF]

Copyright Kyvos, Inc. 2026. All rights reserved.