<?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: Source Date Field Problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Source-Date-Field-Problem/m-p/1157965#M632947</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to change the load-order to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Load *,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Month(datecreated) as MonthCreated,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;YearName(datecreated as YearCreated;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Load &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;alt(timestamp([Date Created], 'DD MMM YYYY'), &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; timestamp(timestamp#([Date Created], 'MM/DD/YYYY hh:mm tt'), 'DD MMM YYYY')) as datecreated&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;From blahblahblah;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to get a valid &lt;A href="https://community.qlik.com/qlik-blogpost/2972"&gt;Preceding Load&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whereby I suggest to consider to associate your timestamp-field to a master-calendar and if the time-part is really needed to a timetable. You could achieve this by splitting your timestamp into a date- and time-field per:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Load *,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;date(floor(datecreated)) as Date,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;time(frac(datecreated)) as Time;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Load &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;alt(timestamp([Date Created], 'DD MMM YYYY'), &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; timestamp(timestamp#([Date Created], 'MM/DD/YYYY hh:mm tt'), 'DD MMM YYYY')) as datecreated&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;From blahblahblah;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;and the HowTo for the master-tables could you find here: &lt;A href="https://community.qlik.com/docs/DOC-8843"&gt;How to use - Master-Calendar and Date-Values&lt;/A&gt;.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Jul 2016 07:38:32 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2016-07-18T07:38:32Z</dc:date>
    <item>
      <title>Source Date Field Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Source-Date-Field-Problem/m-p/1157960#M632942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My source data is coming in with a date field issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date Created&lt;/P&gt;&lt;P&gt;04/02/2014&amp;nbsp; 11:50:00&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Picked up as a correct date field, can filter via year, month etc.&lt;/P&gt;&lt;P&gt;03/26/2014 04:50 PM&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Not recognised as a date format and therefore will be counted overall, but not when filtered down to years/months.&lt;/P&gt;&lt;P&gt;02/26/2014 09:38 AM&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;- Not recognised as a date format and therefore will be counted overall, but not when filtered down to years/months.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i script to alter the source data into a usable date format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help and advice greatly received.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Spikenaylor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jul 2016 12:22:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Source-Date-Field-Problem/m-p/1157960#M632942</guid>
      <dc:creator>spikenaylor1</dc:creator>
      <dc:date>2016-07-14T12:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: Source Date Field Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Source-Date-Field-Problem/m-p/1157961#M632943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;alt(timestamp(timestamp#([Date Created], 'MM/DD/YYYY hh:mm.ss'), MM/DD/YYYY hh:mm.ss),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; timestamp(timestamp#([Date Created], 'MM/DD/YYYY hh:mm tt'), MM/DD/YYYY hh:mm.ss))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jul 2016 12:44:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Source-Date-Field-Problem/m-p/1157961#M632943</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-07-14T12:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: Source Date Field Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Source-Date-Field-Problem/m-p/1157962#M632944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just cannot get it work&lt;/P&gt;&lt;P&gt;been through it loads&lt;/P&gt;&lt;P&gt;keep getting this error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error in expression:&lt;/P&gt;&lt;P&gt;')' expected&lt;/P&gt;&lt;P&gt;LOAD [Date Created], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Value,&lt;/P&gt;&lt;P&gt;alt(timestamp(timestamp#([Date Created], 'MM/DD/YYYY hh:mm.ss'), MM/DD/YYYY hh:mm.ss),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; timestamp(timestamp#([Date Created], 'MM/DD/YYYY hh:mm tt'), MM/DD/YYYY hh:mm.ss))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Jul 2016 07:23:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Source-Date-Field-Problem/m-p/1157962#M632944</guid>
      <dc:creator>spikenaylor1</dc:creator>
      <dc:date>2016-07-16T07:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: Source Date Field Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Source-Date-Field-Problem/m-p/1157963#M632945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The second formatting-statement in my suggestion wasn't wrapped in single-quotes, therefore try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;alt(timestamp(timestamp#([Date Created], 'MM/DD/YYYY hh:mm.ss'), 'MM/DD/YYYY hh:mm.ss'),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; timestamp(timestamp#([Date Created], 'MM/DD/YYYY hh:mm tt'), 'MM/DD/YYYY hh:mm.ss'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Jul 2016 10:26:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Source-Date-Field-Problem/m-p/1157963#M632945</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-07-17T10:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: Source Date Field Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Source-Date-Field-Problem/m-p/1157964#M632946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Many thanks&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;didn't quite work.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;eventually i figured out that the &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;04/02/2014&amp;nbsp; 11:50:00 is already recognised as a date and in the UK Date format, so changed the formula to.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;alt(timestamp([Date Created], 'DD MMM YYYY'), timestamp(timestamp#([Date Created], 'MM/DD/YYYY hh:mm tt'), 'DD MMM YYYY')) as datecreated,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;to suit my purposes.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;All works fine now, but now trying to reference this field so I don't have to use the formula throughout, so my code should look like later on:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Month(datecreated) as MonthCreated&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I realise that I may need to pre load the staement and then reference it something like&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Load &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;alt(timestamp([Date Created], 'DD MMM YYYY'), timestamp(timestamp#([Date Created], 'MM/DD/YYYY hh:mm tt'), 'DD MMM YYYY')) as datecreated;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Load&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Month(datecreated) as MonthCreated,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;YearName(datecreated as YearCreated&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;From blahblahblah;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;But I cannot get it to work,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;keeps erroring with cannot find datecreated field&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;any ideas how I can reference this new field later throughout the script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2016 07:01:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Source-Date-Field-Problem/m-p/1157964#M632946</guid>
      <dc:creator>spikenaylor1</dc:creator>
      <dc:date>2016-07-18T07:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: Source Date Field Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Source-Date-Field-Problem/m-p/1157965#M632947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to change the load-order to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Load *,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Month(datecreated) as MonthCreated,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;YearName(datecreated as YearCreated;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Load &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;alt(timestamp([Date Created], 'DD MMM YYYY'), &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; timestamp(timestamp#([Date Created], 'MM/DD/YYYY hh:mm tt'), 'DD MMM YYYY')) as datecreated&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;From blahblahblah;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to get a valid &lt;A href="https://community.qlik.com/qlik-blogpost/2972"&gt;Preceding Load&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whereby I suggest to consider to associate your timestamp-field to a master-calendar and if the time-part is really needed to a timetable. You could achieve this by splitting your timestamp into a date- and time-field per:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Load *,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;date(floor(datecreated)) as Date,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;time(frac(datecreated)) as Time;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Load &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;alt(timestamp([Date Created], 'DD MMM YYYY'), &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; timestamp(timestamp#([Date Created], 'MM/DD/YYYY hh:mm tt'), 'DD MMM YYYY')) as datecreated&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;From blahblahblah;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;and the HowTo for the master-tables could you find here: &lt;A href="https://community.qlik.com/docs/DOC-8843"&gt;How to use - Master-Calendar and Date-Values&lt;/A&gt;.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2016 07:38:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Source-Date-Field-Problem/m-p/1157965#M632947</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-07-18T07:38:32Z</dc:date>
    </item>
  </channel>
</rss>

