CURRENTORDINAL

CURRENTORDINAL

This documentation is for Kyvos 2026.2.x. To view documentation for other Kyvos versions, click here.

This documentation is for Kyvos 2026.2.x. To view documentation for other Kyvos versions, click here.

Description:

This function is used to return the current iteration number within a set during iteration.

Syntax:

Set_Expression.CurrentOrdinal

Return Type:
SCALAR

Parameters:

Parameter

Description

Parameter

Description

Set_Expression

It is a valid MDX expression that returns a set.

Example:

WITH SET MySet AS [Customer].[Geography].[Country].MEMBERS MEMBER [Measures].[Average RateM] AS MySet.CURRENTORDINAL SELECT [Measures].[Average RateM] ON 0 FROM [AdventureWorksMF]

Copyright Kyvos, Inc. 2026. All rights reserved.