<?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 Year changes into a numeric field during extraction in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Year-changes-into-a-numeric-field-during-extraction/m-p/354630#M703740</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The time portion of a timestamp is the decimal part of the number so Floor(Timestamp) will get you just the date part.&amp;nbsp; Date(Floor(Timestamp),'DD/MM/YYYY'), for example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you really don't want to use a function like this you could try changing the SET section at the top of the script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET TimestampFormat='DD/MM/YYYY hh:mm:ss[.fff]';&lt;/P&gt;&lt;P&gt;to&lt;/P&gt;&lt;P&gt;SET TimestampFormat='DD/MM/YYYY';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe that'll work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Jun 2012 09:36:05 GMT</pubDate>
    <dc:creator>Jason_Michaelides</dc:creator>
    <dc:date>2012-06-01T09:36:05Z</dc:date>
    <item>
      <title>Year changes into a numeric field during extraction</title>
      <link>https://community.qlik.com/t5/QlikView/Year-changes-into-a-numeric-field-during-extraction/m-p/354627#M703737</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;&lt;/P&gt;&lt;P&gt;i'm connecting to an oracle database.&lt;/P&gt;&lt;P&gt;The years im extracting (eg. 2007, 2008, 2009) are into a column with num(20,0). So no decimals,&lt;/P&gt;&lt;P&gt;Im extracting through an OLE DB connection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I get output, the years are represented as a number (eg 2007,00; 2008,00;2009,00).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a setting in the connection or something to let the values just 2007 etc?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;KR&lt;/P&gt;&lt;P&gt;Reyman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2012 13:52:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-changes-into-a-numeric-field-during-extraction/m-p/354627#M703737</guid>
      <dc:creator />
      <dc:date>2012-05-16T13:52:37Z</dc:date>
    </item>
    <item>
      <title>Year changes into a numeric field during extraction</title>
      <link>https://community.qlik.com/t5/QlikView/Year-changes-into-a-numeric-field-during-extraction/m-p/354628#M703738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try any of the following in your load script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Num(year,'0')&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year&lt;/P&gt;&lt;P&gt;Floor(Year)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year&lt;/P&gt;&lt;P&gt;Round(Year)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully one or more of these should work!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2012 15:04:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-changes-into-a-numeric-field-during-extraction/m-p/354628#M703738</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2012-05-16T15:04:18Z</dc:date>
    </item>
    <item>
      <title>Year changes into a numeric field during extraction</title>
      <link>https://community.qlik.com/t5/QlikView/Year-changes-into-a-numeric-field-during-extraction/m-p/354629#M703739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Normally if it should be 2007.00 and i wanted it to be 2007, I should use num yes.&lt;/P&gt;&lt;P&gt;But now it is 2007 in the database datetype in oracle but in oracle 11 it is internally stored as a timestamp.&lt;/P&gt;&lt;P&gt;I don't want to use and function, but just want that QV reads, hey its a date type, so i need to extract it as a date, not as a timestamp.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2012 15:19:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-changes-into-a-numeric-field-during-extraction/m-p/354629#M703739</guid>
      <dc:creator />
      <dc:date>2012-05-31T15:19:12Z</dc:date>
    </item>
    <item>
      <title>Year changes into a numeric field during extraction</title>
      <link>https://community.qlik.com/t5/QlikView/Year-changes-into-a-numeric-field-during-extraction/m-p/354630#M703740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The time portion of a timestamp is the decimal part of the number so Floor(Timestamp) will get you just the date part.&amp;nbsp; Date(Floor(Timestamp),'DD/MM/YYYY'), for example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you really don't want to use a function like this you could try changing the SET section at the top of the script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET TimestampFormat='DD/MM/YYYY hh:mm:ss[.fff]';&lt;/P&gt;&lt;P&gt;to&lt;/P&gt;&lt;P&gt;SET TimestampFormat='DD/MM/YYYY';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe that'll work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2012 09:36:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-changes-into-a-numeric-field-during-extraction/m-p/354630#M703740</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2012-06-01T09:36:05Z</dc:date>
    </item>
    <item>
      <title>Year changes into a numeric field during extraction</title>
      <link>https://community.qlik.com/t5/QlikView/Year-changes-into-a-numeric-field-during-extraction/m-p/354631#M703741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you get this working?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2012 07:01:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-changes-into-a-numeric-field-during-extraction/m-p/354631#M703741</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2012-06-07T07:01:09Z</dc:date>
    </item>
  </channel>
</rss>

