<?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 Table reduction using distinct- help? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Table-reduction-using-distinct-help/m-p/195017#M55703</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rainer.&lt;/P&gt;&lt;P&gt;I did not realise that you can not give a calculated field the same name as the field it is calculating from, but your example works great!&lt;/P&gt;&lt;P&gt;Merry Christmas to you too.&lt;/P&gt;&lt;P&gt;R&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Dec 2009 18:58:39 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-12-22T18:58:39Z</dc:date>
    <item>
      <title>Table reduction using distinct- help?</title>
      <link>https://community.qlik.com/t5/QlikView/Table-reduction-using-distinct-help/m-p/195014#M55700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am pretty sure I am doing something incorrectly in script here but can't work out what. I am trying to do a resident load from one table, summing values from a previous table.&lt;/P&gt;&lt;P&gt;I want to change this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 258pt; border-collapse: collapse;" width="343"&gt;&lt;COLGROUP&gt;&lt;COL style="width: 60pt;" width="80" /&gt;&lt;COL style="width: 41pt; mso-width-source: userset; mso-width-alt: 2011;" width="55" /&gt;&lt;COL style="width: 60pt;" width="80" /&gt;&lt;COL span="3" style="width: 21pt; mso-width-source: userset; mso-width-alt: 1024;" width="28" /&gt;&lt;COL span="2" style="width: 17pt; mso-width-source: userset; mso-width-alt: 804;" width="22" /&gt;&lt;/COLGROUP&gt;&lt;TBODY&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD height="20" style="width: 60pt; height: 15pt; background-color: transparent; border: #ece9d8;" width="80"&gt;CustomerID&lt;/TD&gt;&lt;TD style="width: 41pt; background-color: transparent; border: #ece9d8;" width="55"&gt;Product&lt;/TD&gt;&lt;TD style="width: 60pt; background-color: transparent; border: #ece9d8;" width="80"&gt;Month&lt;/TD&gt;&lt;TD style="width: 21pt; background-color: transparent; border: #ece9d8;" width="28"&gt;C1&lt;/TD&gt;&lt;TD style="width: 21pt; background-color: transparent; border: #ece9d8;" width="28"&gt;C2&lt;/TD&gt;&lt;TD style="width: 21pt; background-color: transparent; border: #ece9d8;" width="28"&gt;C3&lt;/TD&gt;&lt;TD style="width: 17pt; background-color: transparent; border: #ece9d8;" width="22"&gt;C4&lt;/TD&gt;&lt;TD style="width: 17pt; background-color: transparent; border: #ece9d8;" width="22"&gt;C5&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD height="20" style="height: 15pt; background-color: transparent; border: #ece9d8;"&gt;A&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #ece9d8;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl63" style="background-color: transparent; border: #ece9d8;"&gt;jan.09&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #ece9d8;"&gt;100&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #ece9d8;"&gt;0&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #ece9d8;"&gt;0&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #ece9d8;"&gt;0&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #ece9d8;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD height="20" style="height: 15pt; background-color: transparent; border: #ece9d8;"&gt;A&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #ece9d8;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl63" style="background-color: transparent; border: #ece9d8;"&gt;jan.09&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #ece9d8;"&gt;0&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #ece9d8;"&gt;200&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #ece9d8;"&gt;0&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #ece9d8;"&gt;0&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #ece9d8;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD height="20" style="height: 15pt; background-color: transparent; border: #ece9d8;"&gt;A&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #ece9d8;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl63" style="background-color: transparent; border: #ece9d8;"&gt;jan.09&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #ece9d8;"&gt;0&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #ece9d8;"&gt;0&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #ece9d8;"&gt;300&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #ece9d8;"&gt;0&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #ece9d8;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;into this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 258pt; border-collapse: collapse;" width="343"&gt;&lt;COLGROUP&gt;&lt;COL style="width: 60pt;" width="80" /&gt;&lt;COL style="width: 41pt; mso-width-source: userset; mso-width-alt: 2011;" width="55" /&gt;&lt;COL style="width: 60pt;" width="80" /&gt;&lt;COL span="3" style="width: 21pt; mso-width-source: userset; mso-width-alt: 1024;" width="28" /&gt;&lt;COL span="2" style="width: 17pt; mso-width-source: userset; mso-width-alt: 804;" width="22" /&gt;&lt;/COLGROUP&gt;&lt;TBODY&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD height="20" style="width: 60pt; height: 15pt; background-color: transparent; border: #ece9d8;" width="80"&gt;CustomerID&lt;/TD&gt;&lt;TD style="width: 41pt; background-color: transparent; border: #ece9d8;" width="55"&gt;Product&lt;/TD&gt;&lt;TD style="width: 60pt; background-color: transparent; border: #ece9d8;" width="80"&gt;Month&lt;/TD&gt;&lt;TD style="width: 21pt; background-color: transparent; border: #ece9d8;" width="28"&gt;C1&lt;/TD&gt;&lt;TD style="width: 21pt; background-color: transparent; border: #ece9d8;" width="28"&gt;C2&lt;/TD&gt;&lt;TD style="width: 21pt; background-color: transparent; border: #ece9d8;" width="28"&gt;C3&lt;/TD&gt;&lt;TD style="width: 17pt; background-color: transparent; border: #ece9d8;" width="22"&gt;C4&lt;/TD&gt;&lt;TD style="width: 17pt; background-color: transparent; border: #ece9d8;" width="22"&gt;C5&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD height="20" style="height: 15pt; background-color: transparent; border: #ece9d8;"&gt;A&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #ece9d8;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl65" style="background-color: transparent; border: #ece9d8;"&gt;jan.09&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #ece9d8;"&gt;100&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #ece9d8;"&gt;200&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #ece9d8;"&gt;300&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #ece9d8;"&gt;0&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #ece9d8;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;The code I am using is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P style="font-style: italic"&gt;&lt;/P&gt;&lt;P style="font-style: italic"&gt;BUSINESSNEW4:&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;LOAD&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;B&gt;DISTINCT&lt;/B&gt; &lt;P&gt;CUSTOMERID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;PRODUCT,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MONTH,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;SUM(C1) &lt;B&gt;AS&lt;/B&gt; C1,&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;SUM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(C2) &lt;B&gt;AS&lt;/B&gt; C2,&lt;/P&gt;&lt;P&gt;SUM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(C3) &lt;B&gt;AS&lt;/B&gt; C3,&lt;/P&gt;&lt;P&gt;SUM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(C4) &lt;B&gt;AS&lt;/B&gt; C4,&lt;/P&gt;&lt;P&gt;SUM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(C5) &lt;B&gt;AS&lt;/B&gt; C5&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;RESIDENT&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;GROUP&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;DROP&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;B&gt;TABLE&lt;/B&gt; &lt;P&gt;&lt;I&gt;BUSINESSNEW3;&lt;/I&gt;&lt;/P&gt;&lt;B&gt;BY&lt;/B&gt; CUSTOMERID, PRODUCT, MONTH;BUSINESSNEW3&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;The script execution progress states the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BUSINESSNEW3 &amp;lt;&amp;lt; BUSINESSNEW2 37,596 lines fetched&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BUSINESSNEW3 &amp;lt;&amp;lt; BUSINESSNEW3 73,343 lines fetched&lt;/P&gt;&lt;P&gt;It is almost doubling the number of lines and not recognising the name BUSINESSNEW4.&lt;/P&gt;&lt;P&gt;I can't see where the problem is. Any ideas?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2009 18:08:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table-reduction-using-distinct-help/m-p/195014#M55700</guid>
      <dc:creator />
      <dc:date>2009-12-22T18:08:27Z</dc:date>
    </item>
    <item>
      <title>Table reduction using distinct- help?</title>
      <link>https://community.qlik.com/t5/QlikView/Table-reduction-using-distinct-help/m-p/195015#M55701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;here are an working example of your data. Hope it helps to find out the difference.&lt;/P&gt;&lt;P&gt;Merry Christmas!&lt;/P&gt;&lt;P&gt;Rainer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2009 18:44:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table-reduction-using-distinct-help/m-p/195015#M55701</guid>
      <dc:creator />
      <dc:date>2009-12-22T18:44:39Z</dc:date>
    </item>
    <item>
      <title>Table reduction using distinct- help?</title>
      <link>https://community.qlik.com/t5/QlikView/Table-reduction-using-distinct-help/m-p/195016#M55702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Add one more field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select 1 as TmpID, .....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the New Table, and Load again. Should work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2009 18:45:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table-reduction-using-distinct-help/m-p/195016#M55702</guid>
      <dc:creator>vidyut</dc:creator>
      <dc:date>2009-12-22T18:45:55Z</dc:date>
    </item>
    <item>
      <title>Table reduction using distinct- help?</title>
      <link>https://community.qlik.com/t5/QlikView/Table-reduction-using-distinct-help/m-p/195017#M55703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rainer.&lt;/P&gt;&lt;P&gt;I did not realise that you can not give a calculated field the same name as the field it is calculating from, but your example works great!&lt;/P&gt;&lt;P&gt;Merry Christmas to you too.&lt;/P&gt;&lt;P&gt;R&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2009 18:58:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table-reduction-using-distinct-help/m-p/195017#M55703</guid>
      <dc:creator />
      <dc:date>2009-12-22T18:58:39Z</dc:date>
    </item>
    <item>
      <title>Table reduction using distinct- help?</title>
      <link>https://community.qlik.com/t5/QlikView/Table-reduction-using-distinct-help/m-p/195018#M55704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vidyut, same reply to you. Your solution works as well.&lt;/P&gt;&lt;P&gt;Many thanks for your help.&lt;/P&gt;&lt;P&gt;R&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2009 19:00:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table-reduction-using-distinct-help/m-p/195018#M55704</guid>
      <dc:creator />
      <dc:date>2009-12-22T19:00:23Z</dc:date>
    </item>
  </channel>
</rss>

