<?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: I have 5 Years data, i want to show current year and previous years. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/I-have-5-Years-data-i-want-to-show-current-year-and-previous/m-p/722479#M669231</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Probably in your chart you have year as dimension,&lt;/P&gt;&lt;P&gt;if yes then write in place of year (calculated dimension) &lt;/P&gt;&lt;P&gt;=If(year &amp;gt;= year(today())-1, year, null())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;anc check the box "Suppress when value is null"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Oct 2014 12:38:43 GMT</pubDate>
    <dc:creator>alexandros17</dc:creator>
    <dc:date>2014-10-29T12:38:43Z</dc:date>
    <item>
      <title>I have 5 Years data, i want to show current year and previous years.</title>
      <link>https://community.qlik.com/t5/QlikView/I-have-5-Years-data-i-want-to-show-current-year-and-previous/m-p/722478#M669229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friend,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please explain the query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&amp;amp;Regards&lt;/P&gt;&lt;P&gt;Ramesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 12:35:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/I-have-5-Years-data-i-want-to-show-current-year-and-previous/m-p/722478#M669229</guid>
      <dc:creator />
      <dc:date>2014-10-29T12:35:57Z</dc:date>
    </item>
    <item>
      <title>Re: I have 5 Years data, i want to show current year and previous years.</title>
      <link>https://community.qlik.com/t5/QlikView/I-have-5-Years-data-i-want-to-show-current-year-and-previous/m-p/722479#M669231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Probably in your chart you have year as dimension,&lt;/P&gt;&lt;P&gt;if yes then write in place of year (calculated dimension) &lt;/P&gt;&lt;P&gt;=If(year &amp;gt;= year(today())-1, year, null())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;anc check the box "Suppress when value is null"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 12:38:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/I-have-5-Years-data-i-want-to-show-current-year-and-previous/m-p/722479#M669231</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2014-10-29T12:38:43Z</dc:date>
    </item>
    <item>
      <title>Re: I have 5 Years data, i want to show current year and previous years.</title>
      <link>https://community.qlik.com/t5/QlikView/I-have-5-Years-data-i-want-to-show-current-year-and-previous/m-p/722480#M669232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please see the attached file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select any Year and it will dynamically calculate the Current Vs Previous Year data&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 12:57:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/I-have-5-Years-data-i-want-to-show-current-year-and-previous/m-p/722480#M669232</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2014-10-29T12:57:11Z</dc:date>
    </item>
    <item>
      <title>Re: I have 5 Years data, i want to show current year and previous years.</title>
      <link>https://community.qlik.com/t5/QlikView/I-have-5-Years-data-i-want-to-show-current-year-and-previous/m-p/722481#M669233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="text-align: justify;"&gt;Hi Rameshchetu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;If we want to compare current year sale with previous year, previous year sales should reflect values in relation to current selection of year. For example if current selection of year is 2012, previous year should be 2011 and for current selection of year 2013, previous year is 2012.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; therefore&amp;nbsp; try&lt;STRONG&gt;, '=Sum({$&amp;lt;Year = {$(Max(Year)-1)}&amp;gt;} Sales)'&lt;/STRONG&gt; this will return sales for the previous year, alternatively, you can do this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;'=sum({&amp;lt;Year={$(=Max(Year))},Company_Name=P({&amp;lt;Year={$(=Max(Year)-1)}&amp;gt;}Company_Name)&amp;gt;}Sale)', which should return sales with respective company names who made sales in the current year and previous year.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Dlamini&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2015 08:19:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/I-have-5-Years-data-i-want-to-show-current-year-and-previous/m-p/722481#M669233</guid>
      <dc:creator />
      <dc:date>2015-01-15T08:19:34Z</dc:date>
    </item>
  </channel>
</rss>

