<?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: Left Keep Hierarchy or HeirarchyBelongsTo in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Left-Keep-Hierarchy-or-HeirarchyBelongsTo/m-p/493704#M184658</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is not a bug - it is just that the Hierarchy prefixes are slightly special: You want to have &lt;SPAN style="text-decoration: underline;"&gt;&lt;EM&gt;all&lt;/EM&gt;&lt;/SPAN&gt; records for the hierarchy transformation to work. So you cannot use a Where-clause&amp;nbsp; or a left keep on it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But you can reduce the records &lt;SPAN style="text-decoration: underline;"&gt;&lt;EM&gt;after&lt;/EM&gt;&lt;/SPAN&gt; the transformation is made, hence, the following works:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SalesData:&lt;/P&gt;&lt;P&gt;LOAD ID, Month, Sales FROM SampleData.xlsx (ooxml, embedded labels, table is SalesData);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SalesPerson:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;HierarchyBelongsTo(ID, ManagerID, Name, AncestorID, ManagerName, DepthDiff)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;LOAD ManagerID, Manager, Name, ID FROM SampleData.xlsx (ooxml, embedded labels, table is SalesHierachy);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right Join Load distinct ID Resident SalesData;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Jan 2014 14:22:55 GMT</pubDate>
    <dc:creator>hic</dc:creator>
    <dc:date>2014-01-17T14:22:55Z</dc:date>
    <item>
      <title>Left Keep Hierarchy or HeirarchyBelongsTo</title>
      <link>https://community.qlik.com/t5/QlikView/Left-Keep-Hierarchy-or-HeirarchyBelongsTo/m-p/493703#M184657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please help...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a few instances where I have some enterprise-wide heirarchies that I'd like to use when data is available for nodes that exist on them. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The challenge is: how to show only the subset of the hierarchy nodes and all of their ancestors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My attempt (that doesn't work) was to use a Left Keep onto an ancestor table.&amp;nbsp; For some reason the filter effect applier to the Ancestor IDs as well as the node IDs resulting in a much smaller record set than I was looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this a bug?&amp;nbsp; Is there a workaround?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Dec 2013 11:45:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Left-Keep-Hierarchy-or-HeirarchyBelongsTo/m-p/493703#M184657</guid>
      <dc:creator />
      <dc:date>2013-12-17T11:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: Left Keep Hierarchy or HeirarchyBelongsTo</title>
      <link>https://community.qlik.com/t5/QlikView/Left-Keep-Hierarchy-or-HeirarchyBelongsTo/m-p/493704#M184658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is not a bug - it is just that the Hierarchy prefixes are slightly special: You want to have &lt;SPAN style="text-decoration: underline;"&gt;&lt;EM&gt;all&lt;/EM&gt;&lt;/SPAN&gt; records for the hierarchy transformation to work. So you cannot use a Where-clause&amp;nbsp; or a left keep on it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But you can reduce the records &lt;SPAN style="text-decoration: underline;"&gt;&lt;EM&gt;after&lt;/EM&gt;&lt;/SPAN&gt; the transformation is made, hence, the following works:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SalesData:&lt;/P&gt;&lt;P&gt;LOAD ID, Month, Sales FROM SampleData.xlsx (ooxml, embedded labels, table is SalesData);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SalesPerson:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;HierarchyBelongsTo(ID, ManagerID, Name, AncestorID, ManagerName, DepthDiff)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;LOAD ManagerID, Manager, Name, ID FROM SampleData.xlsx (ooxml, embedded labels, table is SalesHierachy);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right Join Load distinct ID Resident SalesData;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jan 2014 14:22:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Left-Keep-Hierarchy-or-HeirarchyBelongsTo/m-p/493704#M184658</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2014-01-17T14:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: Left Keep Hierarchy or HeirarchyBelongsTo</title>
      <link>https://community.qlik.com/t5/QlikView/Left-Keep-Hierarchy-or-HeirarchyBelongsTo/m-p/493705#M184659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Henric&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you help me understand some business cases where using a Hierarchy in Qlikview is the preferable method?&amp;nbsp; I have not used this method and wondering if I have some instances where it might be useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jan 2014 15:04:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Left-Keep-Hierarchy-or-HeirarchyBelongsTo/m-p/493705#M184659</guid>
      <dc:creator />
      <dc:date>2014-01-17T15:04:30Z</dc:date>
    </item>
    <item>
      <title>Re: Left Keep Hierarchy or HeirarchyBelongsTo</title>
      <link>https://community.qlik.com/t5/QlikView/Left-Keep-Hierarchy-or-HeirarchyBelongsTo/m-p/493706#M184660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The most obvious case is if you have a hierarchy in the &lt;EM&gt;Adjacent Nodes&lt;/EM&gt; form in your database. (I.e. a table that contains the fields ID and ParentID, and ParentID points at the ID of &lt;EM&gt;&lt;SPAN style="text-decoration: underline;"&gt;another record of &lt;/SPAN&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;EM&gt;the same&lt;/EM&gt;&lt;/SPAN&gt;&lt;/EM&gt; table.) This could be the case for Product groups/Products, Sales regions, Projects/Subprojects, Cost accounts, The internal organzation, etc. Then you absolutely should use the QlikView hierarchy prefix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you don't have an adjacent nodes table in your DB, then you should probably avoid the hierarchy prefix... &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See more on &lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-5334"&gt;http://community.qlik.com/docs/DOC-5334&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>Fri, 17 Jan 2014 15:19:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Left-Keep-Hierarchy-or-HeirarchyBelongsTo/m-p/493706#M184660</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2014-01-17T15:19:02Z</dc:date>
    </item>
    <item>
      <title>Re: Left Keep Hierarchy or HeirarchyBelongsTo</title>
      <link>https://community.qlik.com/t5/QlikView/Left-Keep-Hierarchy-or-HeirarchyBelongsTo/m-p/493707#M184661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Henric&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jan 2014 15:23:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Left-Keep-Hierarchy-or-HeirarchyBelongsTo/m-p/493707#M184661</guid>
      <dc:creator />
      <dc:date>2014-01-17T15:23:08Z</dc:date>
    </item>
  </channel>
</rss>

