<?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: FirstSortedValue ? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/FirstSortedValue/m-p/19120#M1287</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;"&lt;SPAN style="font-size: 13.3333px;"&gt;Max(AL_datetime) also displays ' - '." indicates that &lt;SPAN style="font-size: 13.3333px;"&gt;AL_datetime isn't a timestamp else a string and needs to be converted. See here what is meant: &lt;A href="https://community.qlik.com/qlik-blogpost/2622"&gt;Get the Dates Right&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;.&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, 26 Apr 2018 13:31:45 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2018-04-26T13:31:45Z</dc:date>
    <item>
      <title>FirstSortedValue ?</title>
      <link>https://community.qlik.com/t5/App-Development/FirstSortedValue/m-p/19118#M1285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I have a table with 2 columns: AL_Datetime and AL_count.&amp;nbsp; Each hour, there is a row in the table with a count.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;In a KPI, I'm trying to display the count for the MAX AL_Datetime.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I thought this was easy: FirstSortedValue( AL_count, -AL_Datetime).&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;However, this returns ' - ' ... What am I missing?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Sample value for AL_Datetime = 04/18/2018 10:00&lt;/P&gt;&lt;P&gt;When I show the data in a table on the dashboard, I'm able to sort successfully by AL_Datetime so Qlik Sense seems to know how to sort by that dimension in a table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2018 22:36:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/FirstSortedValue/m-p/19118#M1285</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-25T22:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: FirstSortedValue ?</title>
      <link>https://community.qlik.com/t5/App-Development/FirstSortedValue/m-p/19119#M1286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using Set Analysis doesn't give me a result either:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;AL_datetime={'$(=Max(AL_datetime))'}&amp;gt;} AL_cntFormer)&lt;/P&gt;&lt;P&gt;It does when I hardcode a datetime value in the set analysis, but not when I introduce the &lt;SPAN style="font-size: 13.3333px;"&gt;{'$(=Max(AL_datetime))'}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Creating a KPI with formula Max(AL_datetime) also displays ' - '.&amp;nbsp; Not sure what's going on with this field ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;P.S. In the Set Analysis above, Sum technically speaking isn't needed as each datetime has a unique row.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2018 23:28:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/FirstSortedValue/m-p/19119#M1286</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-25T23:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: FirstSortedValue ?</title>
      <link>https://community.qlik.com/t5/App-Development/FirstSortedValue/m-p/19120#M1287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;"&lt;SPAN style="font-size: 13.3333px;"&gt;Max(AL_datetime) also displays ' - '." indicates that &lt;SPAN style="font-size: 13.3333px;"&gt;AL_datetime isn't a timestamp else a string and needs to be converted. See here what is meant: &lt;A href="https://community.qlik.com/qlik-blogpost/2622"&gt;Get the Dates Right&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;.&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, 26 Apr 2018 13:31:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/FirstSortedValue/m-p/19120#M1287</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-04-26T13:31:45Z</dc:date>
    </item>
    <item>
      <title>Re: FirstSortedValue ?</title>
      <link>https://community.qlik.com/t5/App-Development/FirstSortedValue/m-p/19121#M1288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks.&amp;nbsp; I ended up adding a new field to the load script that adds the date and time portions together: I'm using this new field for sorting.&amp;nbsp; Using the "timestamp" and "timestamp#" functions kept providing ' - ' even when I rebuilt the string and added together the date and time portion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date(Left(datetimefield, 10)) + Right(datetimefield, 5)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2018 15:33:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/FirstSortedValue/m-p/19121#M1288</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-26T15:33:44Z</dc:date>
    </item>
  </channel>
</rss>

