<?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 Find value after using HierarchyBelongsTo in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Find-value-after-using-HierarchyBelongsTo/m-p/1027077#M636679</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After using HierarchyBelongsTo(), I have this table. Please click on it for better quality:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="122820" alt="" class="jive-image image-1" height="278" src="https://community.qlik.com/legacyfs/online/122820_pastedImage_0.png" style="max-width: 1200px; max-height: 900px; width: 622px; height: 278.465px;" width="622" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I would like to:&lt;/P&gt;&lt;P&gt;1) Select a Node&lt;/P&gt;&lt;P&gt;2) See all corresponding AncestorIDs&lt;/P&gt;&lt;P&gt;3) See all Lenghts for the AncestorIDs, not for the Nodes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I select a Node, the lenghts all show the length of this node because in fact I selected only one line in the data model which is repeated for every new AncestorID:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="122825" alt="" class="jive-image image-2" height="145" src="https://community.qlik.com/legacyfs/online/122825_pastedImage_2.png" style="max-width: 1200px; max-height: 900px; width: 622px; height: 145.165px;" width="622" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A Straight Table also shows this result. The length is just calculated using the Length field. The expression is: "=Length" with Total Mode Min and Max turned on.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="122826" alt="" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/122826_pastedImage_5.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, when I&lt;/P&gt;&lt;P&gt;1) select the AncestorID with the highest DepthDiff (5937900 in this case) and&lt;/P&gt;&lt;P&gt;2) deselect the Node, I have what I need:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="122827" alt="" class="jive-image image-4" height="422" src="https://community.qlik.com/legacyfs/online/122827_pastedImage_6.png" style="max-width: 1200px; max-height: 900px; width: 621px; height: 421.923px;" width="621" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is:&lt;/P&gt;&lt;P&gt;How can I create a table where I&lt;/P&gt;&lt;P&gt;1) Select one Node&lt;/P&gt;&lt;P&gt;2) See all corresponding AncestorIDs&lt;/P&gt;&lt;P&gt;3) See all Lenghts &lt;STRONG&gt;for the AncestorIDs&lt;/STRONG&gt;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried various versions of Hierarchy() and HierarchyBelongsTo() from HIC's resources as well as set analyis and self joins, but did not get the right result. Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Apr 2016 06:42:17 GMT</pubDate>
    <dc:creator>GeorgeQV</dc:creator>
    <dc:date>2016-04-27T06:42:17Z</dc:date>
    <item>
      <title>Find value after using HierarchyBelongsTo</title>
      <link>https://community.qlik.com/t5/QlikView/Find-value-after-using-HierarchyBelongsTo/m-p/1027077#M636679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After using HierarchyBelongsTo(), I have this table. Please click on it for better quality:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="122820" alt="" class="jive-image image-1" height="278" src="https://community.qlik.com/legacyfs/online/122820_pastedImage_0.png" style="max-width: 1200px; max-height: 900px; width: 622px; height: 278.465px;" width="622" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I would like to:&lt;/P&gt;&lt;P&gt;1) Select a Node&lt;/P&gt;&lt;P&gt;2) See all corresponding AncestorIDs&lt;/P&gt;&lt;P&gt;3) See all Lenghts for the AncestorIDs, not for the Nodes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I select a Node, the lenghts all show the length of this node because in fact I selected only one line in the data model which is repeated for every new AncestorID:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="122825" alt="" class="jive-image image-2" height="145" src="https://community.qlik.com/legacyfs/online/122825_pastedImage_2.png" style="max-width: 1200px; max-height: 900px; width: 622px; height: 145.165px;" width="622" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A Straight Table also shows this result. The length is just calculated using the Length field. The expression is: "=Length" with Total Mode Min and Max turned on.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="122826" alt="" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/122826_pastedImage_5.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, when I&lt;/P&gt;&lt;P&gt;1) select the AncestorID with the highest DepthDiff (5937900 in this case) and&lt;/P&gt;&lt;P&gt;2) deselect the Node, I have what I need:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="122827" alt="" class="jive-image image-4" height="422" src="https://community.qlik.com/legacyfs/online/122827_pastedImage_6.png" style="max-width: 1200px; max-height: 900px; width: 621px; height: 421.923px;" width="621" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is:&lt;/P&gt;&lt;P&gt;How can I create a table where I&lt;/P&gt;&lt;P&gt;1) Select one Node&lt;/P&gt;&lt;P&gt;2) See all corresponding AncestorIDs&lt;/P&gt;&lt;P&gt;3) See all Lenghts &lt;STRONG&gt;for the AncestorIDs&lt;/STRONG&gt;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried various versions of Hierarchy() and HierarchyBelongsTo() from HIC's resources as well as set analyis and self joins, but did not get the right result. Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Apr 2016 06:42:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-value-after-using-HierarchyBelongsTo/m-p/1027077#M636679</guid>
      <dc:creator>GeorgeQV</dc:creator>
      <dc:date>2016-04-27T06:42:17Z</dc:date>
    </item>
  </channel>
</rss>

