Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
mustafaelryah
Creator
Creator

Hierarchy Tree view was empty

dHello all,

I,m testing the tree view hierarchy with Family tree, I had excel sheet,

my columns is

name,
number,
level,
[Father number],

Gender

I made join function to get the father name  and it worked

then I create hierarchy function but shown empy

kindly find below here the code:

Person:

Hierarchy(number, [Father number], name,,Father_Name, TreeView) Load

     name,

     number,

     level,

     [Father number],

     Gender

FROM

(ooxml, embedded labels, table is Sheet1);

inner Join (Person)

LOAD name as Father_Name,

number as [Father number]

Resident Person;

--------------

kindly check the below view of the empty tree:

Screenshot 2016-10-24 11.36.30.png

kindly find the data details view:

Screenshot 2016-10-24 11.41.32.png

Waiting for your ideas to solve the empty TreeView

1 Solution

Accepted Solutions
Gysbert_Wassenaar

Try this:

Person:

Hierarchy(number, [Father number], name,Father_Name,name, TreeView) Load

     name,

     number,

     level,

     [Father number],

     Gender

FROM

(ooxml, embedded labels, table is Sheet1);


talk is cheap, supply exceeds demand

View solution in original post

3 Replies
Gysbert_Wassenaar

Try this:

Person:

Hierarchy(number, [Father number], name,Father_Name,name, TreeView) Load

     name,

     number,

     level,

     [Father number],

     Gender

FROM

(ooxml, embedded labels, table is Sheet1);


talk is cheap, supply exceeds demand
mustafaelryah
Creator
Creator
Author

worked successfully , kindly can you explain what happened ?

Anil_Babu_Samineni

Delete one Comma from there

Hierarchy(number, [Father number], name,Father_Name, TreeView) Load

Person:

Hierarchy(number, [Father number], name,Father_Name, TreeView) Load

     name,

     number,

     level,

     [Father number],

     Gender

FROM

(ooxml, embedded labels, table is Sheet1);

inner Join (Person)

LOAD name as Father_Name,

number as [Father number]

Resident Person;

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful