<?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: Display each name and latest status by time in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Display-each-name-and-latest-status-by-time/m-p/2502033#M103405</link>
    <description>&lt;P&gt;Works, thanks &lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 20 Jan 2025 13:49:04 GMT</pubDate>
    <dc:creator>Itay113</dc:creator>
    <dc:date>2025-01-20T13:49:04Z</dc:date>
    <item>
      <title>Display each name and latest status by time</title>
      <link>https://community.qlik.com/t5/App-Development/Display-each-name-and-latest-status-by-time/m-p/2501919#M103392</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I have a table with these columns: name, category, status, dtime. I want to get latest status for each name from the same category even if I filter specific dtime and latest name’s status dtime is before filtered dtime. For example name - jack, category - worker, status - available, dtime - 2025-01-19 20:00:00, name - jack, category - worker, status - unavailable , dtime - 2025-01-19 21:00:00, name - mike, category - worker, status - available, dtime - 2025-01-19 20:00:00. So if I filter to 2025-01-19 21:00:00 I want to get name - jack, category - worker, status - unavailable , dtime - 2025-01-19 21:00:00, name - mike, category - worker, status - available, dtime - 2025-01-19 20:00:00&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 19 Jan 2025 18:58:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Display-each-name-and-latest-status-by-time/m-p/2501919#M103392</guid>
      <dc:creator>Itay113</dc:creator>
      <dc:date>2025-01-19T18:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: Display each name and latest status by time</title>
      <link>https://community.qlik.com/t5/App-Development/Display-each-name-and-latest-status-by-time/m-p/2501938#M103395</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/256596"&gt;@Itay113&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To achieve this in Qlik Sense, you can use a combination of Aggr() and FirstSortedValue() functions to get the latest status for each name within the same category, even when filtering by a specific dtime. Here's how you can do it:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FirstSortedValue(&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; {&amp;lt;dtime = {"&amp;lt;=$(vFilteredDTime)"}&amp;gt;} status,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; -Aggr(Max({&amp;lt;dtime = {"&amp;lt;=$(vFilteredDTime)"}&amp;gt;} dtime), name, category)&lt;/P&gt;
&lt;P&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards - Jandre&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2025 04:31:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Display-each-name-and-latest-status-by-time/m-p/2501938#M103395</guid>
      <dc:creator>JandreKillianRIC</dc:creator>
      <dc:date>2025-01-20T04:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: Display each name and latest status by time</title>
      <link>https://community.qlik.com/t5/App-Development/Display-each-name-and-latest-status-by-time/m-p/2502001#M103401</link>
      <description>&lt;P&gt;How can I instead of using variable value, use field value selected?&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2025 11:11:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Display-each-name-and-latest-status-by-time/m-p/2502001#M103401</guid>
      <dc:creator>Itay113</dc:creator>
      <dc:date>2025-01-20T11:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: Display each name and latest status by time</title>
      <link>https://community.qlik.com/t5/App-Development/Display-each-name-and-latest-status-by-time/m-p/2502003#M103402</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/256596"&gt;@Itay113&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FirstSortedValue(&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; {&amp;lt;dtime = {"&amp;lt;=$(=dtime)"}&amp;gt;} status,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; -Aggr(Max({&amp;lt;dtime = {"&amp;lt;=$(=dtime)"}&amp;gt;} dtime), name, category)&lt;/P&gt;
&lt;P&gt;)&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2025 11:13:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Display-each-name-and-latest-status-by-time/m-p/2502003#M103402</guid>
      <dc:creator>JandreKillianRIC</dc:creator>
      <dc:date>2025-01-20T11:13:27Z</dc:date>
    </item>
    <item>
      <title>Re: Display each name and latest status by time</title>
      <link>https://community.qlik.com/t5/App-Development/Display-each-name-and-latest-status-by-time/m-p/2502033#M103405</link>
      <description>&lt;P&gt;Works, thanks &lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2025 13:49:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Display-each-name-and-latest-status-by-time/m-p/2502033#M103405</guid>
      <dc:creator>Itay113</dc:creator>
      <dc:date>2025-01-20T13:49:04Z</dc:date>
    </item>
  </channel>
</rss>

