<?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: Hierarchy function - tree view how to in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Hierarchy-function-tree-view-how-to/m-p/578972#M215285</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use This On ...Better Than Other&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TEST1:&lt;/P&gt;&lt;P&gt;LOAD Distinct&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; '0' as ParentID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Region_Name AS Value,&lt;/P&gt;&lt;P&gt;AutoNumber('P-'&amp;amp;Region_Name) as [S-num] FROM UserDim.xls (biff, embedded labels, table is Sheet2$);&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TEST2:&lt;/P&gt;&lt;P&gt;LOAD Distinct&lt;/P&gt;&lt;P&gt;AutoNumber('P-'&amp;amp;Region_Name) as ParentID,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Region_Name AS Value,&lt;/P&gt;&lt;P&gt;&amp;nbsp; AutoNumber('C-'&amp;amp;Region_Name) as [S-num] FROM UserDim.xls (biff, embedded labels, table is Sheet2$);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TEST3:&lt;/P&gt;&lt;P&gt;LOAD Distinct&lt;/P&gt;&lt;P&gt;AutoNumber('C-'&amp;amp;Region_Name) as ParentID,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[MIS Line Item] AS Value,&lt;/P&gt;&lt;P&gt;&amp;nbsp; AutoNumber('C1-'&amp;amp;Region_Name) as [S-num] FROM UserDim.xls (biff, embedded labels, table is Sheet2$);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Apr 2014 11:12:31 GMT</pubDate>
    <dc:creator>arjunkrishnan</dc:creator>
    <dc:date>2014-04-02T11:12:31Z</dc:date>
    <item>
      <title>Hierarchy function - tree view how to</title>
      <link>https://community.qlik.com/t5/QlikView/Hierarchy-function-tree-view-how-to/m-p/578966#M215279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;I didn’t understand how to use Hierarchy function. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to create a Hierarchy tree view (in order to use it as a filter) by using &lt;STRONG style="text-decoration: underline;"&gt;only&lt;/STRONG&gt; the first three&lt;/P&gt;&lt;P&gt;fields: Region, SubRegion and Country. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All the examples I saw in the forum used the Hierarchy function when they have two rows: ID and Parent.&lt;BR /&gt; and didn’t refer the when you have horizontal Hierarchy (when each column is node).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found another way to do it but the problem is when the sub node is &lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d; background: white;"&gt;expanded&lt;/SPAN&gt; I get nothing only when&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d; background: white;"&gt;It Collapsed &lt;/SPAN&gt; .- see attached&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Mar 2014 07:20:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hierarchy-function-tree-view-how-to/m-p/578966#M215279</guid>
      <dc:creator />
      <dc:date>2014-03-31T07:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: Hierarchy function - tree view how to</title>
      <link>https://community.qlik.com/t5/QlikView/Hierarchy-function-tree-view-how-to/m-p/578967#M215280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The hierarchy prefix is designed to resolve an adjacent nodes table, i.e. a table where each record corresponds to a node and has a reference to its parent. You do not have an adjacent nodes table. But your solution with three Load statements - one for each level - to create the path for the tree-view list box is the proper way to load a horizontal hierarchy. See more on &lt;A href="https://community.qlik.com/docs/DOC-5334"&gt;Hierarchies&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The second question is about the behaviour of the tree-view list box: If you make a selection on a collapsed node, you select the entire sub-tree. But if you make a selection on an expanded node, you will select this node only. And that is how the tree view list box is designed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want a selection on&amp;nbsp; a node to link to the entire sub-tree, you should build this logic into the data model - you should create a Tree table. See more on &lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2013/11/11/unbalanced-n-level-hierarchies"&gt;Unbalanced hierarchies&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Mar 2014 07:35:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hierarchy-function-tree-view-how-to/m-p/578967#M215280</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2014-03-31T07:35:09Z</dc:date>
    </item>
    <item>
      <title>Re: Hierarchy function - tree view how to</title>
      <link>https://community.qlik.com/t5/QlikView/Hierarchy-function-tree-view-how-to/m-p/578968#M215281</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 wrote this question after i reading your blog&amp;nbsp; and the &lt;A _jive_internal="true" href="https://community.qlik.com/servlet/JiveServlet/download/5334-4-81955/Hierarchies.pdf" style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3778c7; background-color: #fdfdfd;"&gt;Hierarchies.pdf&lt;/A&gt; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;and download the &lt;A _jive_internal="true" href="https://community.qlik.com/servlet/JiveServlet/download/5334-4-80015/Winedistricts.qvs" style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3778c7; background-color: #fdfdfd;"&gt;Winedistricts&amp;nbsp; files &lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i probably missing something&amp;nbsp; because i still&amp;nbsp; don't understand , how to take the &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;horizontal hierarchy&lt;/SPAN&gt; and&lt;/P&gt;&lt;P&gt;create &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Tree table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you can just give me a lead regarding my files maybe i would understand better .&lt;/P&gt;&lt;P&gt;thank you &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Mar 2014 07:58:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hierarchy-function-tree-view-how-to/m-p/578968#M215281</guid>
      <dc:creator />
      <dc:date>2014-03-31T07:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: Hierarchy function - tree view how to</title>
      <link>https://community.qlik.com/t5/QlikView/Hierarchy-function-tree-view-how-to/m-p/578969#M215282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you use the Trees table, you need to link this with your data using a HierarchyBelongsTo that creates all combinations between an ancestor and a node. Hence, you need your data as an Adjacent Nodes table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you load your data using the following lines, you will get an adjacent nodes table that you can use in subsequent Loads:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AdjacentNodes: &lt;/P&gt;&lt;P&gt;LOAD distinct &lt;/P&gt;&lt;P&gt;&amp;nbsp; 'Region:' &amp;amp; Region_Name as NodeID, Null() as ParentID &lt;/P&gt;&lt;P&gt;&amp;nbsp; FROM UserDim.xls (biff, embedded labels, table is Sheet2$);&lt;/P&gt;&lt;P&gt;LOAD distinct &lt;/P&gt;&lt;P&gt;&amp;nbsp; 'SubRegion:' &amp;amp; SubRegion_Name as NodeID, 'Region:' &amp;amp; Region_Name as ParentID &lt;/P&gt;&lt;P&gt;&amp;nbsp; FROM UserDim.xls (biff, embedded labels, table is Sheet2$);&lt;/P&gt;&lt;P&gt;LOAD distinct &lt;/P&gt;&lt;P&gt;&amp;nbsp; 'Country:' &amp;amp; Country_Name as NodeID, 'SubRegion:' &amp;amp; SubRegion_Name as ParentID &lt;/P&gt;&lt;P&gt;&amp;nbsp; FROM UserDim.xls (biff, embedded labels, table is Sheet2$);&lt;/P&gt;&lt;P&gt;LOAD distinct EndUser_ID as NodeID, &lt;/P&gt;&lt;P&gt;&amp;nbsp; 'Country:' &amp;amp; Country_Name as ParentID &lt;/P&gt;&lt;P&gt;&amp;nbsp; FROM UserDim.xls (biff, embedded labels, table is Sheet2$);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Apr 2014 10:09:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hierarchy-function-tree-view-how-to/m-p/578969#M215282</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2014-04-01T10:09:00Z</dc:date>
    </item>
    <item>
      <title>Re: Hierarchy function - tree view how to</title>
      <link>https://community.qlik.com/t5/QlikView/Hierarchy-function-tree-view-how-to/m-p/578970#M215283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2014 11:02:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hierarchy-function-tree-view-how-to/m-p/578970#M215283</guid>
      <dc:creator />
      <dc:date>2014-04-02T11:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: Hierarchy function - tree view how to</title>
      <link>https://community.qlik.com/t5/QlikView/Hierarchy-function-tree-view-how-to/m-p/578971#M215284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;one more question :&lt;/P&gt;&lt;P&gt;i am using GetFieldSelections function to see the string of the node.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sometimes it return string like this :NORTH_AMERICA&amp;gt;CANADA, NORTH_AMERICA&amp;gt;CANADA&amp;gt;CANADA &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and for some node it return :&amp;nbsp;&amp;nbsp; 7 of 215&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;why ???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2014 11:08:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hierarchy-function-tree-view-how-to/m-p/578971#M215284</guid>
      <dc:creator />
      <dc:date>2014-04-02T11:08:02Z</dc:date>
    </item>
    <item>
      <title>Re: Hierarchy function - tree view how to</title>
      <link>https://community.qlik.com/t5/QlikView/Hierarchy-function-tree-view-how-to/m-p/578972#M215285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use This On ...Better Than Other&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TEST1:&lt;/P&gt;&lt;P&gt;LOAD Distinct&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; '0' as ParentID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Region_Name AS Value,&lt;/P&gt;&lt;P&gt;AutoNumber('P-'&amp;amp;Region_Name) as [S-num] FROM UserDim.xls (biff, embedded labels, table is Sheet2$);&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TEST2:&lt;/P&gt;&lt;P&gt;LOAD Distinct&lt;/P&gt;&lt;P&gt;AutoNumber('P-'&amp;amp;Region_Name) as ParentID,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Region_Name AS Value,&lt;/P&gt;&lt;P&gt;&amp;nbsp; AutoNumber('C-'&amp;amp;Region_Name) as [S-num] FROM UserDim.xls (biff, embedded labels, table is Sheet2$);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TEST3:&lt;/P&gt;&lt;P&gt;LOAD Distinct&lt;/P&gt;&lt;P&gt;AutoNumber('C-'&amp;amp;Region_Name) as ParentID,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[MIS Line Item] AS Value,&lt;/P&gt;&lt;P&gt;&amp;nbsp; AutoNumber('C1-'&amp;amp;Region_Name) as [S-num] FROM UserDim.xls (biff, embedded labels, table is Sheet2$);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2014 11:12:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hierarchy-function-tree-view-how-to/m-p/578972#M215285</guid>
      <dc:creator>arjunkrishnan</dc:creator>
      <dc:date>2014-04-02T11:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: Hierarchy function - tree view how to</title>
      <link>https://community.qlik.com/t5/QlikView/Hierarchy-function-tree-view-how-to/m-p/578973#M215286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It does that when there are more than 6 possible values. I would instead use &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Concat(distinct NodeName, ',')&lt;/P&gt;&lt;P&gt;which returns a list of all node names, or &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Only(NodeName)&lt;/P&gt;&lt;P&gt;which returns the node name if there is only one possible node name, otherwise NULL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2014 11:31:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hierarchy-function-tree-view-how-to/m-p/578973#M215286</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2014-04-02T11:31:04Z</dc:date>
    </item>
  </channel>
</rss>

