Hi folks, good afternoon. I do this publication because I have to solve the following problem of recursion:
I have the following table:
ID
FATHER
FA1604
000000
B89601
FA1604
74FB1F02
FA1604
FA1605
000000
and what I have to achieve is the following:
FATHER
SON
FA1604
B89601
FA1604
74FB1F02
FA1605
000000
Ie generate a PARENT column where only the ID you have children or no children (ie having their value in 000000 and thus would be parents) and also generate a SON column, where the / the child appear to appear / s of that parent. There any way to do it using the Hierarchy or HierarchyBelongsTo function? Because according to what I saw, I ask me the name of the node (which would make the description of ID but I have not, nor can invent).
I could tell how this is done?
Greetings, Augustine.
Translated with Google Translate - Qlik Community Administrative Team
Hola gente, buenas tardes. Hago esta publicación porque tengo que resolver el siguiente problema de recursividad:
Tengo la siguiente tabla:
ID
PADRE
FA1604
000000
B89601
FA1604
74FB1F02
FA1604
FA1605
000000
y lo que yo tengo que lograr es lo siguiente:
PADRE
HIJO
FA1604
B89601
FA1604
74FB1F02
FA1605
000000
Es decir, generar una columna PADRE donde solo aparezcan los ID que tienen hijos o que no tienen hijos (es decir que tienen su valor en 000000 y por lo tanto serian padres) y también generar una columna HIJO, donde aparezca el/los hijo/s de ese padre. Hay alguna forma de hacerlo usando la función Hierarchy o HierarchyBelongsTo? Porque según lo que vi, me pide el nombre del nodo (que vendría hacer la descripción del ID pero yo no la tengo, ni tampoco puedo inventarla).