<?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: Cannot sort rows by timestamp in Search the Community</title>
    <link>https://community.qlik.com/t5/Search-the-Community/Cannot-sort-rows-by-timestamp/m-p/1818996#M404</link>
    <description>&lt;P&gt;Your enteprator format does not match your source. Try this.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;TimeStamp(Timestamp#(Left(Trim(firstNoDetectionTimestampDT_last), Len(Trim(firstNoDetectionTimestampDT_last))-5)), '&lt;STRONG&gt;YYYY-MM-DD hh:mm:ss&lt;/STRONG&gt;')) AS NewField&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 01 Jul 2021 05:31:17 GMT</pubDate>
    <dc:creator>Vegar</dc:creator>
    <dc:date>2021-07-01T05:31:17Z</dc:date>
    <item>
      <title>Cannot sort rows by timestamp</title>
      <link>https://community.qlik.com/t5/Search-the-Community/Cannot-sort-rows-by-timestamp/m-p/1818914#M403</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;on QlikView i tried to sort a table by a column whose datatype is timestamp&amp;nbsp; (with the button "order by numeric value"), but it does not work. I think that QlikView is not recognizing the timestamp format, and so it cannot order the table using this criteria.&lt;/P&gt;&lt;P&gt;The column has this format: 2021-01-22T23:01:32.000Z&lt;/P&gt;&lt;P&gt;On the script sheet I used this setting because I wanted to visualize timestamp in this format:&amp;nbsp;&amp;nbsp;SET TimestampFormat='DD/MM/YYYY hh:mm:ss[.fff]';&lt;/P&gt;&lt;P&gt;I tried to use timestamp and timestamp# functions, I also tried left(trim) to remove '.000Z' from the string, but no method worked.&lt;/P&gt;&lt;P&gt;This is an example of my attempts:&lt;/P&gt;&lt;P&gt;TimeStamp(Timestamp#(Left(Trim(firstNoDetectionTimestampDT_last), Len(Trim(firstNoDetectionTimestampDT_last))-5)), 'DD/MM/YYYY hh:mm:ss[.fff]'), 'DD/MM/YYYY hh:mm:ss[.fff]') AS NewField&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jun 2021 15:17:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Search-the-Community/Cannot-sort-rows-by-timestamp/m-p/1818914#M403</guid>
      <dc:creator>SerSwagster</dc:creator>
      <dc:date>2021-06-30T15:17:50Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot sort rows by timestamp</title>
      <link>https://community.qlik.com/t5/Search-the-Community/Cannot-sort-rows-by-timestamp/m-p/1818996#M404</link>
      <description>&lt;P&gt;Your enteprator format does not match your source. Try this.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;TimeStamp(Timestamp#(Left(Trim(firstNoDetectionTimestampDT_last), Len(Trim(firstNoDetectionTimestampDT_last))-5)), '&lt;STRONG&gt;YYYY-MM-DD hh:mm:ss&lt;/STRONG&gt;')) AS NewField&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jul 2021 05:31:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Search-the-Community/Cannot-sort-rows-by-timestamp/m-p/1818996#M404</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2021-07-01T05:31:17Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot sort rows by timestamp</title>
      <link>https://community.qlik.com/t5/Search-the-Community/Cannot-sort-rows-by-timestamp/m-p/1818998#M405</link>
      <description>&lt;P&gt;Another comment. As your timestamp is formated as YYYY-MM-DD hh:mm:ss it will sort correctly even if it is not recognised as a timestamp. Alphabetical sorting will give you the same sort order as a numerical sorting would do.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jul 2021 05:34:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Search-the-Community/Cannot-sort-rows-by-timestamp/m-p/1818998#M405</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2021-07-01T05:34:48Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot sort rows by timestamp</title>
      <link>https://community.qlik.com/t5/Search-the-Community/Cannot-sort-rows-by-timestamp/m-p/1818999#M406</link>
      <description>&lt;P&gt;Or may be a simpler one like:&lt;/P&gt;&lt;P&gt;Timestamp(Timestamp#(&lt;SPAN&gt;firstNoDetectionTimestampDT_last&lt;/SPAN&gt;, 'YYYY-MM-DD&lt;STRONG&gt;W&lt;/STRONG&gt;hh:mm:ss.tttt&lt;STRONG&gt;W&lt;/STRONG&gt;')) as NewField&lt;/P&gt;&lt;P&gt;I.e. - format the unwanted characters with unwanted but valid formats ('W' here).&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jul 2021 05:47:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Search-the-Community/Cannot-sort-rows-by-timestamp/m-p/1818999#M406</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2021-07-01T05:47:54Z</dc:date>
    </item>
  </channel>
</rss>

