Though the code links to be simple it is little confusing some times. So I request experts here who has extensively worked on hierarchy to help me on this with some simple example.
Frankly QlikView help is not at all good enough for the new comers to understand the things and start working. Most of them were able to manage it only because of the Qlik Community or else it would have been very difficult to manage the things.
Maybe, this will help. This is something I through together back when I did training. It is easy to understand because it is based on a family tree. I hope this is what you ate looking for.