Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Management recursion. (Manejo de recursividad.)

Hi folks, good afternoon. I do this publication because I have to solve the following problem of recursion:

I have the following table:

IDFATHER
FA1604000000
B89601FA1604
74FB1F02FA1604
FA1605000000

and what I have to achieve is the following:

FATHERSON
FA1604B89601
FA160474FB1F02
FA1605000000

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:

IDPADRE
FA1604000000
B89601FA1604
74FB1F02FA1604
FA1605000000

y lo que yo tengo que lograr es lo siguiente:

PADREHIJO
FA1604B89601
FA160474FB1F02
FA1605000000

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).

Me podrían decir cómo se hace esto?

Saludos, Agustín.

0 Replies