Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
CasperQlik
Creator
Creator

Generate "child" column in data model

Hi QlikCommunity


I need help expanding my data model.

I have a data structure like this:

noteID parentID
1  
2 1
2 7
2 4
3 2
3 8
4 1

 

I consists of nodes and "parent" nodes. It is a fairly simple structure that depicts the relationship between nodes. Nodes can have either no, one or multiple parents.

I need a new field that contains the Id of any child nodes. Essentially as this table here:

noteID parentID chidID
1   2
1   4
2 1 3
2 7 3
2 4 3
3 2  
3 8  
4 1 2

This way it is visible which "parents" a node has and a nodes "children". 

Any help is appreciated

//Casper

1 Solution

Accepted Solutions
steeefan
Luminary
Luminary

3 Replies
steeefan
Luminary
Luminary

Have you tried using Hierarchy or HierarchyBelongsTo?

CasperQlik
Creator
Creator
Author

I found a solution with a mix of the two. Thank you.

Ahidhar
Creator III
Creator III

Could you share the solution