<?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 Loading tables twice to get two different counts? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Loading-tables-twice-to-get-two-different-counts/m-p/189023#M52070</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;BR /&gt; I have two tables - Parts and Main. I want to get a count(oid) - all orders as well as the count(oid) for orders with status = 'Complete'.&lt;BR /&gt;I need to create a bar chart to show the following calculation per month and year.&lt;BR /&gt; "count(oid) / count(oid) where status = 'Complete'"&lt;/P&gt;&lt;P&gt;i.e. Total # of orders divided by Total number of orders with status complete&lt;BR /&gt;&lt;BR /&gt;Is there an easy way to do this? I tried the following way but this is resulting in a lot of synthetic keys.&lt;/P&gt;&lt;P&gt;Parts_Combo1 :&lt;BR /&gt;LOAD PNo,&lt;BR /&gt; PName, ptype;&lt;BR /&gt;SQL SELECT PNo,&lt;BR /&gt; PName, ptype from Parts;&lt;/P&gt;&lt;P&gt;LEFT JOIN&lt;BR /&gt;SQL SELECT oid,&lt;BR /&gt;PNo, Ship_date, status&lt;BR /&gt;from Main;&lt;/P&gt;&lt;P&gt;Parts_Combo2:&lt;BR /&gt;LOAD PNo,&lt;BR /&gt; PName, ptype;&lt;BR /&gt;SQL SELECT PNo,&lt;BR /&gt; PName, ptype from Parts;&lt;/P&gt;&lt;P&gt;LEFT JOIN SQL SELECT oid,&lt;BR /&gt;PNo, Ship_date, status&lt;BR /&gt;from Main where status = 'Complete';&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Dec 2009 16:58:30 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-12-16T16:58:30Z</dc:date>
    <item>
      <title>Loading tables twice to get two different counts?</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-tables-twice-to-get-two-different-counts/m-p/189023#M52070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;BR /&gt; I have two tables - Parts and Main. I want to get a count(oid) - all orders as well as the count(oid) for orders with status = 'Complete'.&lt;BR /&gt;I need to create a bar chart to show the following calculation per month and year.&lt;BR /&gt; "count(oid) / count(oid) where status = 'Complete'"&lt;/P&gt;&lt;P&gt;i.e. Total # of orders divided by Total number of orders with status complete&lt;BR /&gt;&lt;BR /&gt;Is there an easy way to do this? I tried the following way but this is resulting in a lot of synthetic keys.&lt;/P&gt;&lt;P&gt;Parts_Combo1 :&lt;BR /&gt;LOAD PNo,&lt;BR /&gt; PName, ptype;&lt;BR /&gt;SQL SELECT PNo,&lt;BR /&gt; PName, ptype from Parts;&lt;/P&gt;&lt;P&gt;LEFT JOIN&lt;BR /&gt;SQL SELECT oid,&lt;BR /&gt;PNo, Ship_date, status&lt;BR /&gt;from Main;&lt;/P&gt;&lt;P&gt;Parts_Combo2:&lt;BR /&gt;LOAD PNo,&lt;BR /&gt; PName, ptype;&lt;BR /&gt;SQL SELECT PNo,&lt;BR /&gt; PName, ptype from Parts;&lt;/P&gt;&lt;P&gt;LEFT JOIN SQL SELECT oid,&lt;BR /&gt;PNo, Ship_date, status&lt;BR /&gt;from Main where status = 'Complete';&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2009 16:58:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-tables-twice-to-get-two-different-counts/m-p/189023#M52070</guid>
      <dc:creator />
      <dc:date>2009-12-16T16:58:30Z</dc:date>
    </item>
  </channel>
</rss>

