Qlik Community

QlikView Creating Analytics

Discussion Board for collaboration related to Creating Analytics for QlikView.

stefan_fischer
New Contributor II

View a hierarchy in a listbox to control a diagram

Hi, can the field location be represented in a structure? So, HQ marks all fields below. CI pretends, Concord ' and, Karlsruhe ' and HQ should be not selected any more. If Concord is selected, CI is selected, if ‘Concord ' and, Karlsruhe ' is selected, then CI is selected. Can the choice be indicated in the diagram or in an additional box?

HQ    

     CI

          Concord          
          Karlsruhe    

     PA         

          Bartelsville

Regards Stefan

4 Replies
Not applicable

Re: View a hierarchy in a listbox to control a diagram

Hi Stefan,

To achieve this, you need to use the keywords "Hierarchy" or "HierarchyBelongsTo" in the script as prefix to load or select statement and then you can use the option "Show as Tree View" from the properties of list box (it is available in General tab)

Listbox1.bmp

Hope this helps!

stefan_fischer
New Contributor II

Re: View a hierarchy in a listbox to control a diagram

Hi, not really. Have you any idea what is wrong in my script?

NccStructure:

Hierarchy (structure_id, structure1, location_id1, location, abbreviation1, location_class1,'/')

Load structure_id,      

     structure as structure1,      

     location_id as location_id1,     

     location  as location      

     abbreviation as abbreviation1,     

     location_class as location_class1

Resident NCC_Data;

Not applicable

Re: View a hierarchy in a listbox to control a diagram

Hi Stefan,

Syntax wise : There is comma missing after location.

Otherwise, looks good to me as long as the fields satisfy the criteria of the parameters of Hierarchy. (You can refer t the Help in Qlikview).

MVP
MVP

Re: View a hierarchy in a listbox to control a diagram

Hello Stefan,

I have worked out and found. Hope this helps you. PFA.

Community Browser