<?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: Previous Years data by selecting a Year in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Previous-Years-data-by-selecting-a-Year/m-p/926723#M951987</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mohan,&lt;/P&gt;&lt;P&gt;Try something Like..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=sum({&amp;lt;Year={"&amp;gt;=$(=Year(AddYears(MakeDate(Year,1,1),-5)))&amp;lt;=$(=Year)"}&amp;gt;}Sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Dec 2015 16:42:27 GMT</pubDate>
    <dc:creator>settu_periasamy</dc:creator>
    <dc:date>2015-12-01T16:42:27Z</dc:date>
    <item>
      <title>Previous Years data by selecting a Year</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Years-data-by-selecting-a-Year/m-p/926719#M951983</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;I have a field like YEAR. By selecting a year in this field, I want to see the data corresponding to 5 years of data. I mean if I select 2015, I want to get data from 2010 to 2015 &amp;amp;if i select 2010 I need 2005 to 2010 data etc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So how can i get that ?&lt;/P&gt;&lt;P&gt;What is the set expression for that ?&lt;/P&gt;&lt;P&gt;And where I have to mention it ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Dec 2015 07:07:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Years-data-by-selecting-a-Year/m-p/926719#M951983</guid>
      <dc:creator>mohan2391</dc:creator>
      <dc:date>2015-12-01T07:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Years data by selecting a Year</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Years-data-by-selecting-a-Year/m-p/926720#M951984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mohan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I just check if you need the 5 years as one number (i.e. a total) or as separate entities?&amp;nbsp; If they are needed separately, I would have 5 expressions along the lines of…&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum ({$&amp;lt;Year = {$(=max(Year)-1)}&amp;gt;}&amp;nbsp; [CashValueField])&lt;/P&gt;&lt;P&gt;=Sum ({$&amp;lt;Year = {$(=max(Year)-2)}&amp;gt;}&amp;nbsp; [CashValueField])&lt;/P&gt;&lt;P&gt;=Sum ({$&amp;lt;Year = {$(=max(Year)-3)}&amp;gt;}&amp;nbsp; [CashValueField])&lt;/P&gt;&lt;P&gt;=Sum ({$&amp;lt;Year = {$(=max(Year)-4)}&amp;gt;}&amp;nbsp; [CashValueField])&lt;/P&gt;&lt;P&gt;=Sum ({$&amp;lt;Year = {$(=max(Year)-5)}&amp;gt;}&amp;nbsp; [CashValueField])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that this is of use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jason.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Dec 2015 14:06:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Years-data-by-selecting-a-Year/m-p/926720#M951984</guid>
      <dc:creator />
      <dc:date>2015-12-01T14:06:29Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Years data by selecting a Year</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Years-data-by-selecting-a-Year/m-p/926721#M951985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And if as one number...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=(Sum ({$&amp;lt;Year = {$(=max(Year)-1)}&amp;gt;}&amp;nbsp; [CashValueField]))+(Sum ({$&amp;lt;Year = {$(=max(Year)-2)}&amp;gt;}&amp;nbsp; [CashValueField]))+(Sum ({$&amp;lt;Year = {$(=max(Year)-3)}&amp;gt;}&amp;nbsp; [CashValueField]))+(Sum ({$&amp;lt;Year = {$(=max(Year)-4)}&amp;gt;}&amp;nbsp; [CashValueField]))+(Sum ({$&amp;lt;Year = {$(=max(Year)-5)}&amp;gt;}&amp;nbsp; [CashValueField]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jason.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Dec 2015 14:08:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Years-data-by-selecting-a-Year/m-p/926721#M951985</guid>
      <dc:creator />
      <dc:date>2015-12-01T14:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Years data by selecting a Year</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Years-data-by-selecting-a-Year/m-p/926722#M951986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This may help ? :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4394"&gt;Dates in Set Analysis&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Dec 2015 14:15:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Years-data-by-selecting-a-Year/m-p/926722#M951986</guid>
      <dc:creator>richard_chilvers</dc:creator>
      <dc:date>2015-12-01T14:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Years data by selecting a Year</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Years-data-by-selecting-a-Year/m-p/926723#M951987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mohan,&lt;/P&gt;&lt;P&gt;Try something Like..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=sum({&amp;lt;Year={"&amp;gt;=$(=Year(AddYears(MakeDate(Year,1,1),-5)))&amp;lt;=$(=Year)"}&amp;gt;}Sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Dec 2015 16:42:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Years-data-by-selecting-a-Year/m-p/926723#M951987</guid>
      <dc:creator>settu_periasamy</dc:creator>
      <dc:date>2015-12-01T16:42:27Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Years data by selecting a Year</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Years-data-by-selecting-a-Year/m-p/926724#M951988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if your YEAR field contains only Years (2011,2012,..) you need to use this Expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=sum({&amp;lt;Year={"&amp;gt;=$(=Year-5))&amp;lt;=$(=Year)"}&amp;gt;}Sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Dec 2015 16:54:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Years-data-by-selecting-a-Year/m-p/926724#M951988</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-01T16:54:08Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Years data by selecting a Year</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Years-data-by-selecting-a-Year/m-p/926725#M951989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ya, Thank you everyone.&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mohan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2015 05:56:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Years-data-by-selecting-a-Year/m-p/926725#M951989</guid>
      <dc:creator>mohan2391</dc:creator>
      <dc:date>2015-12-02T05:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Years data by selecting a Year</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Years-data-by-selecting-a-Year/m-p/926726#M951990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mohan, &lt;/P&gt;&lt;P&gt;You can try with &lt;A href="https://community.qlik.com/qlik-users/53695"&gt;HRLinder&lt;/A&gt; Suggestion. It looks good. if your year Field Contains only Year like 2011, 2012 etc..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2015 06:31:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Years-data-by-selecting-a-Year/m-p/926726#M951990</guid>
      <dc:creator>settu_periasamy</dc:creator>
      <dc:date>2015-12-02T06:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Years data by selecting a Year</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Years-data-by-selecting-a-Year/m-p/926727#M951991</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;Yes I have years like 2010,2011 etc only. But by applying Linder's expression, I'm getting total of all the years upto current selected year. I don't know why ? So i tried yours, it is fine for me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2015 06:46:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Years-data-by-selecting-a-Year/m-p/926727#M951991</guid>
      <dc:creator>mohan2391</dc:creator>
      <dc:date>2015-12-02T06:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Years data by selecting a Year</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Years-data-by-selecting-a-Year/m-p/926728#M951992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Settu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I posted a similar problem, here you see only the previous year, I wanted to have periods from last year period to selected year period. &lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I have my data:&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;load * Inline [&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Year, Period, Sales&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;2012,1,1000&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;2012,2,2000&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;2012,3,3000&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;2012,4,1000&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;2012,5,1000&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;2012,6,1000&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;2012,7,1000&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;2013,1,1000&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;2013,2,1000&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;2013,3,1000&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;2013,4,1000&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;2013,5,1000&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;2013,6,1000&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I have two listboxes for Year and Period. When user selects 2013 and month 6, I want to display the details from 2012 period 6 to 2013 period 5 in a straight table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Can you please help. I am unable to attach a sample qvw file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2015 06:51:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Years-data-by-selecting-a-Year/m-p/926728#M951992</guid>
      <dc:creator />
      <dc:date>2015-12-02T06:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Years data by selecting a Year</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Years-data-by-selecting-a-Year/m-p/926729#M951993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is worked but a small correction. There is 1 extra closed bracket after 5. That's why i'm getting total sales till current year for every selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=sum({&amp;lt;Year={"&amp;gt;=$(=Year-5)&amp;lt;=$(=Year)"}&amp;gt;}Sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Thank You..&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Dec 2015 06:07:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Years-data-by-selecting-a-Year/m-p/926729#M951993</guid>
      <dc:creator>mohan2391</dc:creator>
      <dc:date>2015-12-05T06:07:47Z</dc:date>
    </item>
  </channel>
</rss>

