--- title: "CalculationCurrentPass (MDX) | Microsoft Docs" ms.date: 06/04/2018 ms.prod: sql ms.technology: analysis-services ms.custom: mdx ms.topic: reference ms.author: owend ms.reviewer: owend author: minewiskan --- # CalculationCurrentPass (MDX) Returns the current calculation pass of a cube for the specified query context. ## Syntax ``` CalculationCurrentPass() ``` ## Remarks The **CalculationCurrentPass** function returns the zero-based index of the calculation pass for the current query context. With automatic recursion resolution, this function has little practical use. ## See Also [CalculationPassValue (MDX)](../mdx/calculationpassvalue-mdx.md) [IIf (MDX)](../mdx/iif-mdx.md) [MDX Function Reference (MDX)](../mdx/mdx-function-reference-mdx.md)