I have an OLAP Basically there is a dimension that has parent-child relationship. So the dimension has a parent-id and a child-id.
There is a fact table that exists that has the child-id. I would like to get data for a child and all its given children when I provide the parent id.
How could I achieve this in a MDX query ?
<Dimension foreignKey="child_id" name="SUPPLIER">
<Hierarchy hasAll="true" allMemberName="all" allMemberCaption="all" primaryKey="child_id" >
<Table name="suppliers">
</Table>
<Level name="SUPPLIER_L" column="child_id" nameColumn="child_id" parentColumn="parent_id"
uniqueMembers="true" levelType="Regular" hideMemberIf="Never" >
</Level>
</Hierarchy>
</Dimension>
I have my dimension where this hierarchy occurs.