<?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 Re: Working with hierarchies in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Working-with-hierarchies/m-p/873878#M1004338</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can link your &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Jerarquia_pais2&lt;/SPAN&gt; hierarchybelongsto table with another table created with the hierarchy function. See the Treebridge and Trees table in the attached example. The Trees table contains a Treepath field that is used in a listbox to select a district. In the pivot table this district and the underlying districts are shown.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note, there's also a way to select entire subtrees without a hierarchybelongsto table. First collapse the parent of the subtree you want to select and then select the parent node of that subtree. If you then expand it you'll see that the nodes below it are also selected. If you expand the node first and then select it only the node itself will be selected.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="86758" alt="comm164279.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/86758_comm164279.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 17 May 2015 06:06:52 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2015-05-17T06:06:52Z</dc:date>
    <item>
      <title>Working with hierarchies</title>
      <link>https://community.qlik.com/t5/QlikView/Working-with-hierarchies/m-p/873874#M1004334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a hierarchie (geo type) in Qlickview:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the file:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="jerar1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/86753_jerar1.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ans this is the script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jerarquia_pais:&lt;/P&gt;&lt;P&gt;Hierarchy(cod_geo, cod_padre, desc_geo, desc_padre, desc_geo, jerarquia_geografica , '|', profundidad) LOAD&lt;/P&gt;&lt;P&gt;cod_geo,&lt;/P&gt;&lt;P&gt;cod_padre,&lt;/P&gt;&lt;P&gt;desc_geo&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Hoja1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I have a listbox with the hierarchie working properly:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="jerar2.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/86754_jerar2.png" style="height: 173px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the fact table is at low level of the hierarchie (ciudad).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I can only select in the listbox al&amp;nbsp; the low level (ciudad), is there anyway of selectiong at a higer level (pais)?,&amp;nbsp; and filtering that rows in the chart (see only data of this selected level)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for examploe: select España and see data of: Madrid, Sevilla, Valencia, Zaragoza...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 May 2015 14:58:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Working-with-hierarchies/m-p/873874#M1004334</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-16T14:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: Working with hierarchies</title>
      <link>https://community.qlik.com/t5/QlikView/Working-with-hierarchies/m-p/873875#M1004335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you're looking for the HierarchyBelongsTo function instead of the Hierarchy function. You can find an explanation in this blog post: &lt;A _jive_internal="true" class="font-color-normal" href="https://community.qlik.com/blogs/qlikviewdesignblog/2013/11/11/unbalanced-n-level-hierarchies" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3d3d3d;"&gt;Unbalanced, n-level hierarchies&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 May 2015 15:28:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Working-with-hierarchies/m-p/873875#M1004335</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-05-16T15:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: Working with hierarchies</title>
      <link>https://community.qlik.com/t5/QlikView/Working-with-hierarchies/m-p/873876#M1004336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Gyspert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I have created a HierarchyBelongsto.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jerarquia_pais2:&lt;/P&gt;&lt;P&gt;HierarchyBelongsto (cod_geo, cod_padre, desc_geo, cod_padre, desc_padre, nivel)&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;cod_geo,&lt;/P&gt;&lt;P&gt;cod_padre,&lt;/P&gt;&lt;P&gt;desc_geo&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Hoja1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem now: how can I make a listbox od treeview typw with this hierarchy??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I needd, something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="jerar3.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/86756_jerar3.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 May 2015 18:00:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Working-with-hierarchies/m-p/873876#M1004336</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-16T18:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: Working with hierarchies</title>
      <link>https://community.qlik.com/t5/QlikView/Working-with-hierarchies/m-p/873877#M1004337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a clipping from &lt;A href="https://community.qlik.com/qlik-users/4003"&gt;Henric Cronström&lt;/A&gt;'s excellent article about &lt;A href="https://community.qlik.com/docs/DOC-5334"&gt;Hierarchies&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;that shows probably what you are looking for. You need to have a Path with some kind of separator which you can specify - like for instance a /&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2015-05-16 #1.PNG" class="jive-image image-1" src="/legacyfs/online/86762_2015-05-16 #1.PNG" style="height: 441px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 May 2015 21:41:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Working-with-hierarchies/m-p/873877#M1004337</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2015-05-16T21:41:39Z</dc:date>
    </item>
    <item>
      <title>Re: Working with hierarchies</title>
      <link>https://community.qlik.com/t5/QlikView/Working-with-hierarchies/m-p/873878#M1004338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can link your &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Jerarquia_pais2&lt;/SPAN&gt; hierarchybelongsto table with another table created with the hierarchy function. See the Treebridge and Trees table in the attached example. The Trees table contains a Treepath field that is used in a listbox to select a district. In the pivot table this district and the underlying districts are shown.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note, there's also a way to select entire subtrees without a hierarchybelongsto table. First collapse the parent of the subtree you want to select and then select the parent node of that subtree. If you then expand it you'll see that the nodes below it are also selected. If you expand the node first and then select it only the node itself will be selected.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="86758" alt="comm164279.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/86758_comm164279.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 May 2015 06:06:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Working-with-hierarchies/m-p/873878#M1004338</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-05-17T06:06:52Z</dc:date>
    </item>
  </channel>
</rss>

