<?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: last record with condition in edit script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/last-record-with-condition-in-edit-script/m-p/1897925#M1217628</link>
    <description>&lt;P&gt;Here is one of the way you can do it:&lt;/P&gt;
&lt;P&gt;Data:&lt;BR /&gt;Load * inline [&lt;BR /&gt;id1, name1, choice1, family1&lt;BR /&gt;1, a, teh, cili&lt;BR /&gt;2, a, teh, dili&lt;BR /&gt;3, a, teh, vili&lt;BR /&gt;4, b, teh, nili&lt;BR /&gt;5, b, ker, fili&lt;BR /&gt;6, c, teh, jili&lt;BR /&gt;7, c, teh, mili&lt;BR /&gt;8, c, ker, bili&lt;BR /&gt;9, d, teh, rili&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Temp:&lt;BR /&gt;Load maxString(name1) as name&lt;BR /&gt;Resident Data&lt;BR /&gt;where choice1 = 'ker'&lt;BR /&gt;group by name1;&lt;/P&gt;
&lt;P&gt;Load &lt;BR /&gt;max(id1) as id,&lt;BR /&gt;MaxString(name1) as name,&lt;BR /&gt;MaxString(choice1) as choice,&lt;BR /&gt;MaxString(family1) as family&lt;BR /&gt;Resident Data&lt;BR /&gt;where not Exists(name, name1)&lt;BR /&gt;group by name1;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;drop table Temp;&lt;BR /&gt;drop table Data;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Raja2022_0-1645894083305.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/73160i0A56F89AB56A97E3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Raja2022_0-1645894083305.png" alt="Raja2022_0-1645894083305.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Hope this helps..&lt;/P&gt;</description>
    <pubDate>Sat, 26 Feb 2022 16:48:29 GMT</pubDate>
    <dc:creator>Raja2022</dc:creator>
    <dc:date>2022-02-26T16:48:29Z</dc:date>
    <item>
      <title>last record with condition in edit script</title>
      <link>https://community.qlik.com/t5/QlikView/last-record-with-condition-in-edit-script/m-p/1897887#M1217624</link>
      <description>&lt;P&gt;hello&lt;/P&gt;
&lt;P&gt;please consider below table:&lt;/P&gt;
&lt;TABLE border="1" width="65.35512627800487%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="20%" height="25px"&gt;id&lt;/TD&gt;
&lt;TD width="20%" height="25px"&gt;name&lt;/TD&gt;
&lt;TD width="20%" height="25px"&gt;choice&lt;/TD&gt;
&lt;TD width="20%" height="25px"&gt;family&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="20%" height="25px"&gt;1&lt;/TD&gt;
&lt;TD width="20%" height="25px"&gt;a&lt;/TD&gt;
&lt;TD width="20%" height="25px"&gt;teh&lt;/TD&gt;
&lt;TD width="20%" height="25px"&gt;cili&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="20%" height="42px"&gt;2&lt;/TD&gt;
&lt;TD width="20%" height="42px"&gt;a&lt;/TD&gt;
&lt;TD width="20%" height="42px"&gt;teh&lt;/TD&gt;
&lt;TD width="20%" height="42px"&gt;dili&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="20%" height="25px"&gt;3&lt;/TD&gt;
&lt;TD width="20%" height="25px"&gt;a&lt;/TD&gt;
&lt;TD width="20%" height="25px"&gt;teh&lt;/TD&gt;
&lt;TD width="20%" height="25px"&gt;vili&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="20%" height="62px"&gt;4&lt;/TD&gt;
&lt;TD width="20%" height="62px"&gt;b&lt;/TD&gt;
&lt;TD width="20%" height="62px"&gt;teh&lt;/TD&gt;
&lt;TD width="20%" height="62px"&gt;nili&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="20%" height="44px"&gt;5&lt;/TD&gt;
&lt;TD width="20%" height="44px"&gt;b&lt;/TD&gt;
&lt;TD width="20%" height="44px"&gt;ker&lt;/TD&gt;
&lt;TD width="20%" height="44px"&gt;fili&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="20%" height="25px"&gt;6&lt;/TD&gt;
&lt;TD width="20%" height="25px"&gt;c&lt;/TD&gt;
&lt;TD width="20%" height="25px"&gt;teh&lt;/TD&gt;
&lt;TD width="20%" height="25px"&gt;jili&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="20%" height="25px"&gt;7&lt;/TD&gt;
&lt;TD width="20%" height="25px"&gt;c&lt;/TD&gt;
&lt;TD width="20%" height="25px"&gt;teh&lt;/TD&gt;
&lt;TD width="20%" height="25px"&gt;mili&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="20%" height="25px"&gt;8&lt;/TD&gt;
&lt;TD width="20%" height="25px"&gt;c&lt;/TD&gt;
&lt;TD width="20%" height="25px"&gt;ker&lt;/TD&gt;
&lt;TD width="20%" height="25px"&gt;bili&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="20%" height="25px"&gt;9&lt;/TD&gt;
&lt;TD width="20%" height="25px"&gt;d&lt;/TD&gt;
&lt;TD width="20%" height="25px"&gt;teh&lt;/TD&gt;
&lt;TD width="20%" height="25px"&gt;rili&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;for each name show only max id and choice ="teh"&lt;/P&gt;
&lt;P&gt;if the max id for each name choice="ker " do not show the name and the row&lt;/P&gt;
&lt;P&gt;(i need code in edit script)&lt;/P&gt;
&lt;P&gt;result:&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="25%" height="25px"&gt;id&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;name&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;choice&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;family&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="25%" height="25px"&gt;3&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;a&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;teh&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;vili&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="25%" height="25px"&gt;9&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;d&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;teh&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;rili&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 26 Feb 2022 10:11:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/last-record-with-condition-in-edit-script/m-p/1897887#M1217624</guid>
      <dc:creator>entsh</dc:creator>
      <dc:date>2022-02-26T10:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: last record with condition in edit script</title>
      <link>https://community.qlik.com/t5/QlikView/last-record-with-condition-in-edit-script/m-p/1897911#M1217625</link>
      <description>&lt;P&gt;Maybe you can do like this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;//list name with 'ker'&lt;/P&gt;
&lt;P&gt;LOAD distinct name&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FROM Source&lt;/P&gt;
&lt;P&gt;WHERE choice = 'ker';&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;// the max id&amp;nbsp; per name where 'teh'&lt;/P&gt;
&lt;P&gt;inner Join&lt;/P&gt;
&lt;P&gt;Load&lt;/P&gt;
&lt;P&gt;name,&lt;/P&gt;
&lt;P&gt;Max(id) as id&lt;/P&gt;
&lt;P&gt;From Source&amp;nbsp;&lt;/P&gt;
&lt;P&gt;where choice = 'teh'&lt;/P&gt;
&lt;P&gt;Group By name;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;// Join on all the details for the identified ids.&lt;/P&gt;
&lt;P&gt;Left Join LOAD * FROM Source;&lt;/P&gt;</description>
      <pubDate>Sat, 26 Feb 2022 14:57:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/last-record-with-condition-in-edit-script/m-p/1897911#M1217625</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2022-02-26T14:57:15Z</dc:date>
    </item>
    <item>
      <title>Re: last record with condition in edit script</title>
      <link>https://community.qlik.com/t5/QlikView/last-record-with-condition-in-edit-script/m-p/1897925#M1217628</link>
      <description>&lt;P&gt;Here is one of the way you can do it:&lt;/P&gt;
&lt;P&gt;Data:&lt;BR /&gt;Load * inline [&lt;BR /&gt;id1, name1, choice1, family1&lt;BR /&gt;1, a, teh, cili&lt;BR /&gt;2, a, teh, dili&lt;BR /&gt;3, a, teh, vili&lt;BR /&gt;4, b, teh, nili&lt;BR /&gt;5, b, ker, fili&lt;BR /&gt;6, c, teh, jili&lt;BR /&gt;7, c, teh, mili&lt;BR /&gt;8, c, ker, bili&lt;BR /&gt;9, d, teh, rili&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Temp:&lt;BR /&gt;Load maxString(name1) as name&lt;BR /&gt;Resident Data&lt;BR /&gt;where choice1 = 'ker'&lt;BR /&gt;group by name1;&lt;/P&gt;
&lt;P&gt;Load &lt;BR /&gt;max(id1) as id,&lt;BR /&gt;MaxString(name1) as name,&lt;BR /&gt;MaxString(choice1) as choice,&lt;BR /&gt;MaxString(family1) as family&lt;BR /&gt;Resident Data&lt;BR /&gt;where not Exists(name, name1)&lt;BR /&gt;group by name1;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;drop table Temp;&lt;BR /&gt;drop table Data;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Raja2022_0-1645894083305.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/73160i0A56F89AB56A97E3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Raja2022_0-1645894083305.png" alt="Raja2022_0-1645894083305.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Hope this helps..&lt;/P&gt;</description>
      <pubDate>Sat, 26 Feb 2022 16:48:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/last-record-with-condition-in-edit-script/m-p/1897925#M1217628</guid>
      <dc:creator>Raja2022</dc:creator>
      <dc:date>2022-02-26T16:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: last record with condition in edit script</title>
      <link>https://community.qlik.com/t5/QlikView/last-record-with-condition-in-edit-script/m-p/1897927#M1217629</link>
      <description>&lt;P&gt;thanks a lot&lt;/P&gt;
&lt;P&gt;it almost done but&lt;/P&gt;
&lt;P&gt;i got this:&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="25%" height="25px"&gt;id&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;name&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;choice&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;family&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="25%" height="31px"&gt;3&lt;/TD&gt;
&lt;TD width="25%" height="31px"&gt;a&lt;/TD&gt;
&lt;TD width="25%" height="31px"&gt;teh&lt;/TD&gt;
&lt;TD width="25%" height="31px"&gt;vili&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="25%" height="25px"&gt;9&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;d&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;teh&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;rili&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD height="25px"&gt;-&lt;/TD&gt;
&lt;TD height="25px"&gt;b&lt;/TD&gt;
&lt;TD height="25px"&gt;-&lt;/TD&gt;
&lt;TD height="25px"&gt;-&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD height="25px"&gt;-&lt;/TD&gt;
&lt;TD height="25px"&gt;c&lt;/TD&gt;
&lt;TD height="25px"&gt;-&lt;/TD&gt;
&lt;TD height="25px"&gt;-&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i dont want to load the row 3 and 4 (name b &amp;amp; c are empty)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i want this result:&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="25%" height="25px"&gt;id&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;name&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;choice&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;family&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="25%" height="25px"&gt;3&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;a&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;teh&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;vili&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="25%" height="25px"&gt;9&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;d&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;teh&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;rili&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 26 Feb 2022 17:23:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/last-record-with-condition-in-edit-script/m-p/1897927#M1217629</guid>
      <dc:creator>entsh</dc:creator>
      <dc:date>2022-02-26T17:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: last record with condition in edit script</title>
      <link>https://community.qlik.com/t5/QlikView/last-record-with-condition-in-edit-script/m-p/1897931#M1217631</link>
      <description>&lt;P&gt;Please check your code once again. I am not getting the b, c records. In a blank qvw document copy and paste the code that I gave above and run it and see. You will only get id 3 and 9.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 26 Feb 2022 17:37:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/last-record-with-condition-in-edit-script/m-p/1897931#M1217631</guid>
      <dc:creator>Raja2022</dc:creator>
      <dc:date>2022-02-26T17:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: last record with condition in edit script</title>
      <link>https://community.qlik.com/t5/QlikView/last-record-with-condition-in-edit-script/m-p/1897932#M1217632</link>
      <description>&lt;P&gt;Attached is my .qvw dashboard and please take a look.&lt;/P&gt;</description>
      <pubDate>Sat, 26 Feb 2022 17:41:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/last-record-with-condition-in-edit-script/m-p/1897932#M1217632</guid>
      <dc:creator>Raja2022</dc:creator>
      <dc:date>2022-02-26T17:41:54Z</dc:date>
    </item>
    <item>
      <title>Re: last record with condition in edit script</title>
      <link>https://community.qlik.com/t5/QlikView/last-record-with-condition-in-edit-script/m-p/1897934#M1217634</link>
      <description>&lt;P&gt;thanks a lot ,its true&lt;/P&gt;
&lt;P&gt;i got extra rows because i didn't use these rows&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;drop table Temp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;drop table Data;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;i thought its not necessary&amp;nbsp;!!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 26 Feb 2022 17:48:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/last-record-with-condition-in-edit-script/m-p/1897934#M1217634</guid>
      <dc:creator>entsh</dc:creator>
      <dc:date>2022-02-26T17:48:16Z</dc:date>
    </item>
    <item>
      <title>Re: last record with condition in edit script</title>
      <link>https://community.qlik.com/t5/QlikView/last-record-with-condition-in-edit-script/m-p/1897936#M1217635</link>
      <description>&lt;P&gt;You are welcome&amp;nbsp; and glad able to help...&lt;/P&gt;
&lt;P&gt;Enjoy your day...&lt;/P&gt;</description>
      <pubDate>Sat, 26 Feb 2022 18:15:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/last-record-with-condition-in-edit-script/m-p/1897936#M1217635</guid>
      <dc:creator>Raja2022</dc:creator>
      <dc:date>2022-02-26T18:15:07Z</dc:date>
    </item>
  </channel>
</rss>

