<?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: SET ANALYSIS RANGE SUM in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/SET-ANALYSIS-RANGE-SUM/m-p/511613#M481867</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, it was not sure for me if you wanted to sum to be between the Variables, or to sum where the single amount is between the variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are the 2 solutions, and na example file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Single Value Between Var :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Sum(&amp;nbsp; {&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Amount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; = {'&amp;gt;=$(=vMinRev),&amp;nbsp; &amp;lt;=$(=vMaxRev)'} &amp;gt; } &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Amount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum between Vars :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ( &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;NODISTINCT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Amount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ) , &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CodCus&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ) &amp;gt; &lt;/SPAN&gt;&lt;SPAN style="; color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM&gt;$(vMinRev)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;NODISTINCT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Amount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ) , &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CodCus&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ) &amp;lt; &lt;/SPAN&gt;&lt;SPAN style="; color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM&gt;$(vMaxRev)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Amount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; , 0 )&lt;BR /&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Sorry if i have not understood it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Ps -&amp;nbsp; still have to add the Concept0 set.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Sep 2013 00:10:38 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-09-12T00:10:38Z</dc:date>
    <item>
      <title>SET ANALYSIS RANGE SUM</title>
      <link>https://community.qlik.com/t5/QlikView/SET-ANALYSIS-RANGE-SUM/m-p/511608#M481862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN dir="ltr" style="border-color: black; margin: 0cm 0cm 0pt; color: black; font-family: 'Segoe UI','sans-serif'; font-size: 10pt; direction: ltr; word-wrap: break-word;"&gt;Good afternoon.&lt;BR style="font-family: 'Segoe UI','sans-serif';" /&gt;&lt;BR style="font-family: 'Segoe UI','sans-serif';" /&gt;I need your help.&lt;BR style="font-family: 'Segoe UI','sans-serif';" /&gt;&lt;BR style="font-family: 'Segoe UI','sans-serif';" /&gt;I want to calculate an amount (sum), but only for customers in a certain range (between two variables, that can be modified by the user).&lt;SPAN style="font-family: 'Segoe UI','sans-serif';"&gt; &lt;/SPAN&gt;The user selects defines the range with vMinRev and vMaxRev. Only those customers in range should appear. The amount (sum) for a customer must be between vMinRev and vMaxRev.&lt;BR style="font-family: 'Segoe UI','sans-serif';" /&gt;&lt;BR style="font-family: 'Segoe UI','sans-serif';" /&gt;I tried with aggr, and with set analysis:&lt;BR style="font-family: 'Segoe UI','sans-serif';" /&gt;&lt;BR style="font-family: 'Segoe UI','sans-serif';" /&gt;This is my set analysis function:&lt;BR style="font-family: 'Segoe UI','sans-serif';" /&gt;&lt;BR style="font-family: 'Segoe UI','sans-serif';" /&gt;Sum({$&amp;lt;Concept0={'REV'},Cod_Cust=P({$&amp;lt;Sum({&amp;lt;Concept0={'REV'} Amount={"&amp;gt;=$(=vMinRev)&amp;lt;=$(=vMaxRev)"}&amp;gt;}Cod_Cust)&amp;gt;}Amount).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN dir="ltr" style="border-color: black; margin: 0cm 0cm 0pt; color: black; font-family: 'Segoe UI','sans-serif'; font-size: 10pt; direction: ltr; word-wrap: break-word;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN dir="ltr" style="border-color: black; margin: 0cm 0cm 0pt; color: black; font-family: 'Segoe UI','sans-serif'; font-size: 10pt; direction: ltr; word-wrap: break-word;"&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Sep 2013 15:53:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SET-ANALYSIS-RANGE-SUM/m-p/511608#M481862</guid>
      <dc:creator />
      <dc:date>2013-09-11T15:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: SET ANALYSIS RANGE SUM</title>
      <link>https://community.qlik.com/t5/QlikView/SET-ANALYSIS-RANGE-SUM/m-p/511609#M481863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Segoe UI', sans-serif;"&gt;Try:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Segoe UI', sans-serif;"&gt;Sum({$&amp;lt;Concept0={'REV'},Cod_Cust={"=Sum({&amp;lt;Concept0={'REV'}&amp;gt;} Amount)&amp;gt;=$(vMinRev) and &lt;SPAN style="color: #000000; font-family: 'Segoe UI', sans-serif;"&gt;Sum({&amp;lt;Concept0={'REV'}&amp;gt;} Amount)&lt;/SPAN&gt; &amp;lt;=$(vMaxRev)"}&amp;gt;}Amount)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Sep 2013 16:39:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SET-ANALYSIS-RANGE-SUM/m-p/511609#M481863</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-09-11T16:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: SET ANALYSIS RANGE SUM</title>
      <link>https://community.qlik.com/t5/QlikView/SET-ANALYSIS-RANGE-SUM/m-p/511610#M481864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It don't works, all results are 0. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Sep 2013 20:55:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SET-ANALYSIS-RANGE-SUM/m-p/511610#M481864</guid>
      <dc:creator />
      <dc:date>2013-09-11T20:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: SET ANALYSIS RANGE SUM</title>
      <link>https://community.qlik.com/t5/QlikView/SET-ANALYSIS-RANGE-SUM/m-p/511611#M481865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try slightly different&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Segoe UI', sans-serif;"&gt;Sum({$&amp;lt;Concept0={'REV'},Cod_Cust=P({$&amp;lt;Sum({&amp;lt;Concept0={'REV'},Amount={"&amp;gt;=$(=vMinRev)"}*{&amp;lt;=$(=vMaxRev)"}&amp;gt;}Cod_Cust)&amp;gt;}Amount).&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Sep 2013 21:05:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SET-ANALYSIS-RANGE-SUM/m-p/511611#M481865</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2013-09-11T21:05:03Z</dc:date>
    </item>
    <item>
      <title>Re: SET ANALYSIS RANGE SUM</title>
      <link>https://community.qlik.com/t5/QlikView/SET-ANALYSIS-RANGE-SUM/m-p/511612#M481866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't works, all results are blanks. I think that &lt;SPAN style="color: #000000; font-family: 'Segoe UI', sans-serif;"&gt;Sum({$&amp;lt;Concept0={'REV'},Cod_Cust={"=Sum({&amp;lt;Concept0={'REV'}&amp;gt;} Amount)&amp;gt;=$(vMinRev) and &lt;SPAN style="color: #000000; font-family: 'Segoe UI', sans-serif;"&gt;Sum({&amp;lt;Concept0={'REV'}&amp;gt;} Amount)&lt;/SPAN&gt; &amp;lt;=$(vMaxRev)"}&amp;gt;}Amount) will work ok, but it don't returns the Cod_Cust on range set.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Sep 2013 21:23:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SET-ANALYSIS-RANGE-SUM/m-p/511612#M481866</guid>
      <dc:creator />
      <dc:date>2013-09-11T21:23:41Z</dc:date>
    </item>
    <item>
      <title>Re: SET ANALYSIS RANGE SUM</title>
      <link>https://community.qlik.com/t5/QlikView/SET-ANALYSIS-RANGE-SUM/m-p/511613#M481867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, it was not sure for me if you wanted to sum to be between the Variables, or to sum where the single amount is between the variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are the 2 solutions, and na example file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Single Value Between Var :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Sum(&amp;nbsp; {&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Amount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; = {'&amp;gt;=$(=vMinRev),&amp;nbsp; &amp;lt;=$(=vMaxRev)'} &amp;gt; } &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Amount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum between Vars :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ( &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;NODISTINCT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Amount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ) , &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CodCus&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ) &amp;gt; &lt;/SPAN&gt;&lt;SPAN style="; color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM&gt;$(vMinRev)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;NODISTINCT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Amount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ) , &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CodCus&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ) &amp;lt; &lt;/SPAN&gt;&lt;SPAN style="; color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM&gt;$(vMaxRev)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Amount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; , 0 )&lt;BR /&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Sorry if i have not understood it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Ps -&amp;nbsp; still have to add the Concept0 set.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Sep 2013 00:10:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SET-ANALYSIS-RANGE-SUM/m-p/511613#M481867</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-09-12T00:10:38Z</dc:date>
    </item>
    <item>
      <title>Re: SET ANALYSIS RANGE SUM</title>
      <link>https://community.qlik.com/t5/QlikView/SET-ANALYSIS-RANGE-SUM/m-p/511614#M481868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have found the solution:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;Concept0={'REV'}, COD_Cust={"=Sum({$&amp;lt;Concept0={'REV'}&amp;gt;} Amount)&amp;gt;= $(vMinRev) AND Sum({$&amp;lt;Concept0={'REV'}&amp;gt;} Amount)&amp;lt;= $(vMaxRev)"}&amp;gt;} Amount) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that G Wassenaar solution was correct, but some chars was lossen.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks everybody!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Sep 2013 22:00:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SET-ANALYSIS-RANGE-SUM/m-p/511614#M481868</guid>
      <dc:creator />
      <dc:date>2013-09-12T22:00:05Z</dc:date>
    </item>
  </channel>
</rss>

