Skip to content

Latest commit

 

History

History
50 lines (37 loc) · 1.13 KB

level-mdx.md

File metadata and controls

50 lines (37 loc) · 1.13 KB
title description author ms.author ms.reviewer ms.date ms.service ms.subservice ms.topic ms.custom
Level (MDX)
Level (MDX)
kfollis
kfollis
kfollis
02/17/2022
sql
analysis-services
reference
mdx

Level (MDX)

Returns the level of a member.

Syntax

  
Member_Expression.Level  

Arguments

Member_Expression
A valid Multidimensional Expression (MDX) that returns a member.

Examples

The following example uses the Level function to return all months in the Adventure Works cube.

SELECT[Date].[Fiscal].[Month].[February 2002].Level.Members ON 0,  
[Measures].[Internet Sales Amount] ON 1  
FROM [Adventure Works]  

The following example uses the Level function to return the name of the level for the All-Purpose Bike Stand in the Model Name attribute hierarchy in the Adventure Works cube.

WITH MEMBER Measures.x AS   
   [Product].[Model Name].[All-Purpose Bike Stand].Level.Name  
SELECT Measures.x ON 0  
FROM [Adventure Works]  

See Also

MDX Function Reference (MDX)