<?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: Amount wrong when using sum function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Amount-wrong-when-using-sum-function/m-p/1153904#M376757</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any help please??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Jul 2016 11:49:34 GMT</pubDate>
    <dc:creator>master_student</dc:creator>
    <dc:date>2016-07-01T11:49:34Z</dc:date>
    <item>
      <title>Amount wrong when using sum function</title>
      <link>https://community.qlik.com/t5/QlikView/Amount-wrong-when-using-sum-function/m-p/1153903#M376756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My queries works fine on qlikview but whene I use the sum function , the amount become wrong as if there's redondoncy on the data here's my queries :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #212121;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;&lt;STRONG style="color: #212121; font-family: Calibri, sans-serif; font-size: 14.6667px;"&gt;&lt;SPAN lang="EN-US" style="color: #1f497d;"&gt;Transaction dis niv 1:&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #212121;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;select&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt; tt.report_date, &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #212121;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;tt.report_type,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #212121;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;tt.ALIAS_NAME,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #212121;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;tt.CREDIT // the amount that is wrong whene using sum function&lt;BR /&gt;d.ALIASNAME as alias_debit&lt;BR /&gt;from (&lt;BR /&gt;SELECT &lt;BR /&gt;trans.*, &lt;BR /&gt;tab.ALIASNAME alias_credit&lt;BR /&gt;FROM&amp;nbsp;&amp;nbsp; POS_REPORT trans , DUMP_RETAILER tab &lt;BR /&gt;WHERE&amp;nbsp;&amp;nbsp; &lt;BR /&gt;trans.credit_ACTOR_ID=tab.ACTORE_ID(+)&lt;BR /&gt;and report_type = 'TSR001'&lt;BR /&gt;and debited_ACTOR_ID IN (&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; font-family: 'Courier New'; color: gray;"&gt;$(vActore)&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;) &lt;BR /&gt;AND FUNCTION = 243 ) tt,DUMP_RETAILER d&lt;BR /&gt;where tt.debited_actor_id=d.actore_id(+)&lt;BR /&gt;and tt.REPORT_DATE &amp;gt;= TO_DATE('01/06/2016','DD/MM/YYYY');&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #212121;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="color: #1f497d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #212121;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="color: #1f497d;"&gt;Transaction dis niv 2:&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #212121;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;select&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #212121;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;tt.report_date, &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #212121;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;tt.report_type,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #212121;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;tt.ALIAS_NAME,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #212121;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;tt.CREDIT // the amount that is wrong whene using sum function&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #212121;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;, d.aliasname cl2&lt;BR /&gt;from (&lt;BR /&gt;SELECT &lt;BR /&gt;REPORT_TYPE,&lt;BR /&gt;REPORT_DATE, &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; font-family: 'Courier New'; color: green;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;DEBITED_ACTOR_ID,&lt;BR /&gt;CREDIT_ACTOR_ID, &lt;BR /&gt;CREDIT,&lt;BR /&gt;tab.ALIASNAME cl1&lt;BR /&gt;&lt;BR /&gt;FROM&amp;nbsp;&amp;nbsp; &lt;BR /&gt;POS_REPORT trans, &lt;BR /&gt;DUMP_RETAILER tab &lt;BR /&gt;&lt;BR /&gt;WHERE&amp;nbsp;&amp;nbsp; &lt;BR /&gt;trans.DEBITED_ACTOR_ID =tab.ACTORE_ID(+)&lt;BR /&gt;and REPORT_TYPE = 'TSR001'&lt;BR /&gt;AND FUNCTION = 243&lt;BR /&gt;and DEBITED_ACTOR_ID IN (&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; font-family: 'Courier New'; color: gray;"&gt;$(vCreditActore)&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;) &lt;BR /&gt;AND OPER_STATE = 61&lt;BR /&gt;AND IERRORX = 0) tt, DUMP_RETAILER d&lt;BR /&gt;where&lt;BR /&gt;tt.CREDIT_ACTOR_ID =d.ACTORE_ID(+)&lt;BR /&gt;and tt.REPORT_DATE &amp;gt;= TO_DATE('01/06/2016','DD/MM/YYYY');&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jun 2016 22:24:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Amount-wrong-when-using-sum-function/m-p/1153903#M376756</guid>
      <dc:creator>master_student</dc:creator>
      <dc:date>2016-06-30T22:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: Amount wrong when using sum function</title>
      <link>https://community.qlik.com/t5/QlikView/Amount-wrong-when-using-sum-function/m-p/1153904#M376757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any help please??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jul 2016 11:49:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Amount-wrong-when-using-sum-function/m-p/1153904#M376757</guid>
      <dc:creator>master_student</dc:creator>
      <dc:date>2016-07-01T11:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: Amount wrong when using sum function</title>
      <link>https://community.qlik.com/t5/QlikView/Amount-wrong-when-using-sum-function/m-p/1153905#M376758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure how we are supposed to help here, since we don't know your data, your requirements, what differentiates 'wrong' from 'correct' etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It doesn't even look like a QV specific issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would assume that the JOINs of your tables in SQL duplicate some records and that this is not what you want to achieve when aggregating the CREDIT field, but since we are missing any detailed information, even about what you exactely see and expect to see I can't tell.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jul 2016 13:00:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Amount-wrong-when-using-sum-function/m-p/1153905#M376758</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-07-01T13:00:48Z</dc:date>
    </item>
  </channel>
</rss>

