<?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: Remove unwanted rows in a table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Remove-unwanted-rows-in-a-table/m-p/993556#M528869</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Razor , While leading the data, just load the data what you need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DESC,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; StartDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EndDate,&lt;/P&gt;&lt;P&gt;From Source;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inner Join(DATA)&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Max(StartDate) AS StartDate&lt;/P&gt;&lt;P&gt;Resident DATA&lt;/P&gt;&lt;P&gt;Group By CID;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above script keeps only latest record CID based on StartDate.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Aug 2015 15:08:56 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-08-25T15:08:56Z</dc:date>
    <item>
      <title>Remove unwanted rows in a table</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-unwanted-rows-in-a-table/m-p/993554#M528867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a straight table with content as shown below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 375px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="80"&gt;CID&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="66"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LID&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="71"&gt;Desc&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="75"&gt;StartDate&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="83"&gt;EndDate&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="17" style="border-top: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;Test&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;30/06/2012&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;30/06/2013&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="17" style="border-top: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;Test2&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;31/10/2013&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;31/10/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="17" style="border-top: none;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;Test&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;30/11/2008&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;30/11/2013&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="17" style="border-top: none;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;Test2&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;31/07/2014&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;31/07/2015&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="17" style="border-top: none;"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;Test&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;29/02/2008&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;28/02/2013&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="17" style="border-top: none;"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;Test2&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;31/10/2013&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;31/10/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="17" style="border-top: none;"&gt;4&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;Test&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;31/08/2012&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;31/08/2013&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="17" style="border-top: none;"&gt;4&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;Test2&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;31/08/2014&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;31/08/2015&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to keep only one row for each CID, i.e the latest row of data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone please let me know how to do this in the front end and not in the script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2015 15:03:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-unwanted-rows-in-a-table/m-p/993554#M528867</guid>
      <dc:creator />
      <dc:date>2015-08-25T15:03:03Z</dc:date>
    </item>
    <item>
      <title>Re: Remove unwanted rows in a table</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-unwanted-rows-in-a-table/m-p/993555#M528868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try using FirstSortedValue()&amp;nbsp; function : FirstSortedValue(CID, StartDate).&lt;/P&gt;&lt;P&gt;let me know if that doesnt work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2015 15:07:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-unwanted-rows-in-a-table/m-p/993555#M528868</guid>
      <dc:creator>Qrishna</dc:creator>
      <dc:date>2015-08-25T15:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: Remove unwanted rows in a table</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-unwanted-rows-in-a-table/m-p/993556#M528869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Razor , While leading the data, just load the data what you need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DESC,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; StartDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EndDate,&lt;/P&gt;&lt;P&gt;From Source;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inner Join(DATA)&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Max(StartDate) AS StartDate&lt;/P&gt;&lt;P&gt;Resident DATA&lt;/P&gt;&lt;P&gt;Group By CID;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above script keeps only latest record CID based on StartDate.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2015 15:08:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-unwanted-rows-in-a-table/m-p/993556#M528869</guid>
      <dc:creator />
      <dc:date>2015-08-25T15:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: Remove unwanted rows in a table</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-unwanted-rows-in-a-table/m-p/993557#M528870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could work with max()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Taking CID, LID, Desc and StartDate as Dimensions and max(EndDate) as expression ends up in a straight table just holding the values of the latest EndDate.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2015 15:12:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-unwanted-rows-in-a-table/m-p/993557#M528870</guid>
      <dc:creator>patroser</dc:creator>
      <dc:date>2015-08-25T15:12:32Z</dc:date>
    </item>
    <item>
      <title>Re: Remove unwanted rows in a table</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-unwanted-rows-in-a-table/m-p/993558#M528871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/96939_1.png" style="height: 227px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2015 15:17:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-unwanted-rows-in-a-table/m-p/993558#M528871</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-08-25T15:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: Remove unwanted rows in a table</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-unwanted-rows-in-a-table/m-p/993559#M528872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's working now. Thanks to everyone, especially Krishna and Massimo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2015 15:24:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-unwanted-rows-in-a-table/m-p/993559#M528872</guid>
      <dc:creator />
      <dc:date>2015-08-25T15:24:50Z</dc:date>
    </item>
  </channel>
</rss>

