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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
danialier
Creator III
Creator III

Hierarchy in a List Box

Hello,

I have a List Box as follows:

A

B1

B2

C

D1

D2

D3

E

I want the list box to show a hierarchy as follows:

A

B (must be the sum of B1 and B2)

    B1

    B2

C

D (must be the sum of D1 and D2 and D3)

    D1

    D2

    D3

E

How I can do that ?

Thanks,

dani

1 Reply
Nicole-Smith

First you need a hierarchy load like the following:

OrgHierarchy:

Hierarchy (HierarchyOrgId, HierarchyOrgParentOrgId, HierarchyOrgName, ,  HierarchyOrgName, OrgTreeView)

LOAD OrgId as HierarchyOrgId,

    ParentOrgId as HierarchyOrgParentOrgId,

    Org as HierarchyOrgName,

    OrgId

RESIDENT OrgTable;

Then you can use the OrgTreeView field in a list box and choose to Show as TreeView: