<?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: How to sum the an expression with aggregates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-sum-the-an-expression-with-aggregates/m-p/836734#M1014521</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Try to check result of following exp in yur app,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=sum(aggr(sum([Stk Adj Qty]),[SK Branch No])) also,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=sum(aggr(sum([Inflow Qty]),[SK Branch No])))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp; see whether it is working properly or not else your exp looks correct...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Apr 2015 09:58:19 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-04-15T09:58:19Z</dc:date>
    <item>
      <title>How to sum the an expression with aggregates</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-sum-the-an-expression-with-aggregates/m-p/836732#M1014519</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;&lt;/P&gt;&lt;P&gt;So the following expression of mine shows a 1 if the value is bigger than 0, and a 0 if not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if((sum(aggr(sum([Stk Adj Qty]),[SK Branch No])) + sum(aggr(sum([Inflow Qty]),[SK Branch No]))) &amp;gt; 0 , &lt;STRONG style="font-size: 12pt;"&gt;1&lt;/STRONG&gt; ,0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;basically what it does it to check if the sum of Stk Adj Qty and Inflow Qty is bigger than 0 with branch as dimension&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I'd like to do is to sum all those 1's together to give me a total on the caption of the object, but it just wont work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea on what I'm doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you guys&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 09:39:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-sum-the-an-expression-with-aggregates/m-p/836732#M1014519</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-15T09:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to sum the an expression with aggregates</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-sum-the-an-expression-with-aggregates/m-p/836733#M1014520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you post your app please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 09:41:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-sum-the-an-expression-with-aggregates/m-p/836733#M1014520</guid>
      <dc:creator>awhitfield</dc:creator>
      <dc:date>2015-04-15T09:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to sum the an expression with aggregates</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-sum-the-an-expression-with-aggregates/m-p/836734#M1014521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Try to check result of following exp in yur app,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=sum(aggr(sum([Stk Adj Qty]),[SK Branch No])) also,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=sum(aggr(sum([Inflow Qty]),[SK Branch No])))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp; see whether it is working properly or not else your exp looks correct...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 09:58:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-sum-the-an-expression-with-aggregates/m-p/836734#M1014521</guid>
      <dc:creator />
      <dc:date>2015-04-15T09:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to sum the an expression with aggregates</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-sum-the-an-expression-with-aggregates/m-p/836735#M1014522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=Sum(Aggr(if((sum(aggr(sum([Stk Adj Qty]),[SK Branch No])) + sum(aggr(sum([Inflow Qty]),[SK Branch No]))) &amp;gt; 0 , 1 ,0), &amp;lt;table dimensions&amp;gt;))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where &amp;lt;table dimensions&amp;gt; is a comma separated list of the table dimensions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 10:01:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-sum-the-an-expression-with-aggregates/m-p/836735#M1014522</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-04-15T10:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to sum the an expression with aggregates</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-sum-the-an-expression-with-aggregates/m-p/836736#M1014523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;or another alternative would be, if it is a straight table that you are using, is to use the QlikView inbuilt total mode. You can select Sum and it should sum the expression you had initially&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;=if((sum(aggr(sum([Stk Adj Qty]),[SK Branch No])) + sum(aggr(sum([Inflow Qty]),[SK Branch No]))) &amp;gt; 0 , &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="font-size: 12pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;1&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt; ,0)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;&lt;IMG alt="Total Mode.PNG" class="jive-image image-1" src="/legacyfs/online/83709_Total Mode.PNG" style="height: 380px; width: 620px;" /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;I hope this helps.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Best,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sunny&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 10:26:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-sum-the-an-expression-with-aggregates/m-p/836736#M1014523</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-04-15T10:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to sum the an expression with aggregates</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-sum-the-an-expression-with-aggregates/m-p/836737#M1014524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum(if((sum(aggr(sum([Stk Adj Qty]),[SK Branch No])) + sum(aggr(sum([Inflow Qty]),[SK Branch No]))) &amp;gt; 0 , 1 ,0))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shambhu B&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 10:34:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-sum-the-an-expression-with-aggregates/m-p/836737#M1014524</guid>
      <dc:creator>shambhub</dc:creator>
      <dc:date>2015-04-15T10:34:47Z</dc:date>
    </item>
  </channel>
</rss>

