<?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 Aggr with Sum IF only works selecting one variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggr-with-Sum-IF-only-works-selecting-one-variable/m-p/1358925#M832223</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey everyone &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I really hope you can help with this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this function which works perfectly when I'm only selecting one order or one customer:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;IF&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;Aggr&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;sum&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;CAL_YEAR&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt; =, &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;CAL_MONTH&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt; =,&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;CAL_DAY&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;=, &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;AD_P_DATE&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;={'&amp;gt;=$(=MonthStart(Today(),-12))&amp;lt;$(=MonthStart(Today()))'}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;NET&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;), &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;CUSTOMER&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;) = '0', &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;IF&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;CUSTID&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt; &amp;lt;&amp;gt; 'IA' &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;And&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;CUSTID&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt; &amp;lt;&amp;gt; 'KA' &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;And&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;CUSTID&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt; &amp;lt;&amp;gt; 'BA' &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;AND&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;PLACE&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt; &amp;lt;&amp;gt; 'BBB'&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;, &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;NET&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;)))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, if I don't select a specific customer or order, nothing happens besides getting&amp;nbsp; - .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone explain what I'm doing wrong? I have searched around the internet, and I have been able to find some similar problems with a solution. However I haven't been able to implement those solution to my expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Aggr with Sum IF only works selecting one variable</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-with-Sum-IF-only-works-selecting-one-variable/m-p/1358925#M832223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey everyone &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I really hope you can help with this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this function which works perfectly when I'm only selecting one order or one customer:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;IF&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;Aggr&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;sum&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;CAL_YEAR&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt; =, &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;CAL_MONTH&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt; =,&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;CAL_DAY&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;=, &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;AD_P_DATE&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;={'&amp;gt;=$(=MonthStart(Today(),-12))&amp;lt;$(=MonthStart(Today()))'}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;NET&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;), &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;CUSTOMER&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;) = '0', &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;IF&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;CUSTID&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt; &amp;lt;&amp;gt; 'IA' &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;And&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;CUSTID&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt; &amp;lt;&amp;gt; 'KA' &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;And&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;CUSTID&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt; &amp;lt;&amp;gt; 'BA' &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;AND&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;PLACE&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt; &amp;lt;&amp;gt; 'BBB'&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;, &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;NET&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;)))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, if I don't select a specific customer or order, nothing happens besides getting&amp;nbsp; - .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone explain what I'm doing wrong? I have searched around the internet, and I have been able to find some similar problems with a solution. However I haven't been able to implement those solution to my expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-with-Sum-IF-only-works-selecting-one-variable/m-p/1358925#M832223</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr with Sum IF only works selecting one variable</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-with-Sum-IF-only-works-selecting-one-variable/m-p/1358926#M832224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share a sample Stefan? It might be easier to see what you are doing wrong in a sample, then by just looking at an expression&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jun 2017 08:19:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-with-Sum-IF-only-works-selecting-one-variable/m-p/1358926#M832224</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-06-13T08:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr with Sum IF only works selecting one variable</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-with-Sum-IF-only-works-selecting-one-variable/m-p/1358927#M832225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry, but I'm not able to share a sample. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt; Since its part of a larger setup, and i wouldn't know how to create a sample out of that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jun 2017 08:24:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-with-Sum-IF-only-works-selecting-one-variable/m-p/1358927#M832225</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-13T08:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr with Sum IF only works selecting one variable</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-with-Sum-IF-only-works-selecting-one-variable/m-p/1358928#M832226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See if this link helps&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-1290"&gt;Preparing examples for Upload - Reduction and Data Scrambling&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jun 2017 08:32:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-with-Sum-IF-only-works-selecting-one-variable/m-p/1358928#M832226</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-06-13T08:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr with Sum IF only works selecting one variable</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-with-Sum-IF-only-works-selecting-one-variable/m-p/1358929#M832227</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;I think you're overcomplicating your expression here, and perhaps not understanding how Aggr works. Is there a specific reason why you are using it in addition to your Sum?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this first:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: blue; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;IF&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: blue; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: maroon; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;CAL_YEAR&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt; =, &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: maroon; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;CAL_MONTH&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt; =,&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: maroon; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;CAL_DAY&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;=, &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: maroon; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;AD_P_DATE&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;={'&amp;gt;=$(=MonthStart(Today(),-12))&amp;lt;$(=MonthStart(Today()))'}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: maroon; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;NET&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;)&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt; = '0', &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: blue; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: blue; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;IF&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: maroon; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;CUSTID&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt; &amp;lt;&amp;gt; 'IA' &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: blue; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;And&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="color: maroon; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;CUSTID&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt; &amp;lt;&amp;gt; 'KA' &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: blue; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;And&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="color: maroon; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;CUSTID&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt; &amp;lt;&amp;gt; 'BA' &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: blue; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;AND&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="color: maroon; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;PLACE&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt; &amp;lt;&amp;gt; 'BBB'&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: maroon; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;NET&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;)))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Possibly your final Sum should be modified to use set analysis:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: blue; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;IF&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: blue; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: maroon; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;CAL_YEAR&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt; =, &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: maroon; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;CAL_MONTH&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt; =,&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: maroon; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;CAL_DAY&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;=, &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: maroon; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;AD_P_DATE&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;={'&amp;gt;=$(=MonthStart(Today(),-12))&amp;lt;$(=MonthStart(Today()))'}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: maroon; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;NET&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;)&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt; = '0', &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: blue; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: maroon; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;CUSTID&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt; -={'IA', '&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;KA', &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;'BA'}, &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: maroon; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;PLACE&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt; -= {'BBB'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: maroon; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;NET&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;Marcus&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jun 2017 08:41:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-with-Sum-IF-only-works-selecting-one-variable/m-p/1358929#M832227</guid>
      <dc:creator>marcus_malinow</dc:creator>
      <dc:date>2017-06-13T08:41:33Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr with Sum IF only works selecting one variable</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-with-Sum-IF-only-works-selecting-one-variable/m-p/1358930#M832228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcus&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No there is not a specific reason why I'm using it. I'm kinda new to Qlikview, and all my expressions is just built upon own experience and google search &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/laugh.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, using your expression gives me the same result. When choosing a specific customer/order I receive the correct result. But when not selecting any specific I get none result.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jun 2017 09:01:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-with-Sum-IF-only-works-selecting-one-variable/m-p/1358930#M832228</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-13T09:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr with Sum IF only works selecting one variable</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-with-Sum-IF-only-works-selecting-one-variable/m-p/1358931#M832229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I expect that the expression&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Sum({$&amp;lt;CAL_YEAR =, CAL_MONTH =, CAL_DAY =, AD_P_DATE={'&amp;gt;=$(=MonthStart(Today(),-12)) &amp;lt;$(=MonthStart(Today()))'}&amp;gt;} NET) &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;will be greater than 0 unless only zero value items are selected. This expression is evaluated at the level of the dimensions. If the dimensions are not customer/order then I am pretty sure that is the problem. Perhaps If(Sum()) is not the correct construct for your problem. but without a sample, I can only guess at the correct structure. Perhaps this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Sum(Aggr(&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;IF(sum({$&amp;lt;CAL_YEAR =, CAL_MONTH =,CAL_DAY=, AD_P_DATE={'&amp;gt;=$(=MonthStart(Today(),-12))&amp;lt;$(=MonthStart(Today()))'}&amp;gt;} NET) = '0', Sum({$&amp;lt;CUSTID -={'IA', 'KA', 'BA'}, PLACE -= {'BBB'}&amp;gt;}, NET))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;, Customer, Order, &amp;lt;other table or chart dimensions&amp;gt;))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13.3333px;"&gt;&amp;lt;other table or chart dimensions&amp;gt; &lt;/EM&gt;should be replaced by a comma separated list of the chart dimensions other than Customer and Order&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jun 2017 09:17:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-with-Sum-IF-only-works-selecting-one-variable/m-p/1358931#M832229</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2017-06-13T09:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr with Sum IF only works selecting one variable</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-with-Sum-IF-only-works-selecting-one-variable/m-p/1358932#M832230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have tried making a sample, but haven't been able to make an sample which makes sense. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/plain.png" /&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically I just want to sum the sales of customers who haven't bought anything last 12 months. So if customer haven't bought anything from June 2016 till May 2017, but buys something in June 2017, I want it to sum. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I made this expressions to count orders made by customers who haven't bought anything the last 12 months.&lt;/P&gt;&lt;P&gt;And this expression works perfectly. So thought I could just substitute some things, and make it sum Sales instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;Count&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;DISTINCT&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;IF&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;CUSTID&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt; &amp;lt;&amp;gt; 'IA' &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;And&lt;/SPAN&gt; &lt;SPAN style="color: #800000; font-family: Arial, sans-serif; font-size: 12px;"&gt;CUSTID&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;&amp;lt;&amp;gt; 'KA' &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;And&lt;/SPAN&gt; &lt;SPAN style="color: #800000; font-family: Arial, sans-serif; font-size: 12px;"&gt;CUSTID&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt; &amp;lt;&amp;gt; 'BA' &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;AND&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;Aggr&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;sum&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;CAL_YEAR&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt; =, &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;CAL_MONTH&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt; =, &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;AD_P_DATE&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;={'&amp;gt;=$(=MonthStart(Today(),-12))&amp;lt;$(=MonthStart(Today()))'}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;NET&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;), &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;CUSTOMER&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;) = '0' , &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;OrderNo&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jun 2017 09:51:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-with-Sum-IF-only-works-selecting-one-variable/m-p/1358932#M832230</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-13T09:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr with Sum IF only works selecting one variable</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-with-Sum-IF-only-works-selecting-one-variable/m-p/1358933#M832231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count({&amp;lt;Customer = e({&amp;lt;&lt;SPAN lang="EN-US"&gt;CAL_YEAR&lt;/SPAN&gt;&lt;SPAN lang="EN-US"&gt; =,&lt;/SPAN&gt;&lt;SPAN lang="EN-US"&gt;CAL_MONTH&lt;/SPAN&gt;&lt;SPAN lang="EN-US"&gt; =, &lt;/SPAN&gt;&lt;SPAN lang="EN-US"&gt;AD_P_DATE&lt;/SPAN&gt;&lt;SPAN lang="EN-US"&gt;={"&amp;gt;=$(=MonthStart(Today(),-12))&amp;lt;$(=MonthStart(Today()))"}, CUSTID -= {'IA', 'KA', 'BA'}&lt;/SPAN&gt;&amp;gt;}&lt;STRONG style="font-size: 13.3333px;"&gt;Customer&lt;/STRONG&gt;), &lt;SPAN lang="EN-US"&gt;CAL_YEAR&lt;/SPAN&gt;&lt;SPAN lang="EN-US"&gt; =,&lt;/SPAN&gt;&lt;SPAN lang="EN-US"&gt;CAL_MONTH&lt;/SPAN&gt;&lt;SPAN lang="EN-US"&gt; =, &lt;/SPAN&gt;&lt;SPAN lang="EN-US"&gt;AD_P_DATE&lt;/SPAN&gt;&lt;SPAN lang="EN-US"&gt;={"$(=MonthStart(Today()))"}, CUSTID -= {'IA', 'KA', 'BA'}&lt;/SPAN&gt;&amp;gt;} OrderNo)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jun 2017 10:57:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-with-Sum-IF-only-works-selecting-one-variable/m-p/1358933#M832231</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-06-13T10:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr with Sum IF only works selecting one variable</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-with-Sum-IF-only-works-selecting-one-variable/m-p/1358934#M832232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for trying &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I guess your right. It's almost impossible help without a sample.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jun 2017 11:25:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-with-Sum-IF-only-works-selecting-one-variable/m-p/1358934#M832232</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-13T11:25:29Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr with Sum IF only works selecting one variable</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-with-Sum-IF-only-works-selecting-one-variable/m-p/1358935#M832233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess your issue is common issue of Return/New/Lost customer... see if this thread helps&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/181464"&gt;New/Lost/Returning/Loyal Customers&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jun 2017 11:48:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-with-Sum-IF-only-works-selecting-one-variable/m-p/1358935#M832233</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-06-13T11:48:07Z</dc:date>
    </item>
  </channel>
</rss>

