<?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 Using where syntax and select highest value per project in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Using-where-syntax-and-select-highest-value-per-project/m-p/2104345#M90201</link>
    <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I´ve a data model where I have a project ID and every project ID can have either one or more milstones reached.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example:&lt;BR /&gt;P10999|PM040,PM070&lt;/P&gt;
&lt;P&gt;P50002|PM070&lt;/P&gt;
&lt;P&gt;P60232|PM040&lt;/P&gt;
&lt;P&gt;Now I did the following:&amp;nbsp; if(MILESTONE='PM040','1',if(MILESTONE='PM070','2','0')) as Milstone_Number. Now every PM040 has a 1 and every PM070 a 2.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can someone help with the syntax in the where clause? I want to choose the highest value every Project ID has now.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Thu, 10 Aug 2023 06:41:01 GMT</pubDate>
    <dc:creator>JohannesBoehmer</dc:creator>
    <dc:date>2023-08-10T06:41:01Z</dc:date>
    <item>
      <title>Using where syntax and select highest value per project</title>
      <link>https://community.qlik.com/t5/App-Development/Using-where-syntax-and-select-highest-value-per-project/m-p/2104345#M90201</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I´ve a data model where I have a project ID and every project ID can have either one or more milstones reached.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example:&lt;BR /&gt;P10999|PM040,PM070&lt;/P&gt;
&lt;P&gt;P50002|PM070&lt;/P&gt;
&lt;P&gt;P60232|PM040&lt;/P&gt;
&lt;P&gt;Now I did the following:&amp;nbsp; if(MILESTONE='PM040','1',if(MILESTONE='PM070','2','0')) as Milstone_Number. Now every PM040 has a 1 and every PM070 a 2.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can someone help with the syntax in the where clause? I want to choose the highest value every Project ID has now.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2023 06:41:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-where-syntax-and-select-highest-value-per-project/m-p/2104345#M90201</guid>
      <dc:creator>JohannesBoehmer</dc:creator>
      <dc:date>2023-08-10T06:41:01Z</dc:date>
    </item>
    <item>
      <title>Re: Using where syntax and select highest value per project</title>
      <link>https://community.qlik.com/t5/App-Development/Using-where-syntax-and-select-highest-value-per-project/m-p/2104353#M90202</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;Try like below, it will give only the max milestone info per project.&lt;/P&gt;
&lt;P&gt;MTemp:&lt;BR /&gt;Load PID, milestones, if(milestones = 'PM040', 1, if(milestones = 'PM070', 2, 3)) as Milstone_Number;&lt;BR /&gt;LOAD *, SubField(milstones, ',') as milestones INLINE [&lt;BR /&gt;PID | milstones&lt;BR /&gt;P10999|PM040,PM070&lt;BR /&gt;&lt;BR /&gt;P50002|PM070&lt;BR /&gt;&lt;BR /&gt;P60232|PM040&lt;BR /&gt;](delimiter is '|');&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Inner Join&lt;BR /&gt;Load PID, max(Milstone_Number) as Milstone_Number Resident MTemp Group by PID;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2023 06:52:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-where-syntax-and-select-highest-value-per-project/m-p/2104353#M90202</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2023-08-10T06:52:11Z</dc:date>
    </item>
  </channel>
</rss>

