<?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: Date in  timestampm format in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-in-timestampm-format/m-p/838950#M294926</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;You can also convert it into num then compare&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like Num(YourdateField)&amp;gt;num('31-03-2015')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 06 Jun 2015 06:49:49 GMT</pubDate>
    <dc:creator>PrashantSangle</dc:creator>
    <dc:date>2015-06-06T06:49:49Z</dc:date>
    <item>
      <title>Date in  timestampm format</title>
      <link>https://community.qlik.com/t5/QlikView/Date-in-timestampm-format/m-p/838948#M294924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to do the comparison when date present in timestamp format ,&lt;/P&gt;&lt;P&gt;To fetch all the date greater than 31-03-2015&lt;/P&gt;&lt;P&gt;date&lt;/P&gt;&lt;P&gt;01-03-2012&amp;nbsp; 16:45&lt;/P&gt;&lt;P&gt;01-03-2012&amp;nbsp; 21:30:00&lt;/P&gt;&lt;P&gt;22-05-2014&amp;nbsp; 05:30:09&lt;/P&gt;&lt;P&gt;30-03-2015 16:45&lt;/P&gt;&lt;P&gt;30-03-2015 12:00:00&lt;/P&gt;&lt;P&gt;30-03-2015 09:30:01&lt;/P&gt;&lt;P&gt;31-03-2015&amp;nbsp; 16:45&lt;/P&gt;&lt;P&gt;31-03-2015&amp;nbsp; 21:06:09&lt;/P&gt;&lt;P&gt;31-03-2015&amp;nbsp; 10:29:00&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Jun 2015 06:43:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-in-timestampm-format/m-p/838948#M294924</guid>
      <dc:creator />
      <dc:date>2015-06-06T06:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: Date in  timestampm format</title>
      <link>https://community.qlik.com/t5/QlikView/Date-in-timestampm-format/m-p/838949#M294925</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;use floor() and Date() combination&lt;/P&gt;&lt;P&gt;try like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;date(floor(youdatefield))&amp;gt;31-03-2015&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Jun 2015 06:47:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-in-timestampm-format/m-p/838949#M294925</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2015-06-06T06:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: Date in  timestampm format</title>
      <link>https://community.qlik.com/t5/QlikView/Date-in-timestampm-format/m-p/838950#M294926</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;You can also convert it into num then compare&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like Num(YourdateField)&amp;gt;num('31-03-2015')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Jun 2015 06:49:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-in-timestampm-format/m-p/838950#M294926</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2015-06-06T06:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: Date in  timestampm format</title>
      <link>https://community.qlik.com/t5/QlikView/Date-in-timestampm-format/m-p/838951#M294927</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;Year(YourDateField) &amp;gt;=2015 and Month(YourDateField) &amp;gt;3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Jun 2015 07:16:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-in-timestampm-format/m-p/838951#M294927</guid>
      <dc:creator />
      <dc:date>2015-06-06T07:16:13Z</dc:date>
    </item>
    <item>
      <title>Re: Date in  timestampm format</title>
      <link>https://community.qlik.com/t5/QlikView/Date-in-timestampm-format/m-p/838952#M294928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;you can try this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;date&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;01-03-2012&amp;nbsp; 16:45&lt;/P&gt;&lt;P&gt;01-03-2012&amp;nbsp; 21:30:00&lt;/P&gt;&lt;P&gt;22-05-2014&amp;nbsp; 05:30:09&lt;/P&gt;&lt;P&gt;30-03-2015 16:45&lt;/P&gt;&lt;P&gt;30-03-2015 12:00:00&lt;/P&gt;&lt;P&gt;30-03-2015 09:30:01&lt;/P&gt;&lt;P&gt;31-03-2015&amp;nbsp; 16:45&lt;/P&gt;&lt;P&gt;31-03-2015&amp;nbsp; 21:06:09&lt;/P&gt;&lt;P&gt;31-03-2015&amp;nbsp; 10:29:00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;]&lt;/P&gt;&lt;P&gt;Where date &amp;gt; '31-03-2015';&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Jun 2015 07:43:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-in-timestampm-format/m-p/838952#M294928</guid>
      <dc:creator />
      <dc:date>2015-06-06T07:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: Date in  timestampm format</title>
      <link>https://community.qlik.com/t5/QlikView/Date-in-timestampm-format/m-p/838953#M294929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are loading from a SQL source, I would suggest filtering the data in the SQL query. This way you load an optimized amount of data from the source to QlikView, this will minimize load on network and data source.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From a data loading perspective the key thing is that you format your data properly, so that a timestamp is a timestamp and a date is a date. The key thing in this context is to notice that a timestamp is a decimal value and that a date is a integer, when it comes to the underlying numerical representation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your sample data you have two different incoming formats, so you need to handle both options to unify your data format. In the below example this is done by using the Alt() function. Notice that this assumes that you have one of the formats as your defined in your format variables. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14335824380442020 jive_text_macro" jivemacro_uid="_14335824380442020" modifiedtitle="true"&gt;
