<?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 function not working in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/year-function-not-working/m-p/1020452#M345263</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;your field [Actual Deployment Date] has a lenght of 11 characters! maybe there is a space at end&lt;/P&gt;&lt;P&gt;so either drop the space or use another function&lt;/P&gt;&lt;P&gt;with year(left([Actual Deployment Date],10)) it works&lt;BR /&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Jan 2016 14:47:29 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-01-18T14:47:29Z</dc:date>
    <item>
      <title>year function not working</title>
      <link>https://community.qlik.com/t5/QlikView/year-function-not-working/m-p/1020447#M345258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attaching qvw for refernce.&lt;/P&gt;&lt;P&gt;I have applied Year function on date field but not giving any value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jan 2016 14:38:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/year-function-not-working/m-p/1020447#M345258</guid>
      <dc:creator />
      <dc:date>2016-01-18T14:38:51Z</dc:date>
    </item>
    <item>
      <title>Re: year function not working</title>
      <link>https://community.qlik.com/t5/QlikView/year-function-not-working/m-p/1020448#M345259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try the SET statement in the script to set the date format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff0000;"&gt;SET DateFormat=YYYY-MM-DD';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DimRelease:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Deployment Date],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Actual Deployment Date]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[20161815715.xlsx]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(ooxml, embedded labels, table is RMS_Dashboard20161815715);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that your date is not read as date by QlikView. Once you specify the date format, it will be read properly and you will be able to use Year, Month, MonthName and other Date and Time functions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jan 2016 14:40:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/year-function-not-working/m-p/1020448#M345259</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-18T14:40:47Z</dc:date>
    </item>
    <item>
      <title>Re: year function not working</title>
      <link>https://community.qlik.com/t5/QlikView/year-function-not-working/m-p/1020449#M345260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is other date fields in different format like 'DD/MM/YYYY'. so what to do for those fields&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jan 2016 14:42:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/year-function-not-working/m-p/1020449#M345260</guid>
      <dc:creator />
      <dc:date>2016-01-18T14:42:23Z</dc:date>
    </item>
    <item>
      <title>Re: year function not working</title>
      <link>https://community.qlik.com/t5/QlikView/year-function-not-working/m-p/1020450#M345261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then I would use Date#() function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DimRelease:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Deployment Date],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #ff0000;"&gt; Date(Date#(&lt;/SPAN&gt;[Actual Deployment Date]&lt;SPAN style="color: #ff0000;"&gt;, 'YYYY-MM-DD'), 'YYYY-MM-DD') as [Actual Deployment Date]&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[20161815715.xlsx]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(ooxml, embedded labels, table is RMS_Dashboard20161815715);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look in QlikView's help section to see some examples on how Date#() helps QlikView understand the Date Format -&amp;gt; &lt;A href="http://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/Scripting/InterpretationFunctions/date_hash.htm?q=date" title="http://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/Scripting/InterpretationFunctions/date_hash.htm?q=date"&gt;QlikView ‒ Date# - script and chart function&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jan 2016 14:43:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/year-function-not-working/m-p/1020450#M345261</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-18T14:43:33Z</dc:date>
    </item>
    <item>
      <title>Re: year function not working</title>
      <link>https://community.qlik.com/t5/QlikView/year-function-not-working/m-p/1020451#M345262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Convert them with date#&amp;nbsp; conversion functions, like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(Date#(dateAsYYYYMMDD, 'YYYYMMDD')) As date1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(Date#([dateAsD-M-Y], 'DD-MM-YYYY')) As date2,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date#() interprets the string as a date using the specified format, Date() converts these to your default document date format.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jan 2016 14:46:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/year-function-not-working/m-p/1020451#M345262</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-01-18T14:46:55Z</dc:date>
    </item>
    <item>
      <title>Re: year function not working</title>
      <link>https://community.qlik.com/t5/QlikView/year-function-not-working/m-p/1020452#M345263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;your field [Actual Deployment Date] has a lenght of 11 characters! maybe there is a space at end&lt;/P&gt;&lt;P&gt;so either drop the space or use another function&lt;/P&gt;&lt;P&gt;with year(left([Actual Deployment Date],10)) it works&lt;BR /&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jan 2016 14:47:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/year-function-not-working/m-p/1020452#M345263</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-18T14:47:29Z</dc:date>
    </item>
    <item>
      <title>Re: year function not working</title>
      <link>https://community.qlik.com/t5/QlikView/year-function-not-working/m-p/1020453#M345264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the fiekd is text&lt;/P&gt;&lt;P&gt;use subfield([Actual Deployment Date],'-',1) as year,&lt;/P&gt;&lt;P&gt;subfield([Actual Deployment Date],'-',2) as month,&lt;/P&gt;&lt;P&gt;subfield([Actual Deployment Date],'-',3) as day,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jan 2016 14:48:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/year-function-not-working/m-p/1020453#M345264</guid>
      <dc:creator>florentina_doga</dc:creator>
      <dc:date>2016-01-18T14:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: year function not working</title>
      <link>https://community.qlik.com/t5/QlikView/year-function-not-working/m-p/1020454#M345265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think your field [Actual Deployment Date] is preceived as a text because it's right aligned. Try make a coerent field like this in the script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;date(date#([Actual Deployment Date], 'YYYY-MM-DD'), 'DD-MM-YYYY') as &lt;SPAN style="font-size: 13.3333px;"&gt;[Actual Deployment Date]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This way you can use your expression to get year like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=year(&lt;SPAN style="font-size: 13.3333px;"&gt;[Actual Deployment Date])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;MB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jan 2016 14:51:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/year-function-not-working/m-p/1020454#M345265</guid>
      <dc:creator>miguelbraga</dc:creator>
      <dc:date>2016-01-18T14:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: year function not working</title>
      <link>https://community.qlik.com/t5/QlikView/year-function-not-working/m-p/1020455#M345266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great observation, didn't saw that &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jan 2016 14:53:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/year-function-not-working/m-p/1020455#M345266</guid>
      <dc:creator>miguelbraga</dc:creator>
      <dc:date>2016-01-18T14:53:15Z</dc:date>
    </item>
    <item>
      <title>Re: year function not working</title>
      <link>https://community.qlik.com/t5/QlikView/year-function-not-working/m-p/1020456#M345267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;as even the normal data function didnot work I thought that something different must be the problem&lt;/P&gt;&lt;P&gt;and it was the lenght which didnot match, so it didnot recognize as a date&lt;/P&gt;&lt;P&gt;thks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jan 2016 14:57:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/year-function-not-working/m-p/1020456#M345267</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-18T14:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: year function not working</title>
      <link>https://community.qlik.com/t5/QlikView/year-function-not-working/m-p/1020457#M345268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jan 2016 14:57:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/year-function-not-working/m-p/1020457#M345268</guid>
      <dc:creator />
      <dc:date>2016-01-18T14:57:35Z</dc:date>
    </item>
  </channel>
</rss>

