<?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 Help with Set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-with-Set-analysis/m-p/923760#M652710</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;My requirement is to get records of previous year when a particulat year is selected .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum of Sales&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the same,&amp;nbsp; I have written the following code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;CurrYear={$(=CurrYear-1)} &amp;gt;}Sales).&lt;/P&gt;&lt;P&gt;So if Curryear is selected as 2015 then i should sum up 2014 records. The formula is working fine when a particular year is selected.&lt;/P&gt;&lt;P&gt;BUt I have a chart where my Curryear is the dimension and my above formula is failing and returning 0. &lt;/P&gt;&lt;P&gt;Chart is Bar chart and the dimension is Curryear (2013,2014,2015, etc). For all years it is showing as 0 &lt;/P&gt;&lt;P&gt;Can any one help on this problem? I think we need to change the set analysis, CurrYear = ???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Neehu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 31 Jul 2015 09:48:17 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-07-31T09:48:17Z</dc:date>
    <item>
      <title>Help with Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Set-analysis/m-p/923760#M652710</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;My requirement is to get records of previous year when a particulat year is selected .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum of Sales&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the same,&amp;nbsp; I have written the following code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;CurrYear={$(=CurrYear-1)} &amp;gt;}Sales).&lt;/P&gt;&lt;P&gt;So if Curryear is selected as 2015 then i should sum up 2014 records. The formula is working fine when a particular year is selected.&lt;/P&gt;&lt;P&gt;BUt I have a chart where my Curryear is the dimension and my above formula is failing and returning 0. &lt;/P&gt;&lt;P&gt;Chart is Bar chart and the dimension is Curryear (2013,2014,2015, etc). For all years it is showing as 0 &lt;/P&gt;&lt;P&gt;Can any one help on this problem? I think we need to change the set analysis, CurrYear = ???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Neehu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2015 09:48:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Set-analysis/m-p/923760#M652710</guid>
      <dc:creator />
      <dc:date>2015-07-31T09:48:17Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Set-analysis/m-p/923761#M652711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The set of a set analysis expression is calculated at the chart level, not at the row level. That's why your expression doesn't work with Curryear as dimension unless you select only one value in the Curryear dimension. You can try one of the approaches described in this document: &lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-4252" style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3778c7;"&gt;Calculating rolling n-period totals, averages or other aggregations&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2015 09:51:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Set-analysis/m-p/923761#M652711</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-07-31T09:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Set-analysis/m-p/923762#M652712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You cannot use a set expression like that. The set expression is calculated once for the chart/table and has no knowledge of the dimension values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2015 09:53:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Set-analysis/m-p/923762#M652712</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-07-31T09:53:10Z</dc:date>
    </item>
  </channel>
</rss>

