<?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 Getting Prior Year in Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Getting-Prior-Year-in-Set-Analysis/m-p/1004167#M468117</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am stuck with a bit of set analysis. I want to display this year's and last year's totals, using year as a dimension. I can get everything but have to enter last year. I cannot get anything to work. Any help? The formula I am using is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({1&amp;lt;[Sale WeekNum]={"=Week(GetFieldSelections([Sale Week Of]))"}&amp;gt;*(1&amp;lt;[Sale Year]={"=Year(GetFieldSelections([Sale Week Of]))"}&amp;gt; + 1&amp;lt;[Sale Year]={"2014"}&amp;gt;)}[SALE FLAG])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again, if I replace 2014 with any formula, I lose those. I have tried many variations of &lt;SPAN style="font-size: 13.3333px;"&gt;{"=Year(GetFieldSelections([Sale Week Of]))-1"} to no avail. I have tried AddMonths. Thanks for your help. (I hope I have posted this in the correct place.)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Sep 2015 19:24:45 GMT</pubDate>
    <dc:creator>timothyj</dc:creator>
    <dc:date>2015-09-22T19:24:45Z</dc:date>
    <item>
      <title>Getting Prior Year in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-Prior-Year-in-Set-Analysis/m-p/1004167#M468117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am stuck with a bit of set analysis. I want to display this year's and last year's totals, using year as a dimension. I can get everything but have to enter last year. I cannot get anything to work. Any help? The formula I am using is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({1&amp;lt;[Sale WeekNum]={"=Week(GetFieldSelections([Sale Week Of]))"}&amp;gt;*(1&amp;lt;[Sale Year]={"=Year(GetFieldSelections([Sale Week Of]))"}&amp;gt; + 1&amp;lt;[Sale Year]={"2014"}&amp;gt;)}[SALE FLAG])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again, if I replace 2014 with any formula, I lose those. I have tried many variations of &lt;SPAN style="font-size: 13.3333px;"&gt;{"=Year(GetFieldSelections([Sale Week Of]))-1"} to no avail. I have tried AddMonths. Thanks for your help. (I hope I have posted this in the correct place.)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 19:24:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-Prior-Year-in-Set-Analysis/m-p/1004167#M468117</guid>
      <dc:creator>timothyj</dc:creator>
      <dc:date>2015-09-22T19:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Prior Year in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-Prior-Year-in-Set-Analysis/m-p/1004168#M468118</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;replace this&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;1&amp;lt;[Sale Year]={"2014"}&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;&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;with 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; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;datefield={"&amp;gt;=$(=Num(YearStart(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;&lt;STRONG&gt;Max(&lt;SPAN style="color: #0000ff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;datefield&lt;/SPAN&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;, -1)))&amp;lt;=$(=AddYear(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;&lt;STRONG&gt;Max(&lt;SPAN style="color: #0000ff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;datefield&lt;/SPAN&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;, -1))"}&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2015 06:39:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-Prior-Year-in-Set-Analysis/m-p/1004168#M468118</guid>
      <dc:creator>arulsettu</dc:creator>
      <dc:date>2015-09-23T06:39:51Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Prior Year in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-Prior-Year-in-Set-Analysis/m-p/1004169#M468119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Between the time I submitted this and it was posted, I got a working solution for the previous year:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;[Sale Year]={$(=Year(GetFieldSelections([Sale Week Of]))-1)}&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also changed:&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;&amp;lt;[Sale Year]={"=Year(GetFieldSelections([Sale Week Of]))"}&amp;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;to&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;lt;[Sale Year]={$(=Year(GetFieldSelections([Sale Week Of])))}&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I am going to have to study up on the difference between using quotation marks and dollar sign expansion in expressions.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Thanks!&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2015 12:07:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-Prior-Year-in-Set-Analysis/m-p/1004169#M468119</guid>
      <dc:creator>timothyj</dc:creator>
      <dc:date>2015-09-23T12:07:00Z</dc:date>
    </item>
  </channel>
</rss>

