<?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: Extract Year from Data/Time Field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Extract-Year-from-Data-Time-Field/m-p/332548#M122536</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" href="https://community.qlik.com/people/swuehl" id="jive-158232097856538473698" onmouseout="" onmouseover=""&gt;swuehl&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ive just done the timestamp, however originally the data I had was in the filed logdate is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;01/01/2010&lt;/P&gt;&lt;P&gt;01/05/2010&lt;/P&gt;&lt;P&gt;01/06/2011&lt;/P&gt;&lt;P&gt;01/08/2011&lt;/P&gt;&lt;P&gt;01/01/2012&lt;/P&gt;&lt;P&gt;01/03/2012&lt;/P&gt;&lt;P&gt;01/04/2012&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want is a Listbox that shows only 2010, 2011 and 2012.&amp;nbsp; Therefore if you click 2010, you will see the dates from another Listbox which are 01/01/2010 and 01/05/2010.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Aug 2012 14:21:03 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-08-01T14:21:03Z</dc:date>
    <item>
      <title>Extract Year from Data/Time Field</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-Year-from-Data-Time-Field/m-p/332544#M122532</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 am currently extracting data from a database using an ODBC connection using SQL to bring in my results.&amp;nbsp; &lt;/P&gt;&lt;P&gt;One of the fields in the table &lt;STRONG style="font-size: 12pt;"&gt;opencall &lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;is called &lt;STRONG style="font-size: 12pt;"&gt;logdate&lt;/STRONG&gt;. The logdate field represents the data in qlikview like: 01/01/2012 13:00:00.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I am looking to create a List Box which shows the following Years.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2010&lt;/P&gt;&lt;P&gt;2011&lt;/P&gt;&lt;P&gt;2012&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically there should be only one year, however when I click on the Year (ie 2012), all dates from 2012 pop up on another list box, which just has the logdate field.&amp;nbsp; (Therefore clicking just the year 2012, will bring up everything from 01/01/2012 to today).&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would someone be able to let me know how this can be done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am very new to qlikview.&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;Jon Ditchfield&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2012 14:09:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-Year-from-Data-Time-Field/m-p/332544#M122532</guid>
      <dc:creator />
      <dc:date>2012-08-01T14:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Year from Data/Time Field</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-Year-from-Data-Time-Field/m-p/332545#M122533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So you created a year field from your logdate using year() function or used a field expression in your list box?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will connect your years with your logdates, as I understand that's not what you want? Do you want a data island, years not connected to logdate?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2012 14:17:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-Year-from-Data-Time-Field/m-p/332545#M122533</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-08-01T14:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Year from Data/Time Field</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-Year-from-Data-Time-Field/m-p/332546#M122534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have found out how to list all my year.&amp;nbsp; In one of list boxes, I have gone to Expression in Field type and entered the following expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Timestamp(logdate,'YYYY').&amp;nbsp; However this pulls through as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2012&lt;/P&gt;&lt;P&gt;2012&lt;/P&gt;&lt;P&gt;2012&lt;/P&gt;&lt;P&gt;2011&lt;/P&gt;&lt;P&gt;2011&lt;/P&gt;&lt;P&gt;2010&lt;/P&gt;&lt;P&gt;2010&lt;/P&gt;&lt;P&gt;2010&lt;/P&gt;&lt;P&gt;2010&lt;/P&gt;&lt;P&gt;etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I basically only want a 2012, 2011 and 2010. But I want to be able to click 2012, and it picks up all dates where the year is 2012 (E.G. 01/01/2012, 31/05/2012). &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2012 14:17:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-Year-from-Data-Time-Field/m-p/332546#M122534</guid>
      <dc:creator />
      <dc:date>2012-08-01T14:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Year from Data/Time Field</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-Year-from-Data-Time-Field/m-p/332547#M122535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the Timestamp() function is only formatting your distinct timestamp values as years, the underlying numerical values are still distinct, thus you get multiple entries. Use year() function instead.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2012 14:19:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-Year-from-Data-Time-Field/m-p/332547#M122535</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-08-01T14:19:20Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Year from Data/Time Field</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-Year-from-Data-Time-Field/m-p/332548#M122536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" href="https://community.qlik.com/people/swuehl" id="jive-158232097856538473698" onmouseout="" onmouseover=""&gt;swuehl&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ive just done the timestamp, however originally the data I had was in the filed logdate is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;01/01/2010&lt;/P&gt;&lt;P&gt;01/05/2010&lt;/P&gt;&lt;P&gt;01/06/2011&lt;/P&gt;&lt;P&gt;01/08/2011&lt;/P&gt;&lt;P&gt;01/01/2012&lt;/P&gt;&lt;P&gt;01/03/2012&lt;/P&gt;&lt;P&gt;01/04/2012&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want is a Listbox that shows only 2010, 2011 and 2012.&amp;nbsp; Therefore if you click 2010, you will see the dates from another Listbox which are 01/01/2010 and 01/05/2010.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2012 14:21:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-Year-from-Data-Time-Field/m-p/332548#M122536</guid>
      <dc:creator />
      <dc:date>2012-08-01T14:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Year from Data/Time Field</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-Year-from-Data-Time-Field/m-p/332549#M122537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your helf swuehl, I entered =year(logdate) and it gave me exactly what I wanted.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2012 14:25:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-Year-from-Data-Time-Field/m-p/332549#M122537</guid>
      <dc:creator />
      <dc:date>2012-08-01T14:25:18Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Year from Data/Time Field</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-Year-from-Data-Time-Field/m-p/1567969#M441863</link>
      <description>&lt;P&gt;I also wanted to take Year out the date. I wrote Year(SalesDate) as year. SalesDate being a date in MM/DD/YYYY format. But on loading Data my year column in coming blank. What could have gone wrong?&lt;/P&gt;&lt;P&gt;I saw in the Auto generated section, it was written:&lt;/P&gt;&lt;P&gt;Date(Date#([Sales Date},'M.D.YYYY')) AS [Sales Date]&lt;/P&gt;&lt;P&gt;Whats the problem? Please help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2019 06:28:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-Year-from-Data-Time-Field/m-p/1567969#M441863</guid>
      <dc:creator>SKB27</dc:creator>
      <dc:date>2019-04-11T06:28:12Z</dc:date>
    </item>
  </channel>
</rss>

