<?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: year from Date full Format in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/year-from-Date-full-Format/m-p/825491#M1047302</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;max(year(date_fullformat)&amp;nbsp; as year,&lt;/P&gt;&lt;P&gt;max(year(date_fullformat)-1 as yyear&amp;nbsp;&amp;nbsp; .........&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Nov 2014 13:03:11 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-11-13T13:03:11Z</dc:date>
    <item>
      <title>year from Date full Format</title>
      <link>https://community.qlik.com/t5/QlikView/year-from-Date-full-Format/m-p/825490#M1047301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can we achieve only current ,previous ,before previous year from full pledged format of date field.&lt;/P&gt;&lt;P&gt;E.g;&lt;/P&gt;&lt;P&gt;Date_FullFormat&lt;/P&gt;&lt;P&gt;12/11/2014&lt;/P&gt;&lt;P&gt;14/12/2013&lt;/P&gt;&lt;P&gt;12/10/2012&lt;/P&gt;&lt;P&gt;14/11/2010&lt;/P&gt;&lt;P&gt;14/06/2004&lt;/P&gt;&lt;P&gt;15/08/2000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to show only current ,previous ,before previous year like 2014,2013,2012.&lt;/P&gt;&lt;P&gt;I need to write it in list box expression.Please anyone help me out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2014 12:56:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/year-from-Date-full-Format/m-p/825490#M1047301</guid>
      <dc:creator>krishna20</dc:creator>
      <dc:date>2014-11-13T12:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: year from Date full Format</title>
      <link>https://community.qlik.com/t5/QlikView/year-from-Date-full-Format/m-p/825491#M1047302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;max(year(date_fullformat)&amp;nbsp; as year,&lt;/P&gt;&lt;P&gt;max(year(date_fullformat)-1 as yyear&amp;nbsp;&amp;nbsp; .........&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2014 13:03:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/year-from-Date-full-Format/m-p/825491#M1047302</guid>
      <dc:creator />
      <dc:date>2014-11-13T13:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: year from Date full Format</title>
      <link>https://community.qlik.com/t5/QlikView/year-from-Date-full-Format/m-p/825492#M1047303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2014 13:12:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/year-from-Date-full-Format/m-p/825492#M1047303</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-11-13T13:12:27Z</dc:date>
    </item>
    <item>
      <title>Re: year from Date full Format</title>
      <link>https://community.qlik.com/t5/QlikView/year-from-Date-full-Format/m-p/825493#M1047304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anbu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your reply,its working purely.But, there is a performance issue with this expression.its taking time to filter the years when we selected the values in the list box.what will be the issue,can u explain it clearly?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2014 13:38:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/year-from-Date-full-Format/m-p/825493#M1047304</guid>
      <dc:creator>krishna20</dc:creator>
      <dc:date>2014-11-13T13:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: year from Date full Format</title>
      <link>https://community.qlik.com/t5/QlikView/year-from-Date-full-Format/m-p/825494#M1047305</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;Year(today()) as current_year&lt;/P&gt;&lt;P&gt;year(today())-1 as Prev_year,&lt;/P&gt;&lt;P&gt;year(today())-2 as second_prev_year&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2014 13:48:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/year-from-Date-full-Format/m-p/825494#M1047305</guid>
      <dc:creator />
      <dc:date>2014-11-13T13:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: year from Date full Format</title>
      <link>https://community.qlik.com/t5/QlikView/year-from-Date-full-Format/m-p/825495#M1047306</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 there is performance issue when we use some calculated expression in the list box it calculate and create the list but when large data set is there and many calculation is available in the list box. Better if you can create one field in the script and then use it for the previous year and PPYear. Or you can try this in the front&amp;nbsp; end also with expression i believe it works well also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Write this in the list box if you have year field in the script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(&lt;STRONG&gt;Year&lt;/STRONG&gt; &amp;lt;= Year(Today()) and &lt;STRONG&gt;Year&lt;/STRONG&gt; &amp;gt;= Year(Today())-2,&lt;STRONG&gt;Year&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or in the load script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Years:&lt;/P&gt;&lt;P&gt;LOAD Date(Date#(Date_FullFormat,'DD/MM/YYYY'),'DD/MM/YYYY') AS Date_FullFormat,&lt;/P&gt;&lt;P&gt;Year(Date(Date#(Date_FullFormat,'DD/MM/YYYY'),'DD/MM/YYYY')) as Year;&lt;/P&gt;&lt;P&gt;LOAD * Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;Date_FullFormat&lt;/P&gt;&lt;P&gt;12/11/2014&lt;/P&gt;&lt;P&gt;14/12/2013&lt;/P&gt;&lt;P&gt;12/10/2012&lt;/P&gt;&lt;P&gt;14/11/2010&lt;/P&gt;&lt;P&gt;14/06/2004&lt;/P&gt;&lt;P&gt;15/08/2000&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left Join&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;if(Year &amp;lt;= Year(Today()) and Year &amp;gt;= Year(Today())-2,1,0) as PreviousYear&lt;/P&gt;&lt;P&gt;Resident Years;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="71167" alt="chart.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/71167_chart.png" /&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2014 13:55:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/year-from-Date-full-Format/m-p/825495#M1047306</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-11-13T13:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: year from Date full Format</title>
      <link>https://community.qlik.com/t5/QlikView/year-from-Date-full-Format/m-p/825496#M1047307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As Anand said, performance issue is due to calculation done at UI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can create Year field in script and use that in List box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load *,If(Match(Year(Today())- Year(Dt),1,2,0),Year(Dt)) As Yr;&lt;/P&gt;&lt;P&gt;Load Date#(Dt,'DD/MM/YYYY') As Dt Inline [&lt;/P&gt;&lt;P&gt;Dt&lt;/P&gt;&lt;P&gt;12/11/2014&lt;/P&gt;&lt;P&gt;14/12/2013&lt;/P&gt;&lt;P&gt;12/10/2012&lt;/P&gt;&lt;P&gt;14/11/2010&lt;/P&gt;&lt;P&gt;14/06/2004&lt;/P&gt;&lt;P&gt;15/08/2000 ];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2014 14:03:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/year-from-Date-full-Format/m-p/825496#M1047307</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-11-13T14:03:15Z</dc:date>
    </item>
  </channel>
</rss>

