You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

MDX Query to Populate Hierarchy Levels in Different Columns ON ROWS

Received Response
7
Views
1
Comments
edited Aug 2, 2018 2:42AM in Essbase 1 comment

Summary

MDX Query to Populate Hierarchy Levels in Different Columns ON ROWS

Content

I would like to know if there is a way to retrieve cube hierarchy's levels side by side ON ROWS using MDX query

i.e. I want the below query's resultset to be

||Level1|| Level 2||YEAR ||

|| Hello || World  || 2018

 

However, the resultset given is the following

||Level   ||YEAR ||

|| Hello  || 2018  ||

|| World || 2018  ||

 
Here is the MDX query

SELECT

{

([HierarchyName].Levels(1).Members)

,([HierarchyName].Levels(2).Members)

} ON ROWS

,

{

([Year])

} ON COLUMNS

FROM CUBE_NAME

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!