<?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 Create new table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Create-new-table/m-p/289933#M708404</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;Firstly, I'm new to Qlikview so assume I know less than nothing.&amp;nbsp; I have a report that has 2 resident tables from which I need to create a third table.&amp;nbsp; The 2 tables are Quota and Assignment and a Quota can have multiple purchase or sale assignments that are joined by a FulfilmentID.&amp;nbsp; So what I need to do is create a third table that matches up the purchase and sale assignments.&amp;nbsp; The SQL to create the third table is (this could be done in other ways with maybe a self join to REPORT_ASSIGNMENT but let's ignore that for the time being):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A.FULFILMENT_ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PURCHASE_ASSIGNMENT_ID = MAX(CASE WHEN Q.PURCHASE_OR_SALE = 'P' THEN A.ASSIGNMENT_ID ELSE NULL END),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SALE_ASSIGNMENT_ID = MAX(CASE WHEN Q.PURCHASE_OR_SALE = 'S' THEN A.ASSIGNMENT_ID ELSE NULL END)&lt;/P&gt;&lt;P&gt;FROM&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;REPORT_QUOTA Q&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INNER JOIN REPORT_ASSIGNMENT A ON Q.QUOTA_ID = A.QUOTA_ID&lt;/P&gt;&lt;P&gt;WHERE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;A.FULFILMENT_ID IS NOT NULL&lt;/P&gt;&lt;P&gt;GROUP BY A.FULFILMENT_ID&lt;/P&gt;&lt;P&gt;ORDER BY A.FULFILMENT_ID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is I don't know how to create the third table within Qlikview once REPORT_QUOTA and REPORT_ASSIGNMENT have been loaded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Gregg.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Nov 2011 04:24:20 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-11-02T04:24:20Z</dc:date>
    <item>
      <title>Create new table</title>
      <link>https://community.qlik.com/t5/QlikView/Create-new-table/m-p/289933#M708404</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;Firstly, I'm new to Qlikview so assume I know less than nothing.&amp;nbsp; I have a report that has 2 resident tables from which I need to create a third table.&amp;nbsp; The 2 tables are Quota and Assignment and a Quota can have multiple purchase or sale assignments that are joined by a FulfilmentID.&amp;nbsp; So what I need to do is create a third table that matches up the purchase and sale assignments.&amp;nbsp; The SQL to create the third table is (this could be done in other ways with maybe a self join to REPORT_ASSIGNMENT but let's ignore that for the time being):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A.FULFILMENT_ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PURCHASE_ASSIGNMENT_ID = MAX(CASE WHEN Q.PURCHASE_OR_SALE = 'P' THEN A.ASSIGNMENT_ID ELSE NULL END),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SALE_ASSIGNMENT_ID = MAX(CASE WHEN Q.PURCHASE_OR_SALE = 'S' THEN A.ASSIGNMENT_ID ELSE NULL END)&lt;/P&gt;&lt;P&gt;FROM&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;REPORT_QUOTA Q&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INNER JOIN REPORT_ASSIGNMENT A ON Q.QUOTA_ID = A.QUOTA_ID&lt;/P&gt;&lt;P&gt;WHERE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;A.FULFILMENT_ID IS NOT NULL&lt;/P&gt;&lt;P&gt;GROUP BY A.FULFILMENT_ID&lt;/P&gt;&lt;P&gt;ORDER BY A.FULFILMENT_ID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is I don't know how to create the third table within Qlikview once REPORT_QUOTA and REPORT_ASSIGNMENT have been loaded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Gregg.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2011 04:24:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-new-table/m-p/289933#M708404</guid>
      <dc:creator />
      <dc:date>2011-11-02T04:24:20Z</dc:date>
    </item>
    <item>
      <title>Create new table</title>
      <link>https://community.qlik.com/t5/QlikView/Create-new-table/m-p/289934#M708405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gregg,&lt;/P&gt;&lt;P&gt;The following would be syntax to create the 3rd table.&lt;/P&gt;&lt;P&gt;Load * Resident REPORT_QUOTA;&lt;/P&gt;&lt;P&gt;Join&lt;/P&gt;&lt;P&gt;Load * Resident REPORT_ASSIGNEMENT where not isNull(FULFILMENT_ID);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The join on QUOTA_ID is automatic as QlikVIew works on natural joins. Once you create the 3rd table drop the two tables if you dont need them, else syntehetic keys will be created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2011 05:34:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-new-table/m-p/289934#M708405</guid>
      <dc:creator />
      <dc:date>2011-11-02T05:34:30Z</dc:date>
    </item>
    <item>
      <title>Create new table</title>
      <link>https://community.qlik.com/t5/QlikView/Create-new-table/m-p/289935#M708406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help Kiran.&amp;nbsp; It seems a third table is not necessary as Qlikview does much more behind the scenes than I thought.&amp;nbsp; If I create a chart with a Dimension of FulfilmentID I can get the other info I need using expressions to filter on Purchase_or_Sale.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Gregg.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2011 21:55:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-new-table/m-p/289935#M708406</guid>
      <dc:creator />
      <dc:date>2011-11-02T21:55:15Z</dc:date>
    </item>
  </channel>
</rss>

