<?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 Eliminate similar rows in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Eliminate-similar-rows/m-p/668841#M674790</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a scenario where there are multiple rows pertaining to the same account due to user input error. I am wondering if it is possible to only keep one of these rows for each account. Obviously the distinct function in qlikview seems like a solution to this, the only problem is that these similar rows differ slightly by 1 or 2 fields - so distinct doesn't work. I don't really care which of the rows stay, I just want to be able to identify which rows share [Field1] and [Field2] and if there is more than one to only keep one. Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Jul 2014 19:50:40 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-07-28T19:50:40Z</dc:date>
    <item>
      <title>Eliminate similar rows</title>
      <link>https://community.qlik.com/t5/QlikView/Eliminate-similar-rows/m-p/668841#M674790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a scenario where there are multiple rows pertaining to the same account due to user input error. I am wondering if it is possible to only keep one of these rows for each account. Obviously the distinct function in qlikview seems like a solution to this, the only problem is that these similar rows differ slightly by 1 or 2 fields - so distinct doesn't work. I don't really care which of the rows stay, I just want to be able to identify which rows share [Field1] and [Field2] and if there is more than one to only keep one. Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 19:50:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Eliminate-similar-rows/m-p/668841#M674790</guid>
      <dc:creator />
      <dc:date>2014-07-28T19:50:40Z</dc:date>
    </item>
    <item>
      <title>Re: Eliminate similar rows</title>
      <link>https://community.qlik.com/t5/QlikView/Eliminate-similar-rows/m-p/668842#M674791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if I understand your req&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;source:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // add an id&lt;/P&gt;&lt;P&gt;load *, rowno() as id;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // your 2 fields&lt;/P&gt;&lt;P&gt;load * inline [&lt;/P&gt;&lt;P&gt;field1, field2&lt;/P&gt;&lt;P&gt;1,a&lt;/P&gt;&lt;P&gt;1,b&lt;/P&gt;&lt;P&gt;1,c&lt;/P&gt;&lt;P&gt;2,a&lt;/P&gt;&lt;P&gt;2,b&lt;/P&gt;&lt;P&gt;1,a&lt;/P&gt;&lt;P&gt;1,a&lt;/P&gt;&lt;P&gt;2,a&lt;/P&gt;&lt;P&gt;3,a&lt;/P&gt;&lt;P&gt;3,b&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // group by and join to keep only the max (or min) by field1 and field2&lt;/P&gt;&lt;P&gt;right join (source)&lt;/P&gt;&lt;P&gt;load field1, field2, max(id) as id&lt;/P&gt;&lt;P&gt;Resident source&lt;/P&gt;&lt;P&gt;group by field1,field2;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 20:09:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Eliminate-similar-rows/m-p/668842#M674791</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-07-28T20:09:51Z</dc:date>
    </item>
    <item>
      <title>Re: Eliminate similar rows</title>
      <link>https://community.qlik.com/t5/QlikView/Eliminate-similar-rows/m-p/668843#M674792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;or (it seems easier)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;source:&lt;/P&gt;&lt;P&gt;load * inline [&lt;/P&gt;&lt;P&gt;field1, field2, f3, f4&lt;/P&gt;&lt;P&gt;0,a,1,1&lt;/P&gt;&lt;P&gt;0,b,1,1&lt;/P&gt;&lt;P&gt;1,a, 10, 10&lt;/P&gt;&lt;P&gt;1,b, 20, 20&lt;/P&gt;&lt;P&gt;1,c,60,60&lt;/P&gt;&lt;P&gt;2,a, 10, 10&lt;/P&gt;&lt;P&gt;2,b,50,50&lt;/P&gt;&lt;P&gt;1,a, 25, 25&lt;/P&gt;&lt;P&gt;1,a, 10, 10&lt;/P&gt;&lt;P&gt;2,a, 22, 22&lt;/P&gt;&lt;P&gt;3,a, 21, 21&lt;/P&gt;&lt;P&gt;3,b, 20, 20&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;NoConcatenate load *&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Resident source&lt;/P&gt;&lt;P&gt;where field1&amp;lt;&amp;gt; Peek(field1) or field2&amp;lt;&amp;gt;Peek(field2)&lt;/P&gt;&lt;P&gt;order by field1, field2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Table source;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 20:16:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Eliminate-similar-rows/m-p/668843#M674792</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-07-28T20:16:09Z</dc:date>
    </item>
  </channel>
</rss>

