<?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 Find minimum for each record in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Find-minimum-for-each-record/m-p/1947697#M78106</link>
    <description>&lt;P&gt;I have to find minimum [Task No] for records based on&amp;nbsp;"T$PITM" , "T$BPID", "T$TANO" , Company_Code.&lt;/P&gt;
&lt;P&gt;My code is working fine for maximum but it is not working as expected for Minimum.&lt;/P&gt;
&lt;P&gt;Below is my code for Maximum -&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[Max_SEQN]:&lt;BR /&gt;Mapping&lt;BR /&gt;Load&lt;BR /&gt;"T$PITM" &amp;amp; '|' &amp;amp; "T$BPID" &amp;amp; '|' &amp;amp; "T$TANO" &amp;amp; '|' &amp;amp; Company_Code,&lt;BR /&gt;max("T$SEQN") as [Max_SEQN_Updated] &lt;BR /&gt;FROM [$(vSource)\TTIUIL160.qvd](qvd)&lt;BR /&gt;Group By&lt;BR /&gt;Company_Code,&lt;BR /&gt;"T$PITM",&lt;BR /&gt;"T$BPID",&lt;BR /&gt;"T$TANO";&lt;/P&gt;
&lt;P&gt;And I am using the below inside my table -&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;if(ApplyMap('Min_SEQN',"T$PITM" &amp;amp; '|' &amp;amp; "T$BPID" &amp;amp; '|' &amp;amp; "T$TANO" &amp;amp; '|' &amp;amp; Company_Code,'-') = floor(num("T$SEQN")),1,0 ) as [Max_SEQN_Flag],&lt;/P&gt;
&lt;P&gt;And I am using this like -&amp;nbsp;&lt;/P&gt;
&lt;P&gt;where [Max_SEQN_Flag]=1;&lt;/P&gt;
&lt;P&gt;It works perfect.&lt;/P&gt;
&lt;P&gt;Please help me to the same with Minimum, I replaced Max with Min but it is not coming correct.&lt;/P&gt;</description>
    <pubDate>Fri, 24 Jun 2022 04:58:56 GMT</pubDate>
    <dc:creator>risabhroy_03</dc:creator>
    <dc:date>2022-06-24T04:58:56Z</dc:date>
    <item>
      <title>Find minimum for each record</title>
      <link>https://community.qlik.com/t5/App-Development/Find-minimum-for-each-record/m-p/1947697#M78106</link>
      <description>&lt;P&gt;I have to find minimum [Task No] for records based on&amp;nbsp;"T$PITM" , "T$BPID", "T$TANO" , Company_Code.&lt;/P&gt;
&lt;P&gt;My code is working fine for maximum but it is not working as expected for Minimum.&lt;/P&gt;
&lt;P&gt;Below is my code for Maximum -&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[Max_SEQN]:&lt;BR /&gt;Mapping&lt;BR /&gt;Load&lt;BR /&gt;"T$PITM" &amp;amp; '|' &amp;amp; "T$BPID" &amp;amp; '|' &amp;amp; "T$TANO" &amp;amp; '|' &amp;amp; Company_Code,&lt;BR /&gt;max("T$SEQN") as [Max_SEQN_Updated] &lt;BR /&gt;FROM [$(vSource)\TTIUIL160.qvd](qvd)&lt;BR /&gt;Group By&lt;BR /&gt;Company_Code,&lt;BR /&gt;"T$PITM",&lt;BR /&gt;"T$BPID",&lt;BR /&gt;"T$TANO";&lt;/P&gt;
&lt;P&gt;And I am using the below inside my table -&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;if(ApplyMap('Min_SEQN',"T$PITM" &amp;amp; '|' &amp;amp; "T$BPID" &amp;amp; '|' &amp;amp; "T$TANO" &amp;amp; '|' &amp;amp; Company_Code,'-') = floor(num("T$SEQN")),1,0 ) as [Max_SEQN_Flag],&lt;/P&gt;
&lt;P&gt;And I am using this like -&amp;nbsp;&lt;/P&gt;
&lt;P&gt;where [Max_SEQN_Flag]=1;&lt;/P&gt;
&lt;P&gt;It works perfect.&lt;/P&gt;
&lt;P&gt;Please help me to the same with Minimum, I replaced Max with Min but it is not coming correct.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2022 04:58:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Find-minimum-for-each-record/m-p/1947697#M78106</guid>
      <dc:creator>risabhroy_03</dc:creator>
      <dc:date>2022-06-24T04:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: Find minimum for each record</title>
      <link>https://community.qlik.com/t5/App-Development/Find-minimum-for-each-record/m-p/1947834#M78116</link>
      <description>&lt;P&gt;did you change al the Max values to min, if so could you please als add the updated scripts&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2022 10:22:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Find-minimum-for-each-record/m-p/1947834#M78116</guid>
      <dc:creator>MartW</dc:creator>
      <dc:date>2022-06-24T10:22:31Z</dc:date>
    </item>
  </channel>
</rss>

