<?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 problem with timestamp to get max value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/problem-with-timestamp-to-get-max-value/m-p/1062098#M945678</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;&lt;/P&gt;&lt;P&gt;I have timestamp column and trying to get max value from this function. But it is displaying null value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;STRONG&gt;MaxString(Date(Floor(Timestamp#(account_created_datetime)),'DD/MM/YYYY')).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Plese help me on this&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Regards,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Kumar&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Jan 2016 13:08:57 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-01-11T13:08:57Z</dc:date>
    <item>
      <title>problem with timestamp to get max value</title>
      <link>https://community.qlik.com/t5/QlikView/problem-with-timestamp-to-get-max-value/m-p/1062098#M945678</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;&lt;/P&gt;&lt;P&gt;I have timestamp column and trying to get max value from this function. But it is displaying null value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;STRONG&gt;MaxString(Date(Floor(Timestamp#(account_created_datetime)),'DD/MM/YYYY')).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Plese help me on this&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Regards,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Kumar&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jan 2016 13:08:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/problem-with-timestamp-to-get-max-value/m-p/1062098#M945678</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-11T13:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: problem with timestamp to get max value</title>
      <link>https://community.qlik.com/t5/QlikView/problem-with-timestamp-to-get-max-value/m-p/1062099#M945679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Firstly you havn't specified what format your timestamp for QlikView to understand:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try something like this:&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;=&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="color: #ff0000;"&gt;Max&lt;/SPAN&gt;(Date(Floor(Timestamp#(account_created_datetime&lt;SPAN style="color: #ff0000;"&gt;, 'TimeStampFieldFormatHere'&lt;/SPAN&gt;)),'DD/MM/YYYY'))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jan 2016 13:11:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/problem-with-timestamp-to-get-max-value/m-p/1062099#M945679</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-11T13:11:50Z</dc:date>
    </item>
    <item>
      <title>Re: problem with timestamp to get max value</title>
      <link>https://community.qlik.com/t5/QlikView/problem-with-timestamp-to-get-max-value/m-p/1062100#M945680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your Timestamp#() function seems not properly parsed the account_created_datetime values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please post some sample data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jan 2016 13:12:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/problem-with-timestamp-to-get-max-value/m-p/1062100#M945680</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-01-11T13:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: problem with timestamp to get max value</title>
      <link>https://community.qlik.com/t5/QlikView/problem-with-timestamp-to-get-max-value/m-p/1062101#M945681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have made changes, but no use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Max(Date(Floor(Timestamp#(account_created_datetime,'DD/MM/YYYY hh:mm:ss')),'DD/MM/YYYY'))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;actually dates are populated like below&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/111248_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jan 2016 13:48:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/problem-with-timestamp-to-get-max-value/m-p/1062101#M945681</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-11T13:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: problem with timestamp to get max value</title>
      <link>https://community.qlik.com/t5/QlikView/problem-with-timestamp-to-get-max-value/m-p/1062102#M945682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you mean that you are still seeing the time component? Would you be able to share a sample of where the above provided expression isn't working?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jan 2016 13:52:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/problem-with-timestamp-to-get-max-value/m-p/1062102#M945682</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-11T13:52:15Z</dc:date>
    </item>
    <item>
      <title>Re: problem with timestamp to get max value</title>
      <link>https://community.qlik.com/t5/QlikView/problem-with-timestamp-to-get-max-value/m-p/1062103#M945683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;Max(Date(Floor(Timestamp#(account_created_datetime,'DD/MM/YYYY hh:mm:ss.fff')),'DD/MM/YYYY'))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jan 2016 13:53:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/problem-with-timestamp-to-get-max-value/m-p/1062103#M945683</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-01-11T13:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: problem with timestamp to get max value</title>
      <link>https://community.qlik.com/t5/QlikView/problem-with-timestamp-to-get-max-value/m-p/1062104#M945684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good catch Stefan. This should also work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Max(Date(Floor(Timestamp#(&lt;SPAN style="color: #ff0000;"&gt;SubField(&lt;/SPAN&gt;account_created_datetime&lt;SPAN style="color: #ff0000;"&gt;, '.', 1)&lt;/SPAN&gt;,'DD/MM/YYYY hh:mm:ss')),'DD/MM/YYYY'))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jan 2016 13:55:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/problem-with-timestamp-to-get-max-value/m-p/1062104#M945684</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-11T13:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: problem with timestamp to get max value</title>
      <link>https://community.qlik.com/t5/QlikView/problem-with-timestamp-to-get-max-value/m-p/1062105#M945685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please avoid the Max(Date(Floor ....) redundant formatting operation between the Floor (returns a number) and Max (returns a number). The Date in between serves no purpose as the format is immediately overridden by the Max.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you probably mean:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Date(Max(Floor(Timestamp#(account_created_datetime, 'DD/MM/YYYY hh:mm:ss.fff'))), 'DD/MM/YYYY')&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jan 2016 14:00:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/problem-with-timestamp-to-get-max-value/m-p/1062105#M945685</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-01-11T14:00:59Z</dc:date>
    </item>
    <item>
      <title>Re: problem with timestamp to get max value</title>
      <link>https://community.qlik.com/t5/QlikView/problem-with-timestamp-to-get-max-value/m-p/1062106#M945686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks sunny and it is working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a doubt why did you mentioned &lt;STRONG&gt;subfield&lt;/STRONG&gt; of &lt;STRONG&gt;'.' ,1&amp;nbsp; Can you explain&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jan 2016 14:06:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/problem-with-timestamp-to-get-max-value/m-p/1062106#M945686</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-11T14:06:13Z</dc:date>
    </item>
    <item>
      <title>Re: problem with timestamp to get max value</title>
      <link>https://community.qlik.com/t5/QlikView/problem-with-timestamp-to-get-max-value/m-p/1062107#M945687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jonathan,&amp;nbsp; I am trying to get max month from this date.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jan 2016 14:10:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/problem-with-timestamp-to-get-max-value/m-p/1062107#M945687</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-11T14:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: problem with timestamp to get max value</title>
      <link>https://community.qlik.com/t5/QlikView/problem-with-timestamp-to-get-max-value/m-p/1062108#M945688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG style="font-style: inherit; font-size: 13px; font-family: inherit; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;Max&lt;/SPAN&gt;(Date(Floor(Timestamp#(account_created_datetime&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;, 'TimeStampFieldFormatHere'&lt;/SPAN&gt;)),'DD/MM/YYYY'))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jan 2016 14:17:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/problem-with-timestamp-to-get-max-value/m-p/1062108#M945688</guid>
      <dc:creator />
      <dc:date>2016-01-11T14:17:17Z</dc:date>
    </item>
    <item>
      <title>Re: problem with timestamp to get max value</title>
      <link>https://community.qlik.com/t5/QlikView/problem-with-timestamp-to-get-max-value/m-p/1062109#M945689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-family: arial, helvetica, sans-serif; font-size: 10pt;"&gt;Because your date is 11/06/2015 09:40:56&lt;STRONG style="color: #ff0000;"&gt;.000000&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-family: arial, helvetica, sans-serif; font-size: 10pt;"&gt;those extra &lt;STRONG style="color: #ff0000;"&gt;0s&lt;/STRONG&gt; at the end either needs to be removed using SubField() function (&lt;STRONG style="color: #ff0000;"&gt;SubField(FieldName, '.', 1)&lt;/STRONG&gt; means take everything before the dot)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-family: arial, helvetica, sans-serif; font-size: 10pt;"&gt;or you can use what Stefan prescribed:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-family: arial, helvetica, sans-serif; font-size: 10pt;"&gt;&lt;STRONG&gt;Max(Date(Floor(Timestamp#(account_created_datetime,'DD/MM/YYYY hh:mm:ss&lt;SPAN style="color: #ff0000;"&gt;.fff&lt;/SPAN&gt;')),'DD/MM/YYYY'))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-family: arial, helvetica, sans-serif; font-size: 10pt;"&gt;here the extra &lt;STRONG style="color: #ff0000;"&gt;0s&lt;/STRONG&gt; are taken care by &lt;SPAN style="color: #ff0000;"&gt;.fff&lt;/SPAN&gt;&lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jan 2016 14:40:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/problem-with-timestamp-to-get-max-value/m-p/1062109#M945689</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-11T14:40:44Z</dc:date>
    </item>
  </channel>
</rss>

