<?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: duplicate values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/duplicate-values/m-p/491058#M1137469</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Couple of suggestions:&lt;/P&gt;&lt;P&gt;- You're talking about many joins within the script. Maybe this table is joined and 'site' is part of the key. It's possible that site = '2' isn't part of the original table. If so, that record will not be joined to the original table.&lt;/P&gt;&lt;P&gt;- Product name isn't identical. It's possible that the product names look very much alike, bit aren't similar.&lt;/P&gt;&lt;P&gt;- (Hidden) conditional statement on the table. Maybe the record (where site = 2, value = 4) isn't added to the result because only records with site=1 are taken into account.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Sep 2013 11:54:25 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-09-30T11:54:25Z</dc:date>
    <item>
      <title>duplicate values</title>
      <link>https://community.qlik.com/t5/QlikView/duplicate-values/m-p/491057#M1137468</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 have to debug my boss's code. he didn't have load distinct in his script, but the end result is qty (A)= 4 rather than 8. There are so many left joins and resident tables involved. I wonder how you could possibly lose that hidden record without use load distinct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a qvd with following table&lt;/P&gt;&lt;P&gt;product&amp;nbsp; site qty&lt;/P&gt;&lt;P&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp; 4&lt;/P&gt;&lt;P&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp; 4&lt;/P&gt;&lt;P&gt;B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 12&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when I do&lt;/P&gt;&lt;P&gt;load product,&lt;/P&gt;&lt;P&gt;qty&lt;/P&gt;&lt;P&gt;from tbl;&lt;/P&gt;&lt;P&gt;(I didn't do load distinct cuz I don't want to lose the qty)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will get this in table view&lt;/P&gt;&lt;P&gt;product qty&lt;/P&gt;&lt;P&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&lt;/P&gt;&lt;P&gt;B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 12 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but if I do a chart to sum the qty, I should get&lt;/P&gt;&lt;P&gt;A&amp;nbsp; 8&lt;/P&gt;&lt;P&gt;B&amp;nbsp; 12&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but my boss's result is&lt;/P&gt;&lt;P&gt;A 4&lt;/P&gt;&lt;P&gt;B 12&lt;/P&gt;&lt;P&gt;how did he lose that extra record? even if it's not displayed but still should sum up to 8.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Sep 2013 01:34:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/duplicate-values/m-p/491057#M1137468</guid>
      <dc:creator>yelin_nyu</dc:creator>
      <dc:date>2013-09-30T01:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: duplicate values</title>
      <link>https://community.qlik.com/t5/QlikView/duplicate-values/m-p/491058#M1137469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Couple of suggestions:&lt;/P&gt;&lt;P&gt;- You're talking about many joins within the script. Maybe this table is joined and 'site' is part of the key. It's possible that site = '2' isn't part of the original table. If so, that record will not be joined to the original table.&lt;/P&gt;&lt;P&gt;- Product name isn't identical. It's possible that the product names look very much alike, bit aren't similar.&lt;/P&gt;&lt;P&gt;- (Hidden) conditional statement on the table. Maybe the record (where site = 2, value = 4) isn't added to the result because only records with site=1 are taken into account.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Sep 2013 11:54:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/duplicate-values/m-p/491058#M1137469</guid>
      <dc:creator />
      <dc:date>2013-09-30T11:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: duplicate values</title>
      <link>https://community.qlik.com/t5/QlikView/duplicate-values/m-p/491059#M1137470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry, I didn't provide more detail last time. assume following situation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;item plant qty program&lt;/P&gt;&lt;P&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&amp;nbsp;&amp;nbsp;&amp;nbsp; X&lt;/P&gt;&lt;P&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&amp;nbsp;&amp;nbsp;&amp;nbsp; Y&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I only load in item plant &amp;amp; qty into this tool&lt;/P&gt;&lt;P&gt;so the table view is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;main:&lt;/P&gt;&lt;P&gt;item plant qty&lt;/P&gt;&lt;P&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but if I do chart:&lt;/P&gt;&lt;P&gt;item plant sum(qty)&lt;/P&gt;&lt;P&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now, I left join this table (1 row)&lt;/P&gt;&lt;P&gt;item plant New&lt;/P&gt;&lt;P&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Y&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;onto main to become below&lt;/P&gt;&lt;P&gt;item plant qty New&lt;/P&gt;&lt;P&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Y&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I tried to sum qty in chart, this is what I got&lt;/P&gt;&lt;P&gt;item plant sum(qty)&lt;/P&gt;&lt;P&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what happened to that hidden row before I did the join?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Nov 2013 18:49:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/duplicate-values/m-p/491059#M1137470</guid>
      <dc:creator>yelin_nyu</dc:creator>
      <dc:date>2013-11-05T18:49:37Z</dc:date>
    </item>
    <item>
      <title>Re: duplicate values</title>
      <link>https://community.qlik.com/t5/QlikView/duplicate-values/m-p/491060#M1137471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A table box will only show unique rows. If you don't add the program field to the table box then the combination A, B, 4 is the only unique combination. That combination will be shown only once, so the table box shows only one row. For what you want you should not use a table box but a straight table with item and plant as dimensions and sum(qty) as expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Nov 2013 18:57:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/duplicate-values/m-p/491060#M1137471</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-11-05T18:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: duplicate values</title>
      <link>https://community.qlik.com/t5/QlikView/duplicate-values/m-p/491061#M1137472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to understand why the hidden row got dropped after the left join. I'm fine with table view only display one row as long as the sum(qty) is right. But in my case the sum(qty) become wrong after I left join a new flag onto the table. i am positive the left join caused the hidden row to drop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;before join I did the sum(qty)=8&lt;/P&gt;&lt;P&gt;after the join the sum(qty)=4&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Nov 2013 19:07:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/duplicate-values/m-p/491061#M1137472</guid>
      <dc:creator>yelin_nyu</dc:creator>
      <dc:date>2013-11-05T19:07:42Z</dc:date>
    </item>
  </channel>
</rss>

