<?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 year Data in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Previous-year-Data/m-p/875637#M1016336</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;(Sum( {$&amp;lt;Date_Num={"&amp;gt;=$(=(StartDate))&amp;lt;=$(=(EndDate))"},Year=,Month=,Day=&amp;gt;}&amp;nbsp; Amount))&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;StartDate==num(max(addmonths(Date,-60)))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;EndDate==num(Max(Date))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Apr 2015 09:23:41 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-04-08T09:23:41Z</dc:date>
    <item>
      <title>Previous year Data</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-year-Data/m-p/875635#M1016334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have a requirement like whan i select one year in a list box&amp;nbsp; it has to displays last five years of data in straight table by excluding current selected year.Please help me frineds it is urgent requirement in my project.&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2015 09:16:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-year-Data/m-p/875635#M1016334</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-08T09:16:23Z</dc:date>
    </item>
    <item>
      <title>Re: Previous year Data</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-year-Data/m-p/875636#M1016335</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;if(GetSelectedCount(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Year&lt;/SPAN&gt;)=1,&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;Year={'&amp;gt;=$(=max(Year)-5)&amp;lt;$(=&lt;SPAN style="font-size: 13.3333330154419px;"&gt;max(Year))&lt;/SPAN&gt;'}&amp;gt;} YourMeasure),&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Sum(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;YourMeasure)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2015 09:18:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-year-Data/m-p/875636#M1016335</guid>
      <dc:creator>pokassov</dc:creator>
      <dc:date>2015-04-08T09:18:02Z</dc:date>
    </item>
    <item>
      <title>Re: Previous year Data</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-year-Data/m-p/875637#M1016336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;(Sum( {$&amp;lt;Date_Num={"&amp;gt;=$(=(StartDate))&amp;lt;=$(=(EndDate))"},Year=,Month=,Day=&amp;gt;}&amp;nbsp; Amount))&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;StartDate==num(max(addmonths(Date,-60)))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;EndDate==num(Max(Date))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2015 09:23:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-year-Data/m-p/875637#M1016336</guid>
      <dc:creator />
      <dc:date>2015-04-08T09:23:41Z</dc:date>
    </item>
    <item>
      <title>Re: Previous year Data</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-year-Data/m-p/875638#M1016337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Set up variables =GetFieldSelections(Year)-1, =GetFieldSelections(Year)-2, =GetFieldSelections(Year)-3, ... etc. for as many years as you wish to go back. Call them something like &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vSelectedLastYear, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vSelectedYear-2, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vSelectedYear-3,...&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use set analysis on the columns to only return the previous years you wish in each column&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e. &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum({$&amp;lt;Year={$(vSelectedLastYear)&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;}&amp;gt;} Value) will return the sum of all values for 2014 if I select 2015.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2015 09:31:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-year-Data/m-p/875638#M1016337</guid>
      <dc:creator>matthewjbryant</dc:creator>
      <dc:date>2015-04-08T09:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: Previous year Data</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-year-Data/m-p/875639#M1016338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;without using set analysis we can do it or not&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2015 09:34:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-year-Data/m-p/875639#M1016338</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-08T09:34:01Z</dc:date>
    </item>
    <item>
      <title>Re: Previous year Data</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-year-Data/m-p/875640#M1016339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cannot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2015 09:35:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-year-Data/m-p/875640#M1016339</guid>
      <dc:creator>pokassov</dc:creator>
      <dc:date>2015-04-08T09:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: Previous year Data</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-year-Data/m-p/875641#M1016340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why wouldn't you want to use Set Analysis? In my understanding Qlikview's filtering is centred around Set Analysis.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2015 09:36:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-year-Data/m-p/875641#M1016340</guid>
      <dc:creator>matthewjbryant</dc:creator>
      <dc:date>2015-04-08T09:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: Previous year Data</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-year-Data/m-p/875642#M1016341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Сергей Покасов,&lt;/P&gt;&lt;P&gt;in my staringt table 'council code effective date' and 'council name' are my dimensions 'agentid' and ' year 'are filters .if a click on agent id and year it will show last 5 years data with out current selected year.can u please give me the detailed code for this &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2015 09:42:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-year-Data/m-p/875642#M1016341</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-08T09:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: Previous year Data</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-year-Data/m-p/875643#M1016342</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;Without using set analysis it is no way possible, Qlikview displays data based on the Current Selections.&amp;nbsp; You can also try introducing a new mapping table like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Year,&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;FROM ActualData;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;YearMapping:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;INLINE [&lt;/P&gt;&lt;P&gt;Year, Last5YearsField&lt;/P&gt;&lt;P&gt;2015, 2015&lt;/P&gt;&lt;P&gt;2015, 2014&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;2015, 2014&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;2015, 2014&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;2015, 2014&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;2014, 2013&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;2014, 2013&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;2014, 2013&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;2014, 2013&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;2014, 2013&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Like this you have to create mapping table, and then use &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Last5YearsField for year selection.&amp;nbsp; This way you can achieve, &lt;STRONG&gt;but it is not suggestible&lt;/STRONG&gt;.&amp;nbsp; &lt;STRONG&gt;Using Set Analysis is the better approach, I am not sure why you are not interested in Set analysis.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Hope this helps you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Jagan.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2015 09:45:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-year-Data/m-p/875643#M1016342</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-04-08T09:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: Previous year Data</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-year-Data/m-p/875644#M1016343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the expression is the same like I wrote above.&lt;/P&gt;&lt;P&gt;I don't exclude agentid from filter. &lt;/P&gt;&lt;P&gt;So if you select agentid and year, you will see data for 5 years except selected for selected agentid.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2015 09:48:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-year-Data/m-p/875644#M1016343</guid>
      <dc:creator>pokassov</dc:creator>
      <dc:date>2015-04-08T09:48:02Z</dc:date>
    </item>
  </channel>
</rss>

