<?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: SUM expression question in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/SUM-expression-question/m-p/985324#M949427</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;maxgro,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please explain what "except -1" mean?&amp;nbsp; I have only been working with QV for a few weeks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Dec 2015 19:53:19 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-12-09T19:53:19Z</dc:date>
    <item>
      <title>SUM expression question</title>
      <link>https://community.qlik.com/t5/QlikView/SUM-expression-question/m-p/985319#M949422</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 was looking at an app that someone developed.&amp;nbsp; One of the charts has this expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= sum({&amp;lt;_RevenueFlag-={1}&amp;gt;} TransactionAmountInDollars)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe it means sum the &lt;SPAN style="font-size: 13.3333px;"&gt;TransactionAmountInDollars where &lt;SPAN style="font-size: 13.3333px;"&gt;_RevenueFlag = 1.&amp;nbsp; However I noticed there is what&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;appears to be a minus or hyphen symbol between &lt;SPAN style="font-size: 13.3333px;"&gt;_RevenueFlag and the equal sign.&amp;nbsp; Can someone explain what that&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;means or what this expression maybe doing?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2015 19:31:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SUM-expression-question/m-p/985319#M949422</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-09T19:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: SUM expression question</title>
      <link>https://community.qlik.com/t5/QlikView/SUM-expression-question/m-p/985320#M949423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It means sum &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;TransactionAmountInDollars where _RevenueFlag is not equal to 1&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2015 19:34:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SUM-expression-question/m-p/985320#M949423</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-12-09T19:34:34Z</dc:date>
    </item>
    <item>
      <title>Re: SUM expression question</title>
      <link>https://community.qlik.com/t5/QlikView/SUM-expression-question/m-p/985321#M949424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny, thanks for the quick response.&amp;nbsp; Personally I would coded it as &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;_RevenueFlag&amp;nbsp; = (0) since it can only be&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;0 or 1.&amp;nbsp; This is much clearer.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2015 19:42:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SUM-expression-question/m-p/985321#M949424</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-09T19:42:22Z</dc:date>
    </item>
    <item>
      <title>Re: SUM expression question</title>
      <link>https://community.qlik.com/t5/QlikView/SUM-expression-question/m-p/985322#M949425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree. Its much more easier to understand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2015 19:45:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SUM-expression-question/m-p/985322#M949425</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-12-09T19:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: SUM expression question</title>
      <link>https://community.qlik.com/t5/QlikView/SUM-expression-question/m-p/985323#M949426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;_RevenueFlag&amp;nbsp;&amp;nbsp; of the selection&amp;nbsp;&amp;nbsp; except&amp;nbsp; -1&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2015 19:50:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SUM-expression-question/m-p/985323#M949426</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-12-09T19:50:48Z</dc:date>
    </item>
    <item>
      <title>Re: SUM expression question</title>
      <link>https://community.qlik.com/t5/QlikView/SUM-expression-question/m-p/985324#M949427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;maxgro,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please explain what "except -1" mean?&amp;nbsp; I have only been working with QV for a few weeks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2015 19:53:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SUM-expression-question/m-p/985324#M949427</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-09T19:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: SUM expression question</title>
      <link>https://community.qlik.com/t5/QlikView/SUM-expression-question/m-p/985325#M949428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;-1 is excluded, so you will see everything else.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2015 20:01:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SUM-expression-question/m-p/985325#M949428</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-09T20:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: SUM expression question</title>
      <link>https://community.qlik.com/t5/QlikView/SUM-expression-question/m-p/985326#M949429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;lt;F1=-{a}&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; is b, c&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;lt;F1-={a}&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; is selected -a, --&amp;gt; b&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/108505_1.png" style="height: 154px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;you can find in&lt;/P&gt;&lt;P&gt; &lt;A href="https://community.qlik.com/docs/DOC-4951"&gt;Set Analysis: syntaxes, examples&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2015 20:03:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SUM-expression-question/m-p/985326#M949429</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-12-09T20:03:01Z</dc:date>
    </item>
    <item>
      <title>Re: SUM expression question</title>
      <link>https://community.qlik.com/t5/QlikView/SUM-expression-question/m-p/985327#M949430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sidney,&lt;/P&gt;&lt;P&gt;We need to be a bit careful here, the expression&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;= sum({&amp;lt;_RevenueFlag-={1}&amp;gt;} TransactionAmountInDollars)&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;will not include in the calculation records that have RevenueFlag = 1 or that have null RevenueFlag. In your case as the flag is always non-null this is not a consideration but it should be bourne in mind.&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;If I can use your example as an illustration, if some of your records had null RevenueFlag and you wanted to sum up all that were not set to 1 in this field then the expression&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({$-&amp;lt;_RevenueFlag={1}&amp;gt;} TransactionAmountInDollars)&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;&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;would include the records in the default selection state with null RevenueFlag and also non-nulls &amp;lt;&amp;gt; 1.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2015 22:17:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SUM-expression-question/m-p/985327#M949430</guid>
      <dc:creator>effinty2112</dc:creator>
      <dc:date>2015-12-09T22:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: SUM expression question</title>
      <link>https://community.qlik.com/t5/QlikView/SUM-expression-question/m-p/985328#M949431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Andrew and others who responded.&amp;nbsp; I will need to go through these samples myself to see how the results come out when I play around with this expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Dec 2015 13:41:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SUM-expression-question/m-p/985328#M949431</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-10T13:41:35Z</dc:date>
    </item>
  </channel>
</rss>

