<?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 sum expression error in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/sum-expression-error/m-p/360735#M1175126</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry, there was an error loading the pictures....now are ok.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Apr 2012 19:23:53 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-04-19T19:23:53Z</dc:date>
    <item>
      <title>sum expression error</title>
      <link>https://community.qlik.com/t5/QlikView/sum-expression-error/m-p/360733#M1175124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i want to show you an strange issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the table 1.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="table 1.png" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/13186_table+1.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG height="185" width="468" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know why but when i use the sum expression the values are wrong (see table 2)&lt;IMG alt="table 2.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/13185_table+2.png" /&gt;)...&lt;/P&gt;&lt;P&gt;&lt;IMG height="51" width="318" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The real value of sum is 51.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2012 19:18:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-expression-error/m-p/360733#M1175124</guid>
      <dc:creator />
      <dc:date>2012-04-19T19:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: sum expression error</title>
      <link>https://community.qlik.com/t5/QlikView/sum-expression-error/m-p/360734#M1175125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="hps" style="font-family: arial, sans-serif; font-size: 16px; text-align: -webkit-auto; background-color: #f5f5f5;"&gt;hello&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR style="font-family: arial, sans-serif; font-size: 16px; text-align: -webkit-auto; background-color: #f5f5f5;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, sans-serif; font-size: 16px; text-align: -webkit-auto; background-color: #f5f5f5;"&gt; &lt;/SPAN&gt;&lt;SPAN class="hps" style="font-family: arial, sans-serif; font-size: 16px; text-align: -webkit-auto; background-color: #f5f5f5;"&gt;why not&lt;/SPAN&gt;&lt;SPAN style="font-family: arial, sans-serif; font-size: 16px; text-align: -webkit-auto; background-color: #f5f5f5;"&gt; &lt;/SPAN&gt;&lt;SPAN class="hps" style="font-family: arial, sans-serif; font-size: 16px; text-align: -webkit-auto; background-color: #f5f5f5;"&gt;rename&lt;/SPAN&gt;&lt;SPAN style="font-family: arial, sans-serif; font-size: 16px; text-align: -webkit-auto; background-color: #f5f5f5;"&gt; &lt;/SPAN&gt;&lt;SPAN class="hps" style="font-family: arial, sans-serif; font-size: 16px; text-align: -webkit-auto; background-color: #f5f5f5;"&gt;the&lt;/SPAN&gt;&lt;SPAN style="font-family: arial, sans-serif; font-size: 16px; text-align: -webkit-auto; background-color: #f5f5f5;"&gt; &lt;/SPAN&gt;&lt;SPAN class="hps" style="font-family: arial, sans-serif; font-size: 16px; text-align: -webkit-auto; background-color: #f5f5f5;"&gt;field&lt;/SPAN&gt;&lt;SPAN style="font-family: arial, sans-serif; font-size: 16px; text-align: -webkit-auto; background-color: #f5f5f5;"&gt; &lt;/SPAN&gt;&lt;SPAN class="hps" style="font-family: arial, sans-serif; font-size: 16px; text-align: -webkit-auto; background-color: #f5f5f5;"&gt;with no points&lt;/SPAN&gt;&lt;SPAN style="font-family: arial, sans-serif; font-size: 16px; text-align: -webkit-auto; background-color: #f5f5f5;"&gt; &lt;/SPAN&gt;&lt;SPAN class="hps" style="font-family: arial, sans-serif; font-size: 16px; text-align: -webkit-auto; background-color: #f5f5f5;"&gt;from the&lt;/SPAN&gt;&lt;SPAN style="font-family: arial, sans-serif; font-size: 16px; text-align: -webkit-auto; background-color: #f5f5f5;"&gt; &lt;/SPAN&gt;&lt;SPAN class="hps" style="font-family: arial, sans-serif; font-size: 16px; text-align: -webkit-auto; background-color: #f5f5f5;"&gt;script&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR style="font-family: arial, sans-serif; font-size: 16px; text-align: -webkit-auto; background-color: #f5f5f5;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, sans-serif; font-size: 16px; text-align: -webkit-auto; background-color: #f5f5f5;"&gt; &lt;/SPAN&gt;&lt;SPAN class="hps" style="font-family: arial, sans-serif; font-size: 16px; text-align: -webkit-auto; background-color: #f5f5f5;"&gt;DEAL_EXTERNAL.quantity_A&lt;/SPAN&gt;&lt;SPAN style="font-family: arial, sans-serif; font-size: 16px; text-align: -webkit-auto; background-color: #f5f5f5;"&gt; &lt;/SPAN&gt;&lt;SPAN class="hps" style="font-family: arial, sans-serif; font-size: 16px; text-align: -webkit-auto; background-color: #f5f5f5;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-family: arial, sans-serif; font-size: 16px; text-align: -webkit-auto; background-color: #f5f5f5;"&gt; &lt;/SPAN&gt;&lt;SPAN class="hps" style="font-family: arial, sans-serif; font-size: 16px; text-align: -webkit-auto; background-color: #f5f5f5;"&gt;Quantity&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR style="font-family: arial, sans-serif; font-size: 16px; text-align: -webkit-auto; background-color: #f5f5f5;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, sans-serif; font-size: 16px; text-align: -webkit-auto; background-color: #f5f5f5;"&gt; &lt;/SPAN&gt;&lt;SPAN class="hps" style="font-family: arial, sans-serif; font-size: 16px; text-align: -webkit-auto; background-color: #f5f5f5;"&gt;regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: -webkit-auto;"&gt;&lt;SPAN style="font-family: arial, sans-serif; font-size: 18pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2012 19:21:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-expression-error/m-p/360734#M1175125</guid>
      <dc:creator />
      <dc:date>2012-04-19T19:21:50Z</dc:date>
    </item>
    <item>
      <title>sum expression error</title>
      <link>https://community.qlik.com/t5/QlikView/sum-expression-error/m-p/360735#M1175126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry, there was an error loading the pictures....now are ok.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2012 19:23:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-expression-error/m-p/360735#M1175126</guid>
      <dc:creator />
      <dc:date>2012-04-19T19:23:53Z</dc:date>
    </item>
    <item>
      <title>Re: sum expression error</title>
      <link>https://community.qlik.com/t5/QlikView/sum-expression-error/m-p/360736#M1175127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;could you post an image of your table view?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2012 19:35:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-expression-error/m-p/360736#M1175127</guid>
      <dc:creator />
      <dc:date>2012-04-19T19:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: sum expression error</title>
      <link>https://community.qlik.com/t5/QlikView/sum-expression-error/m-p/360737#M1175128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Juan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    I attached two images in the main question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gerardo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;De: Juan Fibonacci &lt;A href="mailto:qliktech@sgaur.hosted.jivesoftware.com"&gt;&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Enviado el: jueves, 19 de abril de 2012 04:36 p.m.&lt;/P&gt;&lt;P&gt;Para: Pauza, Gerardo&lt;/P&gt;&lt;P&gt;Asunto: &lt;A href="New to QlikView"&gt;&lt;/A&gt; - Re: sum expression error&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;QlikCommunity &amp;lt;http://community.qlik.com/index.jspa&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Re: sum expression error &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;created by Juan Fibonacci &amp;lt;http://community.qlik.com/people/dragonauta&amp;gt;  in New to QlikView - View the full discussion &amp;lt;http://community.qlik.com/message/212103#212103&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2012 19:42:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-expression-error/m-p/360737#M1175128</guid>
      <dc:creator />
      <dc:date>2012-04-19T19:42:27Z</dc:date>
    </item>
    <item>
      <title>sum expression error</title>
      <link>https://community.qlik.com/t5/QlikView/sum-expression-error/m-p/360738#M1175129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i meant an image of your internal table view (CTRL + T)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2012 20:43:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-expression-error/m-p/360738#M1175129</guid>
      <dc:creator />
      <dc:date>2012-04-19T20:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: sum expression error</title>
      <link>https://community.qlik.com/t5/QlikView/sum-expression-error/m-p/360739#M1175130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Juan, here is the table internal view&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBSCRIPTIONS_A:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;       user_id as %Key_USER_ID_A,&lt;/P&gt;&lt;P&gt;       user_id as user_id_A&lt;/P&gt;&lt;P&gt;       FROM &lt;A href="..\QVD\SUBSCRIPTIONS.QVD"&gt;&lt;/A&gt; (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INNER Join&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;       Year(created) &amp;amp; Num(Month(created),'00') &amp;amp; Num(Day(created),'00') as %Key_CREATED_DEAL_EXTERNALS,&lt;/P&gt;&lt;P&gt;       user_id as %Key_USER_ID_A,&lt;/P&gt;&lt;P&gt;       user_id as user_id_A,&lt;/P&gt;&lt;P&gt;       quantity as quantity_A,&lt;/P&gt;&lt;P&gt;       id as deal_externals_id_A&lt;/P&gt;&lt;P&gt;FROM &lt;A href="..\QVD\DEAL_EXTERNALS.QVD"&gt;&lt;/A&gt; (qvd)&lt;/P&gt;&lt;P&gt;where `external_status` = 'A';&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;De: Juan Fibonacci &lt;A href="mailto:qliktech@sgaur.hosted.jivesoftware.com"&gt;&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Enviado el: jueves, 19 de abril de 2012 05:44 p.m.&lt;/P&gt;&lt;P&gt;Para: Pauza, Gerardo&lt;/P&gt;&lt;P&gt;Asunto: &lt;A href="New to QlikView"&gt;&lt;/A&gt; - Re: sum expression error&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;QlikCommunity &amp;lt;http://community.qlik.com/index.jspa&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Re: sum expression error &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;created by Juan Fibonacci &amp;lt;http://community.qlik.com/people/dragonauta&amp;gt;  in New to QlikView - View the full discussion &amp;lt;http://community.qlik.com/message/212127#212127&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2012 00:13:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-expression-error/m-p/360739#M1175130</guid>
      <dc:creator />
      <dc:date>2012-04-20T00:13:23Z</dc:date>
    </item>
    <item>
      <title>sum expression error</title>
      <link>https://community.qlik.com/t5/QlikView/sum-expression-error/m-p/360740#M1175131</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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If it is possible, please attach the actual qvw file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Andrew Hudson&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2012 00:32:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-expression-error/m-p/360740#M1175131</guid>
      <dc:creator>adhudson</dc:creator>
      <dc:date>2012-04-20T00:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: sum expression error</title>
      <link>https://community.qlik.com/t5/QlikView/sum-expression-error/m-p/360741#M1175132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andrew,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      I send you the qvw. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry but i had to reduce the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any advice&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gerardo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;De: Andrew Hudson &lt;A href="mailto:qliktech@sgaur.hosted.jivesoftware.com"&gt;&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Enviado el: jueves, 19 de abril de 2012 09:32 p.m.&lt;/P&gt;&lt;P&gt;Para: Pauza, Gerardo&lt;/P&gt;&lt;P&gt;Asunto: &lt;A href="New to QlikView"&gt;&lt;/A&gt; - Re: sum expression error&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;QlikCommunity &amp;lt;http://community.qlik.com/index.jspa&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Re: sum expression error &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;created by Andrew Hudson &amp;lt;http://community.qlik.com/people/adhudson&amp;gt;  in New to QlikView - View the full discussion &amp;lt;http://community.qlik.com/message/212163#212163&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2012 01:13:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-expression-error/m-p/360741#M1175132</guid>
      <dc:creator />
      <dc:date>2012-04-20T01:13:27Z</dc:date>
    </item>
    <item>
      <title>Re: sum expression error</title>
      <link>https://community.qlik.com/t5/QlikView/sum-expression-error/m-p/360742#M1175133</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;I found that your data has duplicate values.&amp;nbsp; Also Your Table has no Unique key that is why you are getting different values when displaying in table and when you are summing up.&amp;nbsp; I attached your modified file with RowNo() added to a table.&amp;nbsp; Hope it helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2012 06:26:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-expression-error/m-p/360742#M1175133</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2012-04-20T06:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: sum expression error</title>
      <link>https://community.qlik.com/t5/QlikView/sum-expression-error/m-p/360743#M1175134</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;As already mentioned earlier by Jagan, your table has got duplicate keys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have added one chart which describes how many times your keyfield is duplicated. Total of the same is number of rows appearing in your subsription table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum of the field is also justified as breakup explains the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Amar Nath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2012 08:31:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-expression-error/m-p/360743#M1175134</guid>
      <dc:creator />
      <dc:date>2012-04-20T08:31:02Z</dc:date>
    </item>
    <item>
      <title>Re: sum expression error</title>
      <link>https://community.qlik.com/t5/QlikView/sum-expression-error/m-p/360744#M1175135</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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Hope attached file helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sampath Kumar G&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2012 08:59:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-expression-error/m-p/360744#M1175135</guid>
      <dc:creator />
      <dc:date>2012-04-20T08:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: sum expression error</title>
      <link>https://community.qlik.com/t5/QlikView/sum-expression-error/m-p/360745#M1175136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much Sampath, Amar and Jagar....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What can i do to resolve the problem of Key duplication with the inner join?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2012 13:46:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-expression-error/m-p/360745#M1175136</guid>
      <dc:creator />
      <dc:date>2012-04-20T13:46:51Z</dc:date>
    </item>
    <item>
      <title>Re: sum expression error</title>
      <link>https://community.qlik.com/t5/QlikView/sum-expression-error/m-p/360746#M1175137</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;If you want to eliminate duplicate rows try using Distinct during load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD DISTINCT&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;FROM DataSource;&lt;/P&gt;&lt;P&gt;This will remove the duplicate rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to keep all the rows as such&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;introduce a new field like RowNo().&amp;nbsp; Check file attached in above post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2012 14:54:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-expression-error/m-p/360746#M1175137</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2012-04-20T14:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: sum expression error</title>
      <link>https://community.qlik.com/t5/QlikView/sum-expression-error/m-p/360747#M1175138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jagan!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So….if i need to use inner join between two tables then i have to use a distinct load?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I mean, always inner join create duplícate keys? there is another function to use to avoid this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;De: jagan mohan &lt;A href="mailto:qliktech@sgaur.hosted.jivesoftware.com"&gt;&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Enviado el: viernes, 20 de abril de 2012 11:55 a.m.&lt;/P&gt;&lt;P&gt;Para: Pauza, Gerardo&lt;/P&gt;&lt;P&gt;Asunto: &lt;A href="New to QlikView"&gt;&lt;/A&gt; - Re: sum expression error&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;QlikCommunity &amp;lt;http://community.qlik.com/index.jspa&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Re: sum expression error &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;created by jagan mohan &amp;lt;http://community.qlik.com/people/jagan&amp;gt;  in New to QlikView - View the full discussion &amp;lt;http://community.qlik.com/message/212402#212402&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2012 15:08:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-expression-error/m-p/360747#M1175138</guid>
      <dc:creator />
      <dc:date>2012-04-20T15:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: sum expression error</title>
      <link>https://community.qlik.com/t5/QlikView/sum-expression-error/m-p/360748#M1175139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gera!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Usá&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(Aggr(Max( DEAL_EXTERNALS.quantity_A), DEAL_EXTERNALS.deal_externals_id_A))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;, y podés dejar el script así como está.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;El problema está en que tenés todos los valores repetidos un montón de veces. Inner Join no te duplica valores, Inner Join te quita las no coincidencias entre las tablas. Los valores duplicados podés tenerlos en cualquiera de los dos qvd que joineás.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Probalo!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Apr 2012 13:42:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-expression-error/m-p/360748#M1175139</guid>
      <dc:creator>sebastiandperei</dc:creator>
      <dc:date>2012-04-23T13:42:16Z</dc:date>
    </item>
    <item>
      <title>sum expression error</title>
      <link>https://community.qlik.com/t5/QlikView/sum-expression-error/m-p/360749#M1175140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sebastian,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; gracias por la respuesta.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lo que no llego a entender es porque tengo los valores duplicados, si lo unico que hago es hacer un inner join entre dos tablas con distinta informacion salvo por el user_id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cual seria la forma correcta de unir estas dos tablas sin generar duplicados?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Te paso el inner join que tengo ahora:&lt;/P&gt;&lt;P&gt;SUBSCRIPTIONS_A:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; user_id as %Key_USER_ID_A,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; user_id as user_id_A&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM [..\QVD\SUBSCRIPTIONS.QVD] (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; inner Join&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year(created) &amp;amp; Num(Month(created),'00') &amp;amp; Num(Day(created),'00') as %Key_CREATED_DEAL_EXTERNALS,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; user_id as %Key_USER_ID_A,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; user_id as user_id_A,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; quantity as quantity_A,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; id as deal_externals_id_A&lt;/P&gt;&lt;P&gt;FROM [..\QVD\DEAL_EXTERNALS.QVD] (qvd)&lt;/P&gt;&lt;P&gt;where `external_status` = 'A';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gracias&lt;/P&gt;&lt;P&gt;gerardo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Apr 2012 15:56:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-expression-error/m-p/360749#M1175140</guid>
      <dc:creator />
      <dc:date>2012-04-23T15:56:28Z</dc:date>
    </item>
    <item>
      <title>sum expression error</title>
      <link>https://community.qlik.com/t5/QlikView/sum-expression-error/m-p/360750#M1175142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hay que ver qué hay en los QVD...Intuyo q están en SUBSCRIPTIONS. Qué hay acá? Lo más probable es que tengas varios registros por cada user_id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Le estás diciendo a Qlikview:&lt;/P&gt;&lt;P&gt;1- Leé las claves de SUBSCRIPTIONS.QVD y creá dos campos con nombres diferentes por cada una (acá es muy probable que estén repetidos)&lt;/P&gt;&lt;P&gt;2- Leé de DEAL_EXTERNALS.QVD tales datos, y emparentalos con cada clave leída.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Si tenés por ejemplo user_id A, A, A, B, B, C, C, C, C,... te va a poner los datos de quantity que se corresponden en la segunda tabla con A, 3 veces, con B, 2, y así....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tenés que tener un buen conocimiento de qué hay en cada qvd antes de leerlo.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Apr 2012 16:55:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-expression-error/m-p/360750#M1175142</guid>
      <dc:creator>sebastiandperei</dc:creator>
      <dc:date>2012-04-23T16:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: sum expression error</title>
      <link>https://community.qlik.com/t5/QlikView/sum-expression-error/m-p/360751#M1175144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfecto! Excelente explicación.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gracias&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gerardo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;De: Sebastian Pereira &lt;A href="mailto:qliktech@sgaur.hosted.jivesoftware.com"&gt;&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Enviado el: lunes, 23 de abril de 2012 01:56 p.m.&lt;/P&gt;&lt;P&gt;Para: Pauza, Gerardo&lt;/P&gt;&lt;P&gt;Asunto: &lt;A href="New to QlikView"&gt;&lt;/A&gt; - Re: sum expression error&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;QlikCommunity &amp;lt;http://community.qlik.com/index.jspa&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Re: sum expression error &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;created by Sebastian Pereira &amp;lt;http://community.qlik.com/people/sebastiandpereira&amp;gt;  in New to QlikView - View the full discussion &amp;lt;http://community.qlik.com/message/212893#212893&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Apr 2012 19:17:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-expression-error/m-p/360751#M1175144</guid>
      <dc:creator />
      <dc:date>2012-04-23T19:17:31Z</dc:date>
    </item>
    <item>
      <title>sum expression error</title>
      <link>https://community.qlik.com/t5/QlikView/sum-expression-error/m-p/360752#M1175147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dame un Resuelto! je&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Apr 2012 21:39:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-expression-error/m-p/360752#M1175147</guid>
      <dc:creator>sebastiandperei</dc:creator>
      <dc:date>2012-04-23T21:39:33Z</dc:date>
    </item>
  </channel>
</rss>

