Note that there are some explanatory texts on larger screens.

plurals
  1. POMondrian | Parent Child Hierarchy is not working properly
    primarykey
    data
    text
    <p>I have created a dimension with parent-child hierarchy as follows - </p> <pre><code>&lt;Dimension type="StandardDimension" visible="true" foreignKey="ContextID" highCardinality="false" name="Learning Context"&gt; &lt;Hierarchy name="Learning Context Level" allMemberName="All Contexts" hasAll="true" primaryKey="ID"&gt; &lt;Table name="LearningContext"&gt; &lt;/Table&gt; &lt;Level name="ID" visible="true" column="ID" type="Numeric" uniqueMembers="true" levelType="Regular" hideMemberIf="Never" parentColumn="ParentID"&gt; &lt;/Level&gt; &lt;/Hierarchy&gt; &lt;/Dimension&gt; </code></pre> <p>The problem is, when i want to get the children of a child, then i have to put it's parents as well in the mdx query.</p> <p>For example -: I have a row with id 5, whose children i want to see. Now my mdx query is..</p> <pre><code>select Descendants([Learning Context.Learning Context Level].&amp;[5], [Learning Context.Learning Context Level].[ID], SELF_AND_AFTER) on 0 from StudentActivity </code></pre> <p>which says :</p> <pre><code>Mondrian Error:MDX object '[Learning Context.Learning Context Level].&amp;[5]' not found in cube 'StudentActivity' </code></pre> <p>But when i execute following query... it works fine.</p> <pre><code>select Descendants([Learning Context.Learning Context Level].&amp;[1].&amp;[2].&amp;[3].&amp;[5], [Learning Context.Learning Context Level].[ID], SELF_AND_AFTER) on 0 from StudentActivity </code></pre> <p>I do not want to use all the parents of a child to get its children.</p> <p>Please help me out.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload