Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
zebhashmi
Specialist
Specialist

My Table has a loop reference

My Table has a loop reference

This question is Not Answered.(Mark as assumed answered)

Jahanzeb HashmiAce

IDFather nameName
1A
21B

By selecting 2 want to display its Father Name which is A in this Example.

1 Solution

Accepted Solutions
luismadriz
Specialist
Specialist

Hi,

Please see if this is what you're after

I hope it helps,

Untitled.png

View solution in original post

6 Replies
martinpohl
Partner - Master
Partner - Master

for that you need a hierarchy load

see help for more

Loading hierarchy data ‒ Qlik Sense

regards

mariusz_kumansk
Contributor III
Contributor III

loop.png

SampleData:

LOAD * Inline [

tmpID, tmpFatherName, tmpName

     1, , A

      2, 1, B

      3, 2, C

];



mapaFather:

Mapping LOAD

      tmpID,

      tmpName

Resident

      SampleData;


data:

LOAD

      tmpID as ID,

      ApplyMap('mapaFather', tmpFatherName) as FatherName,

      tmpName as Name

Resident

      SampleData;


DROP Tables SampleData;

mariusz_kumansk
Contributor III
Contributor III

or you can use hierarchy

zebhashmi
Specialist
Specialist
Author

Thank you but i can't do that in script as i have may felid in there want to do it in expression

Regards

JH

luismadriz
Specialist
Specialist

Hi,

Please see if this is what you're after

I hope it helps,

Untitled.png

zebhashmi
Specialist
Specialist
Author

Thank you very much!