<?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. :Re: Re. :distinct problems with a detailed data table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/distinct-problems-with-a-detailed-data-table/m-p/147746#M26139</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;The best things is to create a new field as counter with for each row the same value = 1.&lt;/P&gt;&lt;P&gt;Then you do your count on this field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Jun 2009 18:51:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-06-25T18:51:04Z</dc:date>
    <item>
      <title>distinct problems with a detailed data table</title>
      <link>https://community.qlik.com/t5/QlikView/distinct-problems-with-a-detailed-data-table/m-p/147742#M26135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;d&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2009 16:46:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/distinct-problems-with-a-detailed-data-table/m-p/147742#M26135</guid>
      <dc:creator />
      <dc:date>2009-06-25T16:46:23Z</dc:date>
    </item>
    <item>
      <title>Re. :distinct problems with a detailed data table</title>
      <link>https://community.qlik.com/t5/QlikView/distinct-problems-with-a-detailed-data-table/m-p/147743#M26136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aissam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this : Count(Distinct JOB_NUMBER) instead of Sum(Quantity)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2009 16:49:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/distinct-problems-with-a-detailed-data-table/m-p/147743#M26136</guid>
      <dc:creator />
      <dc:date>2009-06-25T16:49:26Z</dc:date>
    </item>
    <item>
      <title>Re. :distinct problems with a detailed data table</title>
      <link>https://community.qlik.com/t5/QlikView/distinct-problems-with-a-detailed-data-table/m-p/147744#M26137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works, but what if Quantity is 2 for a JOB_NUMBER, Instead of 1??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aissam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2009 17:00:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/distinct-problems-with-a-detailed-data-table/m-p/147744#M26137</guid>
      <dc:creator />
      <dc:date>2009-06-25T17:00:01Z</dc:date>
    </item>
    <item>
      <title>Re. :Re: Re. :distinct problems with a detailed data table</title>
      <link>https://community.qlik.com/t5/QlikView/distinct-problems-with-a-detailed-data-table/m-p/147745#M26138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In your source, Quantity is in relation with JOB_NUMBER, ProductCode, CUSTOMER_NUMBER and &lt;B&gt;PRODUCT_LINE&lt;/B&gt;, so you can have different values of Quantity for Product_Lines of a same ProductCode, right ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So what do you want in fact in your report ? If you want the Total Quantity, keep your Sum(Quantity)...&lt;/P&gt;&lt;P&gt;If you want to count the Product_Line, use Count() instead...&lt;/P&gt;&lt;P&gt;In fact, if you have 2 for Quantity, it's probably for one Special PRODUCT_LINE of your ProductCode, not for all (or not) ! So you must choose between :&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;if the quantity does not depend on the PRODUCT_LINE, but on the JOB_NUMBER, just take the value of the field (or the Average, if it's always the same....)&lt;/LI&gt;&lt;LI&gt;if the quantity depend on the PRODUCT_LINE, you must Sum(), Count() or choose one value !&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Hope this helps...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2009 17:19:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/distinct-problems-with-a-detailed-data-table/m-p/147745#M26138</guid>
      <dc:creator />
      <dc:date>2009-06-25T17:19:06Z</dc:date>
    </item>
    <item>
      <title>Re. :Re: Re. :distinct problems with a detailed data table</title>
      <link>https://community.qlik.com/t5/QlikView/distinct-problems-with-a-detailed-data-table/m-p/147746#M26139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;The best things is to create a new field as counter with for each row the same value = 1.&lt;/P&gt;&lt;P&gt;Then you do your count on this field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2009 18:51:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/distinct-problems-with-a-detailed-data-table/m-p/147746#M26139</guid>
      <dc:creator />
      <dc:date>2009-06-25T18:51:04Z</dc:date>
    </item>
    <item>
      <title>Re. :Re: Re. :distinct problems with a detailed data table</title>
      <link>https://community.qlik.com/t5/QlikView/distinct-problems-with-a-detailed-data-table/m-p/147747#M26140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It works,&lt;/P&gt;&lt;P&gt;I used ProductCode instead of PRODUCT_LINE to create the ProductDescription. Then I used the average (Quantity).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aissam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2009 19:13:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/distinct-problems-with-a-detailed-data-table/m-p/147747#M26140</guid>
      <dc:creator />
      <dc:date>2009-06-25T19:13:27Z</dc:date>
    </item>
  </channel>
</rss>

