Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Description:

This function is used to return the current tuple from a set during iteration.

Panel
panelIconIdatlassian-note
panelIcon:note:
bgColor#DEEBFF

Note

This function only works with sets that are named, either using a set alias or by defining a named set. Also, it is only valid during an iteration over a set.

Syntax:

Set_Expression.Current

Return Type:
TUPLE

Parameters:

Parameter

Description

Set_Expression

It is a valid MDX expression that returns a set.

Example:

Code Block
languagejava
with member [Measures].[Current] as 
([Product].[Hierarchy].[Product_Category].MEMBERS.current.item(0), 
[Measures].[Order_Quantity]) 
SELECT {[Measures].[Current],[Measures].[Sale_Amount]} on columns, 
[Product].[Hierarchy].[Product_Category] on rows 
from [Dell]