<?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 Using a current selection (YEAR) to look at Previous Year with set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-a-current-selection-YEAR-to-look-at-Previous-Year-with-set/m-p/620763#M228526</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 14pt;"&gt;Based on a current selection (of DEPARTURE YEAR) im trying to look at data from that current selected year minus one year, and for (BOOKED_DATE)&amp;nbsp; to be a year ago to date. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 14pt;"&gt;So a total snapshot of the situation this time last year - I've tried the below set analyis and this does not work - how can I combine the field selection?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 14pt;"&gt;DEPARTURE_YEAR&lt;/SPAN&gt;&lt;SPAN style="font-size: 14pt;"&gt; = {&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 14pt;"&gt;$(=GetFieldSelection(DEPARTURE_YEAR)-1)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 14pt;"&gt;}&amp;gt;}&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 14pt;"&gt;BOOKED_DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 14pt;"&gt; &amp;lt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 14pt;"&gt;dayend&lt;/SPAN&gt;&lt;SPAN style="font-size: 14pt;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 14pt;"&gt;TODAY&lt;/SPAN&gt;&lt;SPAN style="font-size: 14pt;"&gt;(),-365, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 14pt;"&gt;PASS_NO&lt;/SPAN&gt;&lt;SPAN style="font-size: 14pt;"&gt;))&lt;BR /&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Feb 2014 12:18:28 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-02-07T12:18:28Z</dc:date>
    <item>
      <title>Using a current selection (YEAR) to look at Previous Year with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-current-selection-YEAR-to-look-at-Previous-Year-with-set/m-p/620763#M228526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 14pt;"&gt;Based on a current selection (of DEPARTURE YEAR) im trying to look at data from that current selected year minus one year, and for (BOOKED_DATE)&amp;nbsp; to be a year ago to date. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 14pt;"&gt;So a total snapshot of the situation this time last year - I've tried the below set analyis and this does not work - how can I combine the field selection?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 14pt;"&gt;DEPARTURE_YEAR&lt;/SPAN&gt;&lt;SPAN style="font-size: 14pt;"&gt; = {&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 14pt;"&gt;$(=GetFieldSelection(DEPARTURE_YEAR)-1)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 14pt;"&gt;}&amp;gt;}&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 14pt;"&gt;BOOKED_DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 14pt;"&gt; &amp;lt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 14pt;"&gt;dayend&lt;/SPAN&gt;&lt;SPAN style="font-size: 14pt;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 14pt;"&gt;TODAY&lt;/SPAN&gt;&lt;SPAN style="font-size: 14pt;"&gt;(),-365, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 14pt;"&gt;PASS_NO&lt;/SPAN&gt;&lt;SPAN style="font-size: 14pt;"&gt;))&lt;BR /&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Feb 2014 12:18:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-current-selection-YEAR-to-look-at-Previous-Year-with-set/m-p/620763#M228526</guid>
      <dc:creator />
      <dc:date>2014-02-07T12:18:28Z</dc:date>
    </item>
    <item>
      <title>Re: Using a current selection (YEAR) to look at Previous Year with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-current-selection-YEAR-to-look-at-Previous-Year-with-set/m-p/620764#M228527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi James,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are using any aggregation function?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Shameem. &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Feb 2014 12:30:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-current-selection-YEAR-to-look-at-Previous-Year-with-set/m-p/620764#M228527</guid>
      <dc:creator />
      <dc:date>2014-02-07T12:30:22Z</dc:date>
    </item>
    <item>
      <title>Re: Using a current selection (YEAR) to look at Previous Year with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-current-selection-YEAR-to-look-at-Previous-Year-with-set/m-p/620765#M228528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No idea if you want to use count or max or sum or whatever, but the set modifier for booked date wasn't correct. Try something like:&lt;/P&gt;&lt;P&gt;count({$&amp;lt;DEPARTURE_YEAR = {'$(=max(DEPARTURE_YEAR)-1)'}, BOOKED_DATE={'&amp;lt;$(=makedate(max(DEPARTURE_YEAR)-1))+&lt;SPAN class="Bold"&gt;DayNumberOfYear&lt;/SPAN&gt;(today())+1)'}&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; PASS_NO)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Feb 2014 13:44:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-current-selection-YEAR-to-look-at-Previous-Year-with-set/m-p/620765#M228528</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-02-07T13:44:28Z</dc:date>
    </item>
    <item>
      <title>Re: Using a current selection (YEAR) to look at Previous Year with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-current-selection-YEAR-to-look-at-Previous-Year-with-set/m-p/620766#M228529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Gusbert, I think I am almost there but essentially im using the Getfieldselection , which means the departure is variable. So if 2014 was selected I want to see 2014 and&amp;nbsp; 2013 data (a snap shot of this time last year). So a Year on Year comparison. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Feb 2014 11:51:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-current-selection-YEAR-to-look-at-Previous-Year-with-set/m-p/620766#M228529</guid>
      <dc:creator />
      <dc:date>2014-02-10T11:51:29Z</dc:date>
    </item>
  </channel>
</rss>

