<?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 with variables issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/set-analysis-with-variables-issue/m-p/494280#M184890</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;seems to be you are complicating that by caculating in backend . you can caclulate it in front end also ...any way try this ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; 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-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-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sum(if(Month=$(vMaxMonth),Revenue))&amp;amp;' '&amp;amp;sum(if(Month=$(vPrevMonth),Revenue))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Dec 2013 16:45:19 GMT</pubDate>
    <dc:creator>preminqlik</dc:creator>
    <dc:date>2013-12-17T16:45:19Z</dc:date>
    <item>
      <title>set analysis with variables issue</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-with-variables-issue/m-p/494270#M184880</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;This is the expression in by text box:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;month={$(vMaxMonth)}&amp;gt;}Revenue)&amp;amp;' '&amp;amp;sum({&amp;lt;month={$(vPrevMonth)}&amp;gt;}Revenue)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And this is the values of the variables:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/50535_Capture.JPG.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this expression gives me empty result.&lt;/P&gt;&lt;P&gt;I tried this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;month={'$(vMaxMonth)'}&amp;gt;}Revenue)&amp;amp;' '&amp;amp;sum({&amp;lt;month={'$(vPrevMonth)'}&amp;gt;}Revenue)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this one shows me total sum without any filter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when I try regular list box filter each date gives me different number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where am I wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;Boris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Dec 2013 12:48:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-with-variables-issue/m-p/494270#M184880</guid>
      <dc:creator />
      <dc:date>2013-12-17T12:48:12Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis with variables issue</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-with-variables-issue/m-p/494271#M184881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe this works for you:&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;"&gt;=sum({&amp;lt;month={&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;"&amp;lt;=$(=&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;vMaxMonth&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;)"&lt;/SPAN&gt;}&amp;gt;}Revenue)&amp;amp;' '&amp;amp;sum({&amp;lt;month={&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;"&amp;lt;=$(=&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;vPrevMonth&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;)"&lt;/SPAN&gt;}&amp;gt;}Revenue)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; 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-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;(This is to work without date selections)&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;"&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;"&gt;Hope this helps.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; 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-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Kind regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Nuno&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Dec 2013 12:57:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-with-variables-issue/m-p/494271#M184881</guid>
      <dc:creator />
      <dc:date>2013-12-17T12:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis with variables issue</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-with-variables-issue/m-p/494272#M184882</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;You can check the Date format of&lt;STRONG&gt; Month Field.&amp;nbsp; &lt;/STRONG&gt;It should be same as the variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;have same date format for both Month Field and Variables and use below mentioned 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;"&gt;=sum({&amp;lt;month={'$(vMaxMonth)'}&amp;gt;}Revenue)&amp;amp;' '&amp;amp;sum({&amp;lt;month={'$(vPrevMonth)'}&amp;gt;}Revenue)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Nilesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Dec 2013 12:57:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-with-variables-issue/m-p/494272#M184882</guid>
      <dc:creator>nilesh_gangurde</dc:creator>
      <dc:date>2013-12-17T12:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis with variables issue</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-with-variables-issue/m-p/494273#M184883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nuno, it didn't help , still I get the total sum.&lt;/P&gt;&lt;P&gt;Nilesh, the variables are set using the month field with a peek function in the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/50536_Capture.JPG.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;on the left is a list of the month field and the right a text object with the variable vMaxMonth.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Dec 2013 13:57:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-with-variables-issue/m-p/494273#M184883</guid>
      <dc:creator />
      <dc:date>2013-12-17T13:57:59Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis with variables issue</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-with-variables-issue/m-p/494274#M184884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What if you replace &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;vMaxMonth&lt;/SPAN&gt; for =max(all month) and vPrevMonth for =max(all month,2)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will be an automation for you and force the dates to take the number form.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Dec 2013 14:08:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-with-variables-issue/m-p/494274#M184884</guid>
      <dc:creator />
      <dc:date>2013-12-17T14:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis with variables issue</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-with-variables-issue/m-p/494275#M184885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;where should I do it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Dec 2013 15:00:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-with-variables-issue/m-p/494275#M184885</guid>
      <dc:creator />
      <dc:date>2013-12-17T15:00:44Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis with variables issue</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-with-variables-issue/m-p/494276#M184886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You go to Settings, then Variable Overview and change the value of &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;vMaxMonth&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; &lt;/SPAN&gt;from '12/1/2013' to '&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=max(all month)' without the quotes.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;In the same menu, but for vPrevMonth you change '11/1/2013' into '=max(all month,2)'?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Dec 2013 15:05:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-with-variables-issue/m-p/494276#M184886</guid>
      <dc:creator />
      <dc:date>2013-12-17T15:05:01Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis with variables issue</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-with-variables-issue/m-p/494277#M184887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;all data disappeared where I used this variables.&lt;/P&gt;&lt;P&gt;I think I have an issue with the set analysis and the syntax I'm writing with.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Dec 2013 15:11:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-with-variables-issue/m-p/494277#M184887</guid>
      <dc:creator />
      <dc:date>2013-12-17T15:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis with variables issue</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-with-variables-issue/m-p/494278#M184888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this is the load script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data_Table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Month, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Price plan], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lifecycle, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Value segment], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Network, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Usage type], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [active subscribers], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Subscriber Count], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Revenue, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mou, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arpu&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;D&gt;&lt;/D&gt;&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MAX_Month:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load date(max(Month)) as Max_Month&lt;/P&gt;&lt;P&gt;resident Data_Table;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let vMaxMonth=peek ('Max_Month',0,'MAX_Month');&lt;/P&gt;&lt;P&gt;let vPrevMonth=date(date(vMaxMonth)-31);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Dec 2013 15:16:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-with-variables-issue/m-p/494278#M184888</guid>
      <dc:creator />
      <dc:date>2013-12-17T15:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis with variables issue</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-with-variables-issue/m-p/494279#M184889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Boris Kacevich&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you might need to redefine the variables&lt;/P&gt;&lt;P&gt;vMaxMonth&amp;nbsp;&amp;nbsp; =Max(ALL Month)&lt;/P&gt;&lt;P&gt;vPrevMonth&amp;nbsp;&amp;nbsp; =AddMonths(Max(ALL Month), -1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then the expression you need to use in the text object is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;Month= {'$(vMaxMonth)'}&amp;gt;}Revenue) &amp;amp; ' ' &amp;amp; sum({&amp;lt;Month= {'$(vPrevMonth)'}&amp;gt;}Revenue)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it should work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Dec 2013 15:49:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-with-variables-issue/m-p/494279#M184889</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-17T15:49:04Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis with variables issue</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-with-variables-issue/m-p/494280#M184890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;seems to be you are complicating that by caculating in backend . you can caclulate it in front end also ...any way try this ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; 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-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-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sum(if(Month=$(vMaxMonth),Revenue))&amp;amp;' '&amp;amp;sum(if(Month=$(vPrevMonth),Revenue))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Dec 2013 16:45:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-with-variables-issue/m-p/494280#M184890</guid>
      <dc:creator>preminqlik</dc:creator>
      <dc:date>2013-12-17T16:45:19Z</dc:date>
    </item>
  </channel>
</rss>

