<?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: Multiply two tables to fill missing entries with zero value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Multiply-two-tables-to-fill-missing-entries-with-zero-value/m-p/1316013#M408598</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;Can you please share some sample Output you are expecting.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Apr 2017 15:54:54 GMT</pubDate>
    <dc:creator>krishnacbe</dc:creator>
    <dc:date>2017-04-13T15:54:54Z</dc:date>
    <item>
      <title>Multiply two tables to fill missing entries with zero value</title>
      <link>https://community.qlik.com/t5/QlikView/Multiply-two-tables-to-fill-missing-entries-with-zero-value/m-p/1316011#M408596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;I am stymied here after a few hours of effort. I need to outer join (more like multiply) two tables. &lt;/P&gt;&lt;P&gt;Table EQUIPDATA contains test data for 6 different equipment with number of faults summarized in a month identified by the REFDATE (this is always the first day of the month).&lt;/P&gt;&lt;P&gt;Table TIMEDATA contains the sequential months (time range) for which the equipment performance is being analyzed. In the test case I am presenting here, the range spans 24 months.&lt;/P&gt;&lt;P&gt;EQUIPDATA has only 16 entries but for a range spanning 24 months and 6 equipment, I need to create a single table (multiplying the two tables) with 6 times 24 (144) entries, filling in the missing entries with 0 value for NUMFAULTS.&lt;/P&gt;&lt;P&gt;I can write a macro in Excel to generate such a multiplied table but it is not an elegant solution. Nor does it make sense with huge data sets.&lt;/P&gt;&lt;P&gt;How can I do this in Qlikview with a join statement? I tried different kinds of joins. Appreciate your help.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Nagendra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Apr 2017 14:49:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiply-two-tables-to-fill-missing-entries-with-zero-value/m-p/1316011#M408596</guid>
      <dc:creator />
      <dc:date>2017-04-13T14:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: Multiply two tables to fill missing entries with zero value</title>
      <link>https://community.qlik.com/t5/QlikView/Multiply-two-tables-to-fill-missing-entries-with-zero-value/m-p/1316012#M408597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you looking something like this? Try this Script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TIMEDATA: &lt;/P&gt;&lt;P&gt;LOAD INDEX, date(REFDATE,'MM/DD/YYYY') as REFDATE&lt;/P&gt;&lt;P&gt;FROM TESTDATA.xlsx&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is TIMEDATA); &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OUTER JOIN (TIMEDATA)&lt;/P&gt;&lt;P&gt;LOAD EQUNR, date(REFDATE,'MM/DD/YYYY') as REFDATE,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NUMFAULTS&lt;/P&gt;&lt;P&gt;FROM TESTDATA.xlsx&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is EQUIPDATA); &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;FINAL:&lt;/P&gt;&lt;P&gt;LOAD INDEX,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; REFDATE,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(Len(TRIM(EQUNR)) = 0, Peek(EQUNR), EQUNR) AS EQUNR,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(Len(TRIM(NUMFAULTS)) = 0, 0, NUMFAULTS) AS NUMFAULTS&lt;/P&gt;&lt;P&gt;Resident TIMEDATA;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP TABLE TIMEDATA;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="160035" alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/160035_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Apr 2017 15:48:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiply-two-tables-to-fill-missing-entries-with-zero-value/m-p/1316012#M408597</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2017-04-13T15:48:24Z</dc:date>
    </item>
    <item>
      <title>Re: Multiply two tables to fill missing entries with zero value</title>
      <link>https://community.qlik.com/t5/QlikView/Multiply-two-tables-to-fill-missing-entries-with-zero-value/m-p/1316013#M408598</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;Can you please share some sample Output you are expecting.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Apr 2017 15:54:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiply-two-tables-to-fill-missing-entries-with-zero-value/m-p/1316013#M408598</guid>
      <dc:creator>krishnacbe</dc:creator>
      <dc:date>2017-04-13T15:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: Multiply two tables to fill missing entries with zero value</title>
      <link>https://community.qlik.com/t5/QlikView/Multiply-two-tables-to-fill-missing-entries-with-zero-value/m-p/1316014#M408599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Krishnapriya,&lt;/P&gt;&lt;P&gt;I am attaching the updated Excel file with one more tab (FULLDATA) - the data that is expected.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Apr 2017 18:57:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiply-two-tables-to-fill-missing-entries-with-zero-value/m-p/1316014#M408599</guid>
      <dc:creator />
      <dc:date>2017-04-14T18:57:10Z</dc:date>
    </item>
  </channel>
</rss>

