<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to create Hierarchy from flat table structure in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-create-Hierarchy-from-flat-table-structure/m-p/241103#M91554</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;maybe i wasnt understood&lt;/P&gt;&lt;P&gt;i didnt mean to concat the values in an expression in the list box&lt;/P&gt;&lt;P&gt;i ment concat it already in the script&lt;/P&gt;&lt;P&gt;the it will be linked to the other records and you will be able to selct the lower levels&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Aug 2010 21:41:50 GMT</pubDate>
    <dc:creator>wizardo</dc:creator>
    <dc:date>2010-08-09T21:41:50Z</dc:date>
    <item>
      <title>How to create Hierarchy from flat table structure</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-Hierarchy-from-flat-table-structure/m-p/241094#M91545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hierarchy offered by QlikView seems to work with the fashion of NodeID-ParentID.&lt;/P&gt;&lt;P&gt;We are using flat table structure to define hierarchies. eg -&lt;/P&gt;&lt;P&gt;Product_Level_5,Product_level_4,Product_level_3,Product_level_2,Product_level_1&lt;/P&gt;&lt;P&gt;How do I load this data in "hierarchy" fashion? I am curious to use Tree View List box in QV 9.&lt;/P&gt;&lt;P&gt;I thought QlikView can show data in tree fashion if a "group" is attached to a listbox... But looks like the data itself has to be defined in hierarchical way during the load script..&lt;/P&gt;&lt;P&gt;Appreciate any help.... Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2010 20:17:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-Hierarchy-from-flat-table-structure/m-p/241094#M91545</guid>
      <dc:creator />
      <dc:date>2010-02-17T20:17:04Z</dc:date>
    </item>
    <item>
      <title>How to create Hierarchy from flat table structure</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-Hierarchy-from-flat-table-structure/m-p/241095#M91546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I suggest you just concatenate the fields with a "/" as separator&lt;/P&gt;&lt;P&gt;Then display the concatenated field in a list box&lt;/P&gt;&lt;P&gt;check the "show as treeview" property&lt;/P&gt;&lt;P&gt;Thats it&lt;/P&gt;&lt;P&gt;Pierre.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2010 22:13:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-Hierarchy-from-flat-table-structure/m-p/241095#M91546</guid>
      <dc:creator>pdumas</dc:creator>
      <dc:date>2010-02-17T22:13:44Z</dc:date>
    </item>
    <item>
      <title>How to create Hierarchy from flat table structure</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-Hierarchy-from-flat-table-structure/m-p/241096#M91547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Tree View breaks up any field by a given delimiter. So given a Field named "Product" with contents&lt;BR /&gt;"Sports, Winter, Outdoor, Skis"&lt;/P&gt;&lt;P&gt;Product would could be placed in a List Box with the delimiter set to " , " and displayed as a Tree View.&lt;/P&gt;&lt;P&gt;You can build the value of Product any number of ways. Hierarchy statements are only one way.&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2010 22:48:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-Hierarchy-from-flat-table-structure/m-p/241096#M91547</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2010-02-17T22:48:18Z</dc:date>
    </item>
    <item>
      <title>How to create Hierarchy from flat table structure</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-Hierarchy-from-flat-table-structure/m-p/241097#M91548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be I didnt understand completely.. but if I define a list box using expression such as - ProdctLevel5 &amp;amp; ", " &amp;amp; ProdctLevel4 &amp;amp; ", " ProdctLevel3 and use ", " as a delimiter then it shows the tree however any selection made inside tree wont affect other charts...&lt;/P&gt;&lt;P&gt;also selection made on other charts/tables should make corresponding selection in the tree...&lt;/P&gt;&lt;P&gt;can you please explain what am I missing here?!&lt;/P&gt;&lt;P&gt;thanks for your help..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2010 16:13:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-Hierarchy-from-flat-table-structure/m-p/241097#M91548</guid>
      <dc:creator />
      <dc:date>2010-02-19T16:13:16Z</dc:date>
    </item>
    <item>
      <title>How to create Hierarchy from flat table structure</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-Hierarchy-from-flat-table-structure/m-p/241098#M91549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bump!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2010 17:08:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-Hierarchy-from-flat-table-structure/m-p/241098#M91549</guid>
      <dc:creator />
      <dc:date>2010-02-23T17:08:39Z</dc:date>
    </item>
    <item>
      <title>How to create Hierarchy from flat table structure</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-Hierarchy-from-flat-table-structure/m-p/241099#M91550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Building the list as an listbox expression won't link to anything. I thought your rows already had the "product1, product2, ..." as keys. Could you post a bit of sample data or a qvw so we can understand what your data looks like?&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2010 20:13:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-Hierarchy-from-flat-table-structure/m-p/241099#M91550</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2010-02-23T20:13:23Z</dc:date>
    </item>
    <item>
      <title>How to create Hierarchy from flat table structure</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-Hierarchy-from-flat-table-structure/m-p/241100#M91551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any suggestions? I agree with nrbhattad. Simply using a list box and checking show tree view doesn't work the way intend a hierachy to work. There has to be a different way!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Aug 2010 21:36:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-Hierarchy-from-flat-table-structure/m-p/241100#M91551</guid>
      <dc:creator />
      <dc:date>2010-08-02T21:36:55Z</dc:date>
    </item>
    <item>
      <title>How to create Hierarchy from flat table structure</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-Hierarchy-from-flat-table-structure/m-p/241101#M91552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;qlikview takes the fashion of NodeID-ParentID.and by the use of the hirarchy statement creates the same flat table you already have&lt;/P&gt;&lt;P&gt;in addition to that it creates a field that contains the concatenated values of each row's individual new column&lt;/P&gt;&lt;P&gt;(Product_Level_5,Product_level_4,Product_level_3,Product_level_2,Product_level_1) and puts a delimiter in-between like this&lt;/P&gt;&lt;P&gt;Product_Level_5/Product_level_4/Product_level_3/Product_level_2/Product_level_1 this new field (default name it path) is the field you use in the new treebox&lt;/P&gt;&lt;P&gt;what you can do if you already have the flat table is to create the field yourself and use it in the treebox and then you will get the selections you want.&lt;/P&gt;&lt;P&gt;the trick with using a concatenated expression in the treebox enables you to create hierarchies on the fly with out first creating them in the script&lt;/P&gt;&lt;P&gt;Mansyno&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Aug 2010 22:47:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-Hierarchy-from-flat-table-structure/m-p/241101#M91552</guid>
      <dc:creator>wizardo</dc:creator>
      <dc:date>2010-08-02T22:47:41Z</dc:date>
    </item>
    <item>
      <title>How to create Hierarchy from flat table structure</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-Hierarchy-from-flat-table-structure/m-p/241102#M91553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Mansyno for your reply. I've already tried what you're suggesting. Not to repeat myself, unfortunately it doesn't work the way I intend it to work. I can see the tree structure. The way it works using hierarchy load is when you click on the parent, all its children are selected. However, with you're suggestion I cannot make use of that ability. In fact, I cannot make any selection from the list box.&lt;/P&gt;&lt;P&gt;If there is another way, please suggest. Thanks&lt;/P&gt;&lt;P&gt;Vishal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Aug 2010 20:25:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-Hierarchy-from-flat-table-structure/m-p/241102#M91553</guid>
      <dc:creator />
      <dc:date>2010-08-09T20:25:04Z</dc:date>
    </item>
    <item>
      <title>How to create Hierarchy from flat table structure</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-Hierarchy-from-flat-table-structure/m-p/241103#M91554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;maybe i wasnt understood&lt;/P&gt;&lt;P&gt;i didnt mean to concat the values in an expression in the list box&lt;/P&gt;&lt;P&gt;i ment concat it already in the script&lt;/P&gt;&lt;P&gt;the it will be linked to the other records and you will be able to selct the lower levels&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Aug 2010 21:41:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-Hierarchy-from-flat-table-structure/m-p/241103#M91554</guid>
      <dc:creator>wizardo</dc:creator>
      <dc:date>2010-08-09T21:41:50Z</dc:date>
    </item>
    <item>
      <title>How to create Hierarchy from flat table structure</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-Hierarchy-from-flat-table-structure/m-p/241104#M91555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe this should help&lt;/P&gt;&lt;P&gt;Please refer to the attached file. You should find a hierarchy table. I scripted what you've suggested. However, it doesn't accomplish what I'm expecting. In the example, I'm hoping that when I click on a continent like North America, I would expect everything under the umbrella of North America should be selected/associated. I don't seem to get that functionality. Why?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Aug 2010 15:56:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-Hierarchy-from-flat-table-structure/m-p/241104#M91555</guid>
      <dc:creator />
      <dc:date>2010-08-10T15:56:42Z</dc:date>
    </item>
    <item>
      <title>How to create Hierarchy from flat table structure</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-Hierarchy-from-flat-table-structure/m-p/241105#M91556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;you have to build a loop that you get that structur:&lt;/P&gt;&lt;P&gt;europe&lt;/P&gt;&lt;P&gt;europe/london&lt;/P&gt;&lt;P&gt;europe/london/roman&lt;/P&gt;&lt;P&gt;so for each level there has to be a row.&lt;/P&gt;&lt;P&gt;bye&lt;/P&gt;&lt;P&gt;Roman&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Sep 2010 13:41:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-Hierarchy-from-flat-table-structure/m-p/241105#M91556</guid>
      <dc:creator />
      <dc:date>2010-09-09T13:41:04Z</dc:date>
    </item>
    <item>
      <title>How to create Hierarchy from flat table structure</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-Hierarchy-from-flat-table-structure/m-p/241106#M91557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have make excelsheet of excelsheet of hierarchy and connect it with data modelling .&lt;/P&gt;&lt;P&gt;Some ERP tool maintaining this type of hierarchy in that manner.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Sep 2010 13:44:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-Hierarchy-from-flat-table-structure/m-p/241106#M91557</guid>
      <dc:creator>suniljain</dc:creator>
      <dc:date>2010-09-09T13:44:47Z</dc:date>
    </item>
    <item>
      <title>How to create Hierarchy from flat table structure</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-Hierarchy-from-flat-table-structure/m-p/241107#M91558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like this:&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/2330.hierachy.jpg"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/2330.hierachy.jpg" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Sep 2010 13:46:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-Hierarchy-from-flat-table-structure/m-p/241107#M91558</guid>
      <dc:creator />
      <dc:date>2010-09-09T13:46:11Z</dc:date>
    </item>
    <item>
      <title>How to create Hierarchy from flat table structure</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-Hierarchy-from-flat-table-structure/m-p/241108#M91559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Today I came across the same problem as you have originally described, however mine was in relation to a customer hierarchy, not a product. In any case, the solution would be the same.&lt;/P&gt;&lt;P&gt;Basically what you need to do is rebuild the parent/child relationship so you can then load using the hierarchy load feature. To do this, I loop through all the possible levels of the hierarchy and create the parent/child relationship between each node. I use distinct to ensure I do not duplicate:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;FOR iLevel = 1 TO 9;&lt;BR /&gt; LET iChildLevel = $(iLevel) + 1;&lt;BR /&gt; TEMP_HIER_TABLE:&lt;BR /&gt; LOAD DISTINCT&lt;BR /&gt; CUST_CODE_$(iLevel) as PARENT_CUST_CODE,&lt;BR /&gt; CUST_CODE_$(iChildLevel) as CHILD_CUST_CODE&lt;BR /&gt; RESIDENT STANDARD_HIER&lt;BR /&gt; WHERE Not IsNull(CUST_CODE_$(iChildLevel));&lt;BR /&gt;NEXT iLevel;&lt;BR /&gt;LEFT JOIN (TEMP_HIER_TABLE)&lt;BR /&gt;LOAD CUST_CODE as CHILD_CUST_CODE,&lt;BR /&gt; CUST_NAME as CHILD_CUST_NAME&lt;BR /&gt;RESIDENT CUSTOMER;&lt;BR /&gt;HIER_TABLE:&lt;BR /&gt;HIERARCHY (CHILD_CUST_CODE, PARENT_CUST_CODE, CHILD_CUST_NAME, PARENT_CUST_NAME, CHILD_CUST_NAME, HIER_PATH, '-')&lt;BR /&gt;LOAD CHILD_CUST_CODE,&lt;BR /&gt; PARENT_CUST_CODE,&lt;BR /&gt; CHILD_CUST_NAME,&lt;BR /&gt; CHILD_CUST_CODE AS CUST_CODE&lt;BR /&gt;RESIDENT TEMP_HIER_TABLE;&lt;BR /&gt;DROP TABLE TEMP_HIER_TABLE;&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;The STANDARD_HIER table just stores the levels of the hierarchy.&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Dec 2010 05:14:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-Hierarchy-from-flat-table-structure/m-p/241108#M91559</guid>
      <dc:creator />
      <dc:date>2010-12-08T05:14:28Z</dc:date>
    </item>
  </channel>
</rss>