&lt;P&gt;SET TimeFormat='hh:mm:ss';&lt;/P&gt;
&lt;P&gt;SET DateFormat='DD-MM-YYYY';&lt;/P&gt;
&lt;P&gt;SET TimestampFormat='DD-MM-YYYY hh:mm:ss';&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; SourceTimestamp,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; Alt( Timestamp#(SourceTimestamp),&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Timestamp(Timestamp#(SourceTimestamp, 'DD-MM-YYYY hh:mm')) ) AS MyTimestamp&lt;/P&gt;
&lt;P&gt;Inline [&lt;/P&gt;
&lt;P&gt;SourceTimestamp&lt;/P&gt;
&lt;P&gt;01-03-2012 16:45&lt;/P&gt;
&lt;P&gt;01-03-2012 21:30:00&lt;/P&gt;
&lt;P&gt;22-05-2014 05:30:09&lt;/P&gt;
&lt;P&gt;30-03-2015 12:00:00&lt;/P&gt;
&lt;P&gt;30-03-2015 16:45&lt;/P&gt;
&lt;P&gt;31-03-2015 16:45&lt;/P&gt;
&lt;P&gt;30-03-2015 09:30:01&lt;/P&gt;
&lt;P&gt;31-03-2015 21:06:09&lt;/P&gt;
&lt;P&gt;31-03-2015 10:29:00&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On top of the initial load you can then add a load statement that splits the timestamp into proper date and time values. A date is an integer, so you need to use Floor() to remove the decimal component form the timestamp. A time value is a decimal value with a zro integer, which you can accomplish by using the Frac() function. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14335825454754047" jivemacro_uid="_14335825454754047"&gt;
&lt;P&gt;LOAD &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; SourceTimestamp,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; MyTimestamp,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; Date(Floor(MyTimestamp)) AS MyDate,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; Time(Frac(MyTimestamp)) AS MyTime&lt;/P&gt;
&lt;P&gt;;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At this point you have the required values to do your filtering, so in the final load you can now adda where cause that excludes the dates that you are not interested in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14335827071277419 jive_text_macro" jivemacro_uid="_14335827071277419"&gt;
&lt;P&gt;LOAD *&lt;/P&gt;
&lt;P&gt;Where MyDate &amp;gt; '30-03-2015';&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See attached QVW for a full example. Comment out the load statement to evaluate what happens in each step. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Jun 2015 09:26:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-in-timestampm-format/m-p/838953#M294929</guid>
      <dc:creator>ToniKautto</dc:creator>
      <dc:date>2015-06-06T09:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: Date in  timestampm format</title>
      <link>https://community.qlik.com/t5/QlikView/Date-in-timestampm-format/m-p/838954#M294930</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;another solution could be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="88566" alt="QlikCommunity_Thread_167228_Pic1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/88566_QlikCommunity_Thread_167228_Pic1.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14335873454144456" jivemacro_uid="_14335873454144456"&gt;
&lt;P&gt;SET TimeFormat='hh:mm:ss';&lt;/P&gt;
&lt;P&gt;SET DateFormat='MM/DD/YYYY';&lt;/P&gt;
&lt;P&gt;SET TimestampFormat='MM/DD/YYYY hh:mm:ss[.fff]';&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;tabDates:&lt;/P&gt;
&lt;P&gt;LOAD SourceTimestamp,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DayName(SourceTimestamp) as SourceDate,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Time(fmod(SourceTimestamp,1)) as SourceTime&lt;/P&gt;
&lt;P&gt;Where SourceTimestamp &amp;gt; '03/31/2015';&lt;/P&gt;
&lt;P&gt;LOAD Timestamp(Alt(Timestamp#(SourceTimestamp,'DD-MM-YYYY hh:mm'),Timestamp#(SourceTimestamp,'DD-MM-YYYY hh:mm:ss'))) as SourceTimestamp&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;FROM [&lt;/SPAN&gt;&lt;A class="jive-link-thread-small" data-containerid="2051" data-containertype="14" data-objectid="167228" data-objecttype="1" href="https://community.qlik.com/thread/167228"&gt;https://community.qlik.com/thread/167228&lt;/A&gt;&lt;SPAN&gt;] (html, codepage is 1252, embedded labels, table is @1, filters(ColSplit(1, IntArray()),Remove(Row, Pos(Top, 10)),Remove(Row, Pos(Top, 9)),Remove(Row, Pos(Top, 8)),Remove(Row, Pos(Top, 7)),Remove(Row, Pos(Top, 6)),Remove(Row, Pos(Top, 5)),Remove(Row, Pos(Top, 4)),Remove(Row, Pos(Top, 3)),Remove(Row, Pos(Top, 2)),Remove(Row, Pos(Top, 1)),Remove(Row, Pos(Top, 11)),Remove(Row, Pos(Top, 11))));&lt;/SPAN&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&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;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Jun 2015 10:41:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-in-timestampm-format/m-p/838954#M294930</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2015-06-06T10:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: Date in  timestampm format</title>
      <link>https://community.qlik.com/t5/QlikView/Date-in-timestampm-format/m-p/838955#M294931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD * INLINE [&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;date&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;01-03-2012&amp;nbsp; 16:45&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;01-03-2012&amp;nbsp; 21:30:00&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;22-05-2014&amp;nbsp; 05:30:09&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;30-03-2015 16:45&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;30-03-2015 12:00:00&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;30-03-2015 09:30:01&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;31-03-2015&amp;nbsp; 16:45&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;31-03-2015&amp;nbsp; 21:06:09&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;31-03-2015&amp;nbsp; 10:29:00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;]&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Where date(date,'DD/MM/YY') &amp;gt; '31-03-2015';&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Jun 2015 10:41:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-in-timestampm-format/m-p/838955#M294931</guid>
      <dc:creator>pratap6699</dc:creator>
      <dc:date>2015-06-06T10:41:44Z</dc:date>
    </item>
  </channel>
</rss>

