<?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: Flag instance with max value in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Flag-instance-with-max-value/m-p/1744896#M57147</link>
    <description>&lt;P&gt;May be try like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Table:
LOAD ID,
Event_ID,
Time,
...
From ...;

Left Join (Table)
LOAD ID,
Max(Time) as Time,
1 as Max_Event
Resident Table
Group By ID;&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 17 Sep 2020 19:25:12 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2020-09-17T19:25:12Z</dc:date>
    <item>
      <title>Flag instance with max value</title>
      <link>https://community.qlik.com/t5/App-Development/Flag-instance-with-max-value/m-p/1744836#M57137</link>
      <description>&lt;P&gt;I have a table with several fields that include:&lt;/P&gt;&lt;P&gt;A unique ID&lt;/P&gt;&lt;P&gt;An "Event" ID&lt;/P&gt;&lt;P&gt;A "Time" column with a numeric value for days&lt;/P&gt;&lt;P&gt;-several others&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to flag, for each "event" ID, the occurrence with the largest value for "Time"&lt;/P&gt;&lt;P&gt;I'm trying the solution suggested by &lt;A href="https://community.qlik.com/t5/QlikView-App-Development/Get-1st-instance-of-max-value/m-p/823796" target="_self"&gt;this post &amp;nbsp;&amp;nbsp;&lt;/A&gt;&amp;nbsp; &amp;nbsp;but I've had some issues. At first I couldn't get the MAX() function to work within qlik so I did it through SQL. Now this part works but when I do the join to add the flags, it is added to every line.&lt;/P&gt;&lt;P&gt;Any suggestions to fix this solution or maybe an idea for a different one?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 18:05:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Flag-instance-with-max-value/m-p/1744836#M57137</guid>
      <dc:creator>FernandaNava</dc:creator>
      <dc:date>2024-11-16T18:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: Flag instance with max value</title>
      <link>https://community.qlik.com/t5/App-Development/Flag-instance-with-max-value/m-p/1744896#M57147</link>
      <description>&lt;P&gt;May be try like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Table:
LOAD ID,
Event_ID,
Time,
...
From ...;

Left Join (Table)
LOAD ID,
Max(Time) as Time,
1 as Max_Event
Resident Table
Group By ID;&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 17 Sep 2020 19:25:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Flag-instance-with-max-value/m-p/1744896#M57147</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-09-17T19:25:12Z</dc:date>
    </item>
  </channel>
</rss>

