<?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 Hierarchy with left keep in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Hierarchy-with-left-keep/m-p/150863#M28817</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;I'm using hierarchy function to group accounts and link them to transactions table. Unfortunately, "left keep" function that links accounts table with transactions (Account_ID is the key) intereferes hierarchy - only one group is built instead of four. Please see the code and help:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AccountsTable:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LEFT KEEP&lt;/STRONG&gt; (TransactionsTable)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt; Account_ID, Parent_ID, Account_Name;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;HIERARCHY&lt;/STRONG&gt; (Account_ID, Parent_ID, Account_Name)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SQL SELEC&lt;/STRONG&gt;&lt;STRONG&gt;T&lt;/STRONG&gt; "Acc_AccId" AS Account_ID,&lt;/P&gt;&lt;P&gt;"Acc_Nazwa" AS Account_Name,&lt;/P&gt;&lt;P&gt;"Acc_ParId" AS Parent_ID&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt; "CDN".CDN.Accounts;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AccountsTable:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt; Account_ID, Parent_ID, Account_Name;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;HIERARCHY&lt;/STRONG&gt; (Account_ID, Parent_ID, Account_Name)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RESIDENT&lt;/STRONG&gt; AccountsTable;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Przemek&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 01 Aug 2009 18:48:49 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-08-01T18:48:49Z</dc:date>
    <item>
      <title>Hierarchy with left keep</title>
      <link>https://community.qlik.com/t5/QlikView/Hierarchy-with-left-keep/m-p/150863#M28817</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;I'm using hierarchy function to group accounts and link them to transactions table. Unfortunately, "left keep" function that links accounts table with transactions (Account_ID is the key) intereferes hierarchy - only one group is built instead of four. Please see the code and help:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AccountsTable:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LEFT KEEP&lt;/STRONG&gt; (TransactionsTable)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt; Account_ID, Parent_ID, Account_Name;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;HIERARCHY&lt;/STRONG&gt; (Account_ID, Parent_ID, Account_Name)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SQL SELEC&lt;/STRONG&gt;&lt;STRONG&gt;T&lt;/STRONG&gt; "Acc_AccId" AS Account_ID,&lt;/P&gt;&lt;P&gt;"Acc_Nazwa" AS Account_Name,&lt;/P&gt;&lt;P&gt;"Acc_ParId" AS Parent_ID&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt; "CDN".CDN.Accounts;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AccountsTable:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt; Account_ID, Parent_ID, Account_Name;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;HIERARCHY&lt;/STRONG&gt; (Account_ID, Parent_ID, Account_Name)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RESIDENT&lt;/STRONG&gt; AccountsTable;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Przemek&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Aug 2009 18:48:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hierarchy-with-left-keep/m-p/150863#M28817</guid>
      <dc:creator />
      <dc:date>2009-08-01T18:48:49Z</dc:date>
    </item>
  </channel>
</rss>

