<?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 Trouble converting text to date field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Trouble-converting-text-to-date-field/m-p/189391#M52293</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Ive tried renaming the field from the crosstable and in the resident load. No effect.&lt;/P&gt;&lt;P&gt;Ive tried using the num() function and the date(num()) function. No effect.&lt;/P&gt;&lt;P&gt;I attach a sample of the source excel data.&lt;/P&gt;&lt;P&gt;[View:http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/3286.SCADA-Sample.xls]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Feb 2011 15:12:28 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-02-01T15:12:28Z</dc:date>
    <item>
      <title>Trouble converting text to date field</title>
      <link>https://community.qlik.com/t5/QlikView/Trouble-converting-text-to-date-field/m-p/189381#M52283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to import some excel data. The data is an Excel cross table. The top row represents the date, and the columns the values.&lt;/P&gt;&lt;P&gt;I can't get qlikview to recognise that the imported data is a date field. Ive tried using the date() function, the date#() function, the date(num()) combination, num() on its own... nothing works.&lt;/P&gt;&lt;P&gt;If I try to use a function such as the above in the script, then qlikview doesn't load any data in at all. If I don't use a function then I get data such as 40428, 40429 etc but qlikview won't recognise this as a date field. The field is formatted as a date field in the original excel data.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jan 2011 16:09:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trouble-converting-text-to-date-field/m-p/189381#M52283</guid>
      <dc:creator />
      <dc:date>2011-01-27T16:09:26Z</dc:date>
    </item>
    <item>
      <title>Trouble converting text to date field</title>
      <link>https://community.qlik.com/t5/QlikView/Trouble-converting-text-to-date-field/m-p/189382#M52284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to reload the crosstable and the apply the formatting as date, script might be somewhat like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;tempData: CROSSTABLE (Date#, Sales) LOAD * FROM ...;&lt;BR /&gt;Data: LOAD DATE(Date#), Sales RESIDENT tempData;&lt;BR /&gt;DROP TABLE tempDate;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;edit: corrected "," to ";" in the last line&lt;/P&gt;&lt;P&gt;A preceding LOAD, neither implementing a calculation) does not work with Crosstable.&lt;/P&gt;&lt;P&gt;HTH&lt;BR /&gt;Peter&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jan 2011 16:14:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trouble-converting-text-to-date-field/m-p/189382#M52284</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2011-01-27T16:14:06Z</dc:date>
    </item>
    <item>
      <title>Trouble converting text to date field</title>
      <link>https://community.qlik.com/t5/QlikView/Trouble-converting-text-to-date-field/m-p/189383#M52285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Dan,&lt;/P&gt;&lt;P&gt;I hada similar problem in the past where my date was something like 12/24/2009 00:00:00 and I had to use something like Date#((fieldName) 'MM/DD/YYYY hh:mm:ss') as Date and then it worked for me.&lt;/P&gt;&lt;P&gt;Mama&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jan 2011 16:18:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trouble-converting-text-to-date-field/m-p/189383#M52285</guid>
      <dc:creator />
      <dc:date>2011-01-27T16:18:19Z</dc:date>
    </item>
    <item>
      <title>Trouble converting text to date field</title>
      <link>https://community.qlik.com/t5/QlikView/Trouble-converting-text-to-date-field/m-p/189384#M52286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;Whenever i use cross tables i always do a resident load just after, so I have done this. Ive tried using the date() functions in the resident load but it won't work. Here is my script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;** tried to paste code, wouldn't work, see below screenshot **&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;My god its horrible pasting code into this text editor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jan 2011 16:40:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trouble-converting-text-to-date-field/m-p/189384#M52286</guid>
      <dc:creator />
      <dc:date>2011-01-27T16:40:23Z</dc:date>
    </item>
    <item>
      <title>Trouble converting text to date field</title>
      <link>https://community.qlik.com/t5/QlikView/Trouble-converting-text-to-date-field/m-p/189385#M52287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Im sorry i have tried 3 times to edit that post to show the script properly and it won't work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jan 2011 16:47:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trouble-converting-text-to-date-field/m-p/189385#M52287</guid>
      <dc:creator />
      <dc:date>2011-01-27T16:47:08Z</dc:date>
    </item>
    <item>
      <title>Trouble converting text to date field</title>
      <link>https://community.qlik.com/t5/QlikView/Trouble-converting-text-to-date-field/m-p/189386#M52288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/3247.untitled.JPG"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jan 2011 16:52:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trouble-converting-text-to-date-field/m-p/189386#M52288</guid>
      <dc:creator />
      <dc:date>2011-01-27T16:52:45Z</dc:date>
    </item>
    <item>
      <title>Trouble converting text to date field</title>
      <link>https://community.qlik.com/t5/QlikView/Trouble-converting-text-to-date-field/m-p/189387#M52289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Image (hopefully...)&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/3731.untitled.JPG"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/3731.untitled.JPG" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jan 2011 16:58:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trouble-converting-text-to-date-field/m-p/189387#M52289</guid>
      <dc:creator />
      <dc:date>2011-01-27T16:58:51Z</dc:date>
    </item>
    <item>
      <title>Trouble converting text to date field</title>
      <link>https://community.qlik.com/t5/QlikView/Trouble-converting-text-to-date-field/m-p/189388#M52290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What does not work in the script? Looks pretty much o.k., although you may also use NOCONCATENATE LOAD instead of the Qualify - Unqualify. Think that you have added, as otherwise the SCADA would be attached to the SCADATemp, as they share the same fieldnames.&lt;/P&gt;&lt;P&gt;In order not to be tied to the column-header in Excel, would prefer a script like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;SCADATemp: CROSSTABLE (Date, Value, 1 ) LOAD * FROM ....;&lt;BR /&gt;SCADA: LOAD F1 AS Datapoint, DATE(Date) AS Date, Value RESIDENT SCADATemp;&lt;BR /&gt;DROP TABLE SCADATemp;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;This script has the advantage, that you will not run into an error, once a column is missing in the Excel.&lt;/P&gt;&lt;P&gt;HTH&lt;BR /&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Jan 2011 11:47:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trouble-converting-text-to-date-field/m-p/189388#M52290</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2011-01-31T11:47:34Z</dc:date>
    </item>
    <item>
      <title>Trouble converting text to date field</title>
      <link>https://community.qlik.com/t5/QlikView/Trouble-converting-text-to-date-field/m-p/189389#M52291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I use the script with Date(Date) As Date, then I don't get any data loaded at all:&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/3603.untitled2.JPG"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/3603.untitled2.JPG" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I use the script without using the date function, then I get this:&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/3583.untitled.JPG"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/3583.untitled.JPG" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But whatever I try I can't get qlikview to recognise or format this as a date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Feb 2011 11:32:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trouble-converting-text-to-date-field/m-p/189389#M52291</guid>
      <dc:creator />
      <dc:date>2011-02-01T11:32:28Z</dc:date>
    </item>
    <item>
      <title>Trouble converting text to date field</title>
      <link>https://community.qlik.com/t5/QlikView/Trouble-converting-text-to-date-field/m-p/189390#M52292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Might be helpful, if you can attach an example to have a closer look.&lt;BR /&gt;Just guessing: It might be a bit tricky for the interpreter to differentiate between Date as Field and as Function - so might be worth to rename.&lt;BR /&gt;Have you tried to force Date to be displayed as Date (Settings -&amp;gt; Document Properties -&amp;gt; Number)?&lt;BR /&gt;Load the Field with the NUM-function in order to force QV to consider as Number?&lt;/P&gt;&lt;P&gt;a bit puzzled ..&lt;BR /&gt;Peter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Feb 2011 14:58:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trouble-converting-text-to-date-field/m-p/189390#M52292</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2011-02-01T14:58:32Z</dc:date>
    </item>
    <item>
      <title>Trouble converting text to date field</title>
      <link>https://community.qlik.com/t5/QlikView/Trouble-converting-text-to-date-field/m-p/189391#M52293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Ive tried renaming the field from the crosstable and in the resident load. No effect.&lt;/P&gt;&lt;P&gt;Ive tried using the num() function and the date(num()) function. No effect.&lt;/P&gt;&lt;P&gt;I attach a sample of the source excel data.&lt;/P&gt;&lt;P&gt;[View:http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/3286.SCADA-Sample.xls]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Feb 2011 15:12:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trouble-converting-text-to-date-field/m-p/189391#M52293</guid>
      <dc:creator />
      <dc:date>2011-02-01T15:12:28Z</dc:date>
    </item>
    <item>
      <title>Trouble converting text to date field</title>
      <link>https://community.qlik.com/t5/QlikView/Trouble-converting-text-to-date-field/m-p/189392#M52294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, try this, it worked for me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;TMP_SCADA:&lt;BR /&gt;CrossTable(Day, DayValue, 3)&lt;BR /&gt;LOAD F1,&lt;BR /&gt; Average,&lt;BR /&gt; F3,&lt;BR /&gt; [40422],&lt;BR /&gt; [40423],&lt;BR /&gt; [40424],&lt;BR /&gt; ......&lt;BR /&gt; [40563],&lt;BR /&gt; [40564]&lt;BR /&gt;FROM&lt;BR /&gt;[3286.SCADA%20Sample.xls]&lt;BR /&gt;(biff, embedded labels, table is SCADA$);&lt;BR /&gt;&lt;BR /&gt;SCADA:&lt;BR /&gt;Load&lt;BR /&gt; *,&lt;BR /&gt; Num(trim(Day)) as Day_Num,&lt;BR /&gt; Date(trim(Day)) as Day_Date&lt;BR /&gt;resident TMP_SCADA;&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;The problem was some hidden spaces&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Feb 2011 16:16:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trouble-converting-text-to-date-field/m-p/189392#M52294</guid>
      <dc:creator>hector</dc:creator>
      <dc:date>2011-02-01T16:16:14Z</dc:date>
    </item>
    <item>
      <title>Trouble converting text to date field</title>
      <link>https://community.qlik.com/t5/QlikView/Trouble-converting-text-to-date-field/m-p/189393#M52295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;lol so simple! Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Feb 2011 16:24:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trouble-converting-text-to-date-field/m-p/189393#M52295</guid>
      <dc:creator />
      <dc:date>2011-02-01T16:24:48Z</dc:date>
    </item>
  </channel>
</rss>

