<?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 Latest text values in straight table in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Latest-text-values-in-straight-table/m-p/1593626#M43655</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I'm trying to show the latest text values in a straight table. However, using FirstSortedValue() or an Aggr() function does not seem to work, ie FirstSortedValue(Column1, -Enddate) or =Aggr(FirstSortedValue(Column1,-Enddate),Identifier,Name). See image below as an example of my data and the solution.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="qlik_question_latest_values_straight-table.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/13999i7D902AF9E39D4044/image-size/large?v=v2&amp;amp;px=999" role="button" title="qlik_question_latest_values_straight-table.PNG" alt="qlik_question_latest_values_straight-table.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some data as an example to work with:&lt;/P&gt;&lt;P&gt;Main:&lt;BR /&gt;LOAD * Inline [&lt;BR /&gt;Name, Name-label, Employees, Startdate, Enddate, Column1, Column2, Column3, Identifier&lt;BR /&gt;Company1, Company1 16, 200, 01-01-2016, 01-01-2017, 2016 Text in column1, 2016 Text in column2, 2016 Text in column3, 691,&lt;BR /&gt;Company1, Company1 17, 180, 01-01-2017, 01-01-2018, 2017 Text in column1, 2017 Text in column2, 2017 Text in column3, 691,&lt;BR /&gt;Company1, Company1 19, 150, 01-01-2018, 01-01-2020, 2018 Text in column1, 2018 Text in column2, 2018 Text in column3, 691,&lt;BR /&gt;Company2, Company2 16, 1000, 01-01-2016, 01-01-2017, 2016 Text in column1, 2016 Text in column2, 2016 Text in column3, 492,&lt;BR /&gt;Company2, Company2 17, 1020, 01-01-2017, 01-01-2018, 2017 Text in column1, 2017 Text in column2, 2017 Text in column3, 492,&lt;BR /&gt;Company2, Company2 18, 998, 01-01-2018, 01-01-2019, 2018 Text in column1, 2018 Text in column2, 2018 Text in column3, 492,&lt;BR /&gt;];&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 20:37:51 GMT</pubDate>
    <dc:creator>klikgevoel</dc:creator>
    <dc:date>2024-11-16T20:37:51Z</dc:date>
    <item>
      <title>Latest text values in straight table</title>
      <link>https://community.qlik.com/t5/App-Development/Latest-text-values-in-straight-table/m-p/1593626#M43655</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I'm trying to show the latest text values in a straight table. However, using FirstSortedValue() or an Aggr() function does not seem to work, ie FirstSortedValue(Column1, -Enddate) or =Aggr(FirstSortedValue(Column1,-Enddate),Identifier,Name). See image below as an example of my data and the solution.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="qlik_question_latest_values_straight-table.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/13999i7D902AF9E39D4044/image-size/large?v=v2&amp;amp;px=999" role="button" title="qlik_question_latest_values_straight-table.PNG" alt="qlik_question_latest_values_straight-table.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some data as an example to work with:&lt;/P&gt;&lt;P&gt;Main:&lt;BR /&gt;LOAD * Inline [&lt;BR /&gt;Name, Name-label, Employees, Startdate, Enddate, Column1, Column2, Column3, Identifier&lt;BR /&gt;Company1, Company1 16, 200, 01-01-2016, 01-01-2017, 2016 Text in column1, 2016 Text in column2, 2016 Text in column3, 691,&lt;BR /&gt;Company1, Company1 17, 180, 01-01-2017, 01-01-2018, 2017 Text in column1, 2017 Text in column2, 2017 Text in column3, 691,&lt;BR /&gt;Company1, Company1 19, 150, 01-01-2018, 01-01-2020, 2018 Text in column1, 2018 Text in column2, 2018 Text in column3, 691,&lt;BR /&gt;Company2, Company2 16, 1000, 01-01-2016, 01-01-2017, 2016 Text in column1, 2016 Text in column2, 2016 Text in column3, 492,&lt;BR /&gt;Company2, Company2 17, 1020, 01-01-2017, 01-01-2018, 2017 Text in column1, 2017 Text in column2, 2017 Text in column3, 492,&lt;BR /&gt;Company2, Company2 18, 998, 01-01-2018, 01-01-2019, 2018 Text in column1, 2018 Text in column2, 2018 Text in column3, 492,&lt;BR /&gt;];&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 20:37:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Latest-text-values-in-straight-table/m-p/1593626#M43655</guid>
      <dc:creator>klikgevoel</dc:creator>
      <dc:date>2024-11-16T20:37:51Z</dc:date>
    </item>
    <item>
      <title>Re: Latest text values in straight table</title>
      <link>https://community.qlik.com/t5/App-Development/Latest-text-values-in-straight-table/m-p/1593654#M43656</link>
      <description>&lt;P&gt;Are you sure your Startdate and Enddate are both Dates?&amp;nbsp; You may have to run a LOAD *... Date(Startdate, 'MM-DD-YYYY') AS 'StartDateDate'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was able to arrive at your solution using FirstSortedValue i.e&amp;nbsp;FirstSortedValue(Employees, -Enddate) as a measure.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="QlikQuestion.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/14002i213DC40C020DE519/image-size/large?v=v2&amp;amp;px=999" role="button" title="QlikQuestion.png" alt="QlikQuestion.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm going to try to attach the QVF I've got, but I know the forum LOVES rejecting the upload of such files.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2019 13:58:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Latest-text-values-in-straight-table/m-p/1593654#M43656</guid>
      <dc:creator>JustinDallas</dc:creator>
      <dc:date>2019-06-19T13:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: Latest text values in straight table</title>
      <link>https://community.qlik.com/t5/App-Development/Latest-text-values-in-straight-table/m-p/1593687#M43659</link>
      <description>&lt;P&gt;Ofcourse this isn't the actual data model I'm eventually working in. But this shows that the date-format isn't being read as an actual date in the current data model. Thanks for the tip &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2019 14:31:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Latest-text-values-in-straight-table/m-p/1593687#M43659</guid>
      <dc:creator>klikgevoel</dc:creator>
      <dc:date>2019-06-19T14:31:03Z</dc:date>
    </item>
  </channel>
</rss>

