Parent-Child dimension is a type of dimension that I did not know before (yes we can not know everything ☻), but I had the opportunity to use it within the framework of a project on which I worked; suddenly, I said to myself that it will be a good idea to share with you what I learned about this dimension.
In order to better explain how to create this type of dimension and the options, you need to understand the context of the example which is part of this article.
I have a dimension table called DimFamily in the Data warehouse, a table that contains the list of families (categories) of a product organized in a descending hierarchy and is defined in this way :
Indeed, creating our Parent-Child dimension is based on two columns FamilyId and FamilyParentId, FamilyId is the key that identifies each member, and the FamilyParentId column called parent key column identifies the parent of each member, together define the parent-child relationship between the members of the dimension.
Now moving on to the Cube part (SSAS), we start by creating the table in the DSV:
It should be noted that the relationship between the two DataColumns is source=FamilyParentId and Destination=FamilyId.
Then, creating the dimension from the dsv, BIDS automatically detects that the usage property of FamilyParentId is in Parent.
After the dimension process, here is the result:
We can see that families without parents have a higher level.
To go further in this subject, we will address in the second part of this article the properties of the dimension Parent-Child, So go here.
One thought on "The Parent / Child dimension - part 1"
Your means of explaining all in the article iis in fɑct good,
It is easy to understaqnd it, Thnks ɑ lot.