<?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 condition with variable in modifier in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-condition-with-variable-in-modifier/m-p/441224#M164487</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mayil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works however by default it will show values based on current selection of the RollingMonth field and not the variable vRollingCurrentMonth. Is there a way to use the variable in the set analysis?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;G&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Oct 2012 21:34:12 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-10-22T21:34:12Z</dc:date>
    <item>
      <title>Set analysis condition with variable in modifier</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-condition-with-variable-in-modifier/m-p/441222#M164485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone provide an intuitive example of using variables in set analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know something like this works Sum&amp;nbsp; ({1&amp;lt; RollingMonthNum = {'$(vRollingCurentMonth)'}&amp;gt;} forcast) however if I wanted to get the sum of forecast for last 6 months based on my variable vRollingCurrentMonth how do I do it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 220px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="100"&gt;RollingMonth&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="120"&gt;RollingMonthNum&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;Mar-2013&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;41334&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;Feb-2013&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;41306&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;Jan-2013&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;41275&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;Dec-2012&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;41244&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;Nov-2012&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;41214&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;&lt;STRONG&gt;Oct-2012&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;&lt;STRONG&gt;41183&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;&lt;STRONG&gt;Sep-2012&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;&lt;STRONG&gt;41153&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;&lt;STRONG&gt;Aug-2012&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;&lt;STRONG&gt;41122&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;&lt;STRONG&gt;Jul-2012&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;&lt;STRONG&gt;41091&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;&lt;STRONG&gt;Jun-2012&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;&lt;STRONG&gt;41061&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;&lt;STRONG&gt;May-2012&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;&lt;STRONG&gt;41030&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;Apr-2012&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;41000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;Mar-2012&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;40969&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;Feb-2012&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;40940&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;Jan-2012&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;40909&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;Dec-2011&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;40878&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;Nov-2011&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;40848&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can use set analysis to get a sum of past 6 months if my current variable vRollingCurrentMonth equals 41183.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;G&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2012 21:06:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-condition-with-variable-in-modifier/m-p/441222#M164485</guid>
      <dc:creator />
      <dc:date>2012-10-22T21:06:23Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis condition with variable in modifier</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-condition-with-variable-in-modifier/m-p/441223#M164486</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 like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum&amp;nbsp; ({1&amp;lt; RollingMonthNum = {'&amp;gt;=$(=max(MonthNum))&amp;lt;=$(=Num(AddMonths(max(MonthNum),-5)))'}&amp;gt;} forcast) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it calculate the forcast value from maximum of monthnum ..if u select the oct-2012, (i.e)41183.&amp;nbsp; then its calculate range from &amp;gt;=41183 to &amp;lt;= 41030 &lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2012 21:18:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-condition-with-variable-in-modifier/m-p/441223#M164486</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2012-10-22T21:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis condition with variable in modifier</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-condition-with-variable-in-modifier/m-p/441224#M164487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mayil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works however by default it will show values based on current selection of the RollingMonth field and not the variable vRollingCurrentMonth. Is there a way to use the variable in the set analysis?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;G&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2012 21:34:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-condition-with-variable-in-modifier/m-p/441224#M164487</guid>
      <dc:creator />
      <dc:date>2012-10-22T21:34:12Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis condition with variable in modifier</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-condition-with-variable-in-modifier/m-p/441225#M164488</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 like this&lt;/P&gt;&lt;P&gt;Sum&amp;nbsp; ({1&amp;lt; RollingMonthNum = {'&amp;gt;=$(=vRollingCurrentMonth)&amp;lt;=$(=Num(AddMonths(vRollingCurrentMonth,-5)))'}&amp;gt;} forcast)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2012 21:40:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-condition-with-variable-in-modifier/m-p/441225#M164488</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2012-10-22T21:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis condition with variable in modifier</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-condition-with-variable-in-modifier/m-p/441226#M164489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Beautiful!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;G&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2012 21:43:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-condition-with-variable-in-modifier/m-p/441226#M164489</guid>
      <dc:creator />
      <dc:date>2012-10-22T21:43:27Z</dc:date>
    </item>
  </channel>
</rss>

