<?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 set analysis based on different values of the same field. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/set-analysis-based-on-different-values-of-the-same-field/m-p/329348#M576570</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;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Month={'&amp;gt;=$(vCurrMonth+1) &amp;lt;=$(vCurrMonth+3)'}&amp;gt;} Total Planned)- sum(contracts) - sum(orders) - sum(this months issued so far)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Mar 2012 09:55:57 GMT</pubDate>
    <dc:creator>jagan</dc:creator>
    <dc:date>2012-03-30T09:55:57Z</dc:date>
    <item>
      <title>set analysis based on different values of the same field.</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-based-on-different-values-of-the-same-field/m-p/329346#M576568</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 have a sales plan figure for each month of 2012.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First I want to see the planned sales for the next coming months, as in a total.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, I wrote a variable which takes the current month : vCurrMonth = Num(Month( Today() ))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I wrote a listbox to test whether it works to have the months I want &lt;/P&gt;&lt;P&gt;=if(Month&amp;gt;=vCurrMonth and Month&amp;lt;vCurrMonth+3,sum(planned))&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="12581" alt="Capture.JPG" class="jive-image" src="https://community.qlik.com/legacyfs/online/12581_Capture.JPG" /&gt;&lt;/P&gt;&lt;P&gt;So this works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I need a more complex situation, I want to see whether we will be able to reach that value, into one figure :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;total (sum next 3 planned months) - sum(contracts) - sum(orders) - sum(this months issued so far).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Building this formula is not an issue, but I need something that does the same as the listbox expression,&lt;/P&gt;&lt;P&gt;Month&amp;gt;=vCurrMonth and Month&amp;lt;vCurrMonth+3, but as in a set analysis expression.&lt;/P&gt;&lt;P&gt;I dont know how to make a set analysis based on multiple values from the same field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As output, I just want to have one figure, the total, for example -56.000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I made it work for the current month : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({$&amp;lt; Month = {$(vCurrMonth)} &amp;gt;} vOutput)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I add the othe months vCurrMonth + 1 and vCurrMonth + 2 into this set analysis?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this is a newbie question, sorry for this.&lt;/P&gt;&lt;DIV class="mcePaste" id="_mcePaste" style="left: -10000px; overflow: hidden; width: 1px; position: absolute; top: 0px; height: 1px;"&gt;﻿&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Mar 2012 08:21:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-based-on-different-values-of-the-same-field/m-p/329346#M576568</guid>
      <dc:creator />
      <dc:date>2012-03-30T08:21:20Z</dc:date>
    </item>
    <item>
      <title>set analysis based on different values of the same field.</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-based-on-different-values-of-the-same-field/m-p/329347#M576569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Check with this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum(Total {&amp;lt;Month={"&amp;gt;=$(vCurrMonth) &amp;lt;$(vCurrMonth+3)"}&amp;gt;} Planned)- sum(contracts) - sum(orders) - sum(this months issued so far)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Celambarasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Mar 2012 08:54:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-based-on-different-values-of-the-same-field/m-p/329347#M576569</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-03-30T08:54:27Z</dc:date>
    </item>
    <item>
      <title>set analysis based on different values of the same field.</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-based-on-different-values-of-the-same-field/m-p/329348#M576570</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;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Month={'&amp;gt;=$(vCurrMonth+1) &amp;lt;=$(vCurrMonth+3)'}&amp;gt;} Total Planned)- sum(contracts) - sum(orders) - sum(this months issued so far)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Mar 2012 09:55:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-based-on-different-values-of-the-same-field/m-p/329348#M576570</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2012-03-30T09:55:57Z</dc:date>
    </item>
  </channel>
</rss>

