<?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 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/1207616#M387885</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you John, I will try to implement using the AsOf table, and will get back.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; -PV &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Nov 2016 14:44:41 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-11-04T14:44:41Z</dc:date>
    <item>
      <title>Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/1207614#M387883</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;I am trying to write an expression to get data for Previous Month and Jan to Previous month with the fields Num and Denum which are Integers. I have the StartDate field using which I have &lt;/P&gt;&lt;P&gt;written&lt;/P&gt;&lt;P&gt;Year(StartDate) as YEAR,&lt;/P&gt;&lt;P&gt; Month(StartDate)as MONTH,&lt;/P&gt;&lt;P&gt; 'Q' &amp;amp; ceil(month(StartDate)/3)as Quarter,&lt;/P&gt;&lt;P&gt;&amp;nbsp; date(StartDate,'MMM YY')as YearMonth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please help me to write an expression in set analysis to get &lt;SPAN style="font-size: 13.3333px;"&gt;Previous Month and Jan to Previous month&amp;nbsp; values(should be shown in percentage with 3 decimal values).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;( Also help me to understand writing equation using set analysis(any good resource or document) )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;PV&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2016 15:26:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/1207614#M387883</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-03T15:26:07Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/1207615#M387884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe something like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;sum({&amp;lt;YearMonth={'$(=date(addmonths(YearMonth,-1),'MMM YY'))'},YEAR,MONTH,Quarter,StartDate&amp;gt;} Num)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it only works if you can only select one month at a time. And in any case, I probably wouldn't handle this with set analysis. I'd probably handle it with an AsOf table.&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;AsOfYearMonth,AsOfType,YearMonth&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;May 2016,Current,May 2016&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;May 2016,Previous,Apr 2016&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;May 2016,Year to Prev,Apr 2016&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;May 2016,Year to Prev,Mar 2016&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;May 2016,Year to Prev,Feb 2016&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;May 2016,Year to Prev,Jan 2016&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then you could do something like this to build a chart comparing the current month to the previous month and Jan to previous month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Dimension 1 = AsOfYearMonth&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Dimension 2 = AsOfType&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Expression&amp;nbsp; = sum(Num)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically, move the complexity into the script rather than in the objects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as set analysis resources, I mostly just read the help text, and then examples from the forum.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Nov 2016 00:11:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/1207615#M387884</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2016-11-04T00:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/1207616#M387885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you John, I will try to implement using the AsOf table, and will get back.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; -PV &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Nov 2016 14:44:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/1207616#M387885</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-04T14:44:41Z</dc:date>
    </item>
  </channel>
</rss>

