<?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: Problem with sum aggr without total amount in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-sum-aggr-without-total-amount/m-p/390002#M488015</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aggr( IF (&lt;/P&gt;&lt;P&gt;sum( {$ &amp;lt;&amp;nbsp; DELIVERED&amp;nbsp; ={'&amp;gt;0'} ,&amp;nbsp;&amp;nbsp;&amp;nbsp; UNDERSTOCK&amp;nbsp; ={'0'}&amp;nbsp; &amp;gt; }&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; if(aggr (nodistinct sum(UNDERSTOCK),INVOICE) &amp;gt;0 ,VALUE_DLVR) )&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;gt;65, &lt;/P&gt;&lt;P&gt;VALUE_DLVR),ARTICLE,INVOICE)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Jan 2013 11:58:11 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2013-01-03T11:58:11Z</dc:date>
    <item>
      <title>Problem with sum aggr without total amount</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-sum-aggr-without-total-amount/m-p/390001#M488014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm prabably a simple problem but i'm not able to find a good solution.&lt;/P&gt;&lt;P&gt;1) The follow expression doesn't show the total&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;IF &lt;SPAN style="font-size: 12pt;"&gt; (&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;( {$ &amp;lt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;DELIVERED&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt; ={'&amp;gt;0'} , &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;UNDERSTOCK&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt; ={'0'} &amp;gt; } &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;nodistinct&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;UNDERSTOCK&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;INVOICE&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;) &amp;gt;0 ,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;VALUE_DLVR&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;) ) &lt;BR /&gt;&amp;gt;65, &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;VALUE_DLVR&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;) &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) There is another easy way to solve this expression&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;Hire attached the example of qvd files&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;Many Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;Claudio&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2013 11:52:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-sum-aggr-without-total-amount/m-p/390001#M488014</guid>
      <dc:creator />
      <dc:date>2013-01-03T11:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with sum aggr without total amount</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-sum-aggr-without-total-amount/m-p/390002#M488015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aggr( IF (&lt;/P&gt;&lt;P&gt;sum( {$ &amp;lt;&amp;nbsp; DELIVERED&amp;nbsp; ={'&amp;gt;0'} ,&amp;nbsp;&amp;nbsp;&amp;nbsp; UNDERSTOCK&amp;nbsp; ={'0'}&amp;nbsp; &amp;gt; }&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; if(aggr (nodistinct sum(UNDERSTOCK),INVOICE) &amp;gt;0 ,VALUE_DLVR) )&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;gt;65, &lt;/P&gt;&lt;P&gt;VALUE_DLVR),ARTICLE,INVOICE)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2013 11:58:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-sum-aggr-without-total-amount/m-p/390002#M488015</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-01-03T11:58:11Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with sum aggr without total amount</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-sum-aggr-without-total-amount/m-p/390003#M488016</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;Your Expression right but in expression you took UNDERSTOCK='0' &lt;/P&gt;&lt;P&gt;But you are handling in IF clause sum (UNDERSTOCK)&amp;gt;0,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How it comes I think there you use count&amp;nbsp; replace of Sum&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then it will come.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think It will helps U&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ananth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2013 12:34:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-sum-aggr-without-total-amount/m-p/390003#M488016</guid>
      <dc:creator />
      <dc:date>2013-01-03T12:34:26Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with sum aggr without total amount</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-sum-aggr-without-total-amount/m-p/390004#M488017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gysbert&lt;/P&gt;&lt;P&gt;thank you for your appreciate reply.&lt;/P&gt;&lt;P&gt;Now we need to improve our statistic with a more complex case:&lt;/P&gt;&lt;P&gt;As you can find in the attached document we need to considerate all&lt;/P&gt;&lt;P&gt;rows where the total amount &amp;gt; 65&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2013 16:31:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-sum-aggr-without-total-amount/m-p/390004#M488017</guid>
      <dc:creator />
      <dc:date>2013-01-18T16:31:41Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with sum aggr without total amount</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-sum-aggr-without-total-amount/m-p/390005#M488018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not quite sure what you're asking. Does this do what you want?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Dimensionality()=0,&lt;/P&gt;&lt;P&gt;sum(aggr(if(sum(total &amp;lt;INVOICE&amp;gt; [STATUS VALUE])&amp;gt;65,sum([STATUS VALUE]),0),INVOICE)),&lt;/P&gt;&lt;P&gt;if(sum(total &amp;lt;INVOICE&amp;gt; [STATUS VALUE])&amp;gt;65,sum([STATUS VALUE]),0))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or maybe this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Dimensionality()=0&lt;/P&gt;&lt;P&gt;,sum(aggr(if(sum(total &amp;lt;INVOICE&amp;gt; {$ &amp;lt;&amp;nbsp; DELIVERED&amp;nbsp; ={'&amp;gt;0'} ,&amp;nbsp;&amp;nbsp;&amp;nbsp; UNDERSTOCK&amp;nbsp; ={'0'}&amp;nbsp; &amp;gt; }&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; if((aggr (nodistinct sum(UNDERSTOCK),INVOICE)) &amp;gt;0 ,VALUE_DLVR) ) &amp;gt;65, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;sum( {$ &amp;lt;&amp;nbsp; DELIVERED&amp;nbsp; ={'&amp;gt;0'} ,&amp;nbsp;&amp;nbsp;&amp;nbsp; UNDERSTOCK&amp;nbsp; ={'0'}&amp;nbsp; &amp;gt; }&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; if((aggr (nodistinct sum(UNDERSTOCK),INVOICE)) &amp;gt;0 ,VALUE_DLVR)),0),INVOICE))&lt;/P&gt;&lt;P&gt;,if(sum(total &amp;lt;INVOICE&amp;gt; {$ &amp;lt;&amp;nbsp; DELIVERED&amp;nbsp; ={'&amp;gt;0'} ,&amp;nbsp;&amp;nbsp;&amp;nbsp; UNDERSTOCK&amp;nbsp; ={'0'}&amp;nbsp; &amp;gt; }&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; if((aggr (nodistinct sum(UNDERSTOCK),INVOICE)) &amp;gt;0 ,VALUE_DLVR) ) &amp;gt;65, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;sum( {$ &amp;lt;&amp;nbsp; DELIVERED&amp;nbsp; ={'&amp;gt;0'} ,&amp;nbsp;&amp;nbsp;&amp;nbsp; UNDERSTOCK&amp;nbsp; ={'0'}&amp;nbsp; &amp;gt; }&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; if((aggr (nodistinct sum(UNDERSTOCK),INVOICE)) &amp;gt;0 ,VALUE_DLVR)),0)&lt;/P&gt;&lt;P&gt;)&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2013 17:35:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-sum-aggr-without-total-amount/m-p/390005#M488018</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-01-22T17:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with sum aggr without total amount</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-sum-aggr-without-total-amount/m-p/390006#M488019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gysbert&lt;/P&gt;&lt;P&gt;your solution is exactly what we need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks for your answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regars&lt;/P&gt;&lt;P&gt;Claudio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2013 16:31:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-sum-aggr-without-total-amount/m-p/390006#M488019</guid>
      <dc:creator />
      <dc:date>2013-01-23T16:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with sum aggr without total amount</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-sum-aggr-without-total-amount/m-p/390007#M488020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gysbert&lt;/P&gt;&lt;P&gt;your solution is exactly what we need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks for your answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regars&lt;/P&gt;&lt;P&gt;Claudio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2013 16:32:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-sum-aggr-without-total-amount/m-p/390007#M488020</guid>
      <dc:creator />
      <dc:date>2013-01-23T16:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with sum aggr without total amount</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-sum-aggr-without-total-amount/m-p/390008#M488021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gysbert&lt;/P&gt;&lt;P&gt;your solution is exactly what we need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks for your answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regars&lt;/P&gt;&lt;P&gt;Claudio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2013 16:33:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-sum-aggr-without-total-amount/m-p/390008#M488021</guid>
      <dc:creator />
      <dc:date>2013-01-23T16:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with sum aggr without total amount</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-sum-aggr-without-total-amount/m-p/390009#M488022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gysbert&lt;/P&gt;&lt;P&gt;your solution is exactly what we need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks for your answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regars&lt;/P&gt;&lt;P&gt;Claudio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2013 16:34:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-sum-aggr-without-total-amount/m-p/390009#M488022</guid>
      <dc:creator />
      <dc:date>2013-01-23T16:34:13Z</dc:date>
    </item>
  </channel>
</rss>

