Quantcast
Channel: Pentaho Community Forums
Viewing all articles
Browse latest Browse all 16689

Level required in MDX set expression to reference member in hierarchy

$
0
0
Looking for help with understanding syntax in Mondrian 4.x.

I have a hierarchy with two levels, Customer and Item. I have turned off the 'all' level with hasAll="false":

Code:

<Hierarchy hasAll="false">
  <Level attributes="Customer"/>
  <Level attributes="Item"/>
</Hierarchy>

If I want to get all of the items under a particular customer, I have to do something like {[Dimension].[Hierarchy].[Customer].&[1234].children}

Why do I need the level in the expression? Since Customer is the first level why can't I just do [Dimension].[Hierarchy].&[1234]?

For comparison, in SSAS I don't need to list the level - I can do [Dimension].[Hierarchy].&[1234], e.g., [Customer].[Customer Geography].[Canada] in the AdventureWorks cube.

Viewing all articles
Browse latest Browse all 16689

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>