<?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 not working for previous year in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/set-analysis-not-working-for-previous-year/m-p/1115887#M903396</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&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; font-size: 13px;"&gt;&lt;STRONG&gt;=Count({$&amp;lt;RegYear = {$(=$(v_year) - 1)}&amp;gt;} DISTINCT person_id)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Jul 2016 11:28:27 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-07-08T11:28:27Z</dc:date>
    <item>
      <title>set analysis not working for previous year</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-not-working-for-previous-year/m-p/1115885#M903394</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;Just trying to get some data using set analysis but running into a problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a few buttons at the top where i can set the year i'm interested in &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and putting this expression in &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count({$&amp;lt;RegYear={$(v_year)}&amp;gt;} distinct person_id)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;works fine regardless of the year I select. e.g. 2016, 2015, 2014 , all bring back data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i add a 2nd expression which tries to pull the previous years data using the expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count({$&amp;lt;RegYear = {$(v_year - 1) }&amp;gt;} distinct person_id)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the output is just a row of 0's &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone spot any issues with this 2nd formula please&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-not-working-for-previous-year/m-p/1115885#M903394</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis not working for previous year</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-not-working-for-previous-year/m-p/1115886#M903395</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; font-size: 13px;"&gt;Try this..&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; font-size: 13px;"&gt;count({$&amp;lt;RegYear={$(v_year)-1}&amp;gt;} distinct person_id)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2016 11:06:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-not-working-for-previous-year/m-p/1115886#M903395</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-08T11:06:37Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis not working for previous year</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-not-working-for-previous-year/m-p/1115887#M903396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&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; font-size: 13px;"&gt;&lt;STRONG&gt;=Count({$&amp;lt;RegYear = {$(=$(v_year) - 1)}&amp;gt;} DISTINCT person_id)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2016 11:28:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-not-working-for-previous-year/m-p/1115887#M903396</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-07-08T11:28:27Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis not working for previous year</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-not-working-for-previous-year/m-p/1115888#M903397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=Sum({&amp;lt;RegYear={"$(=Max(RegYear)-1)"}&amp;gt;} &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;DISTINCT person_id&lt;/SPAN&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2016 11:39:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-not-working-for-previous-year/m-p/1115888#M903397</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2016-07-08T11:39:59Z</dc:date>
    </item>
  </channel>
</rss>

