<?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: Duplicate rows in qlik in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Duplicate-rows-in-qlik/m-p/2458274#M98640</link>
    <description>&lt;P&gt;Thanks Mark!, I dont want to eliminate first two rows I want to keep one of them. this is deduping exercise. I need either one of the first two row. A-&amp;gt; B or B--&amp;gt; A.&lt;/P&gt;</description>
    <pubDate>Fri, 31 May 2024 13:44:27 GMT</pubDate>
    <dc:creator>Maanasa</dc:creator>
    <dc:date>2024-05-31T13:44:27Z</dc:date>
    <item>
      <title>Duplicate rows in qlik</title>
      <link>https://community.qlik.com/t5/App-Development/Duplicate-rows-in-qlik/m-p/2457943#M98604</link>
      <description>&lt;P&gt;Hi, Here is my sample table, how do I eliminate duplicate rows where A--&amp;gt; B and B--&amp;gt; A , first two rows in below example needs to be considered as one single row.&lt;/P&gt;
&lt;P&gt;Load * inline [&lt;/P&gt;
&lt;P&gt;testID, col1, col2&lt;/P&gt;
&lt;P&gt;1, A, B&lt;/P&gt;
&lt;P&gt;1, B, A&lt;/P&gt;
&lt;P&gt;1, C, A&lt;/P&gt;
&lt;P&gt;2, D, E&lt;/P&gt;
&lt;P&gt;3, F, H&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks in advance!&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 20:57:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Duplicate-rows-in-qlik/m-p/2457943#M98604</guid>
      <dc:creator>Maanasa</dc:creator>
      <dc:date>2024-11-15T20:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate rows in qlik</title>
      <link>https://community.qlik.com/t5/App-Development/Duplicate-rows-in-qlik/m-p/2458015#M98614</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/301077"&gt;@Maanasa&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You mean that the first two rows in the example should be considered as one single row because "A" is the same as "B"?&lt;/P&gt;
&lt;P&gt;Then which one of the two lines should be left?&lt;/P&gt;
&lt;P&gt;Is there a standard you have?&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2024 02:21:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Duplicate-rows-in-qlik/m-p/2458015#M98614</guid>
      <dc:creator>MeehyeOh</dc:creator>
      <dc:date>2024-05-31T02:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate rows in qlik</title>
      <link>https://community.qlik.com/t5/App-Development/Duplicate-rows-in-qlik/m-p/2458020#M98616</link>
      <description>&lt;P&gt;compare col1 with col2 and create a temp table with ordering.&lt;/P&gt;
&lt;P&gt;create a final table with temp table data.&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2024 03:27:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Duplicate-rows-in-qlik/m-p/2458020#M98616</guid>
      <dc:creator>Aasir</dc:creator>
      <dc:date>2024-05-31T03:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate rows in qlik</title>
      <link>https://community.qlik.com/t5/App-Development/Duplicate-rows-in-qlik/m-p/2458033#M98619</link>
      <description>&lt;P&gt;If you want A|B&amp;nbsp; to be considered equal to B|A then you should consider making the rows identical in the load script.&lt;/P&gt;
&lt;P&gt;Maybe like this:&lt;/P&gt;
&lt;P&gt;Load testID , rangeminstring(col1,col2) as col1,rangemaxstring(col1,col2)&amp;nbsp; as col2&lt;/P&gt;
&lt;P&gt;inline [&lt;/P&gt;
&lt;P&gt;testID, col1, col2&lt;/P&gt;
&lt;P&gt;1, A, B&lt;/P&gt;
&lt;P&gt;1, B, A&lt;/P&gt;
&lt;P&gt;1, C, A&lt;/P&gt;
&lt;P&gt;2, D, E&lt;/P&gt;
&lt;P&gt;3, F, H&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2024 04:46:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Duplicate-rows-in-qlik/m-p/2458033#M98619</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2024-05-31T04:46:50Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate rows in qlik</title>
      <link>https://community.qlik.com/t5/App-Development/Duplicate-rows-in-qlik/m-p/2458035#M98621</link>
      <description>&lt;P&gt;Quite good exercise&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/301077"&gt;@Maanasa&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, to eliminate the first two records you can do the following:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;InputData:
LOAD
  testID, 
  col1, 
  col2,
  Hash128(col1, col2) AS Hash12,
  Hash128(col2, col1) AS Hash21
;
Load * inline [
testID, col1, col2
1, A, B
1, B, A
1, C, A
2, D, E
3, F, H
];

FinalResult:
LOAD
  testID, 
  col1, 
  col2
RESIDENT
	InputData
WHERE
	Not Exists(Hash12,Hash21)
;

DROP TABLE InputData;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This will be your end result:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="marksouzacosta_0-1717130803406.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/167133i50F3053D187BFEAA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="marksouzacosta_0-1717130803406.png" alt="marksouzacosta_0-1717130803406.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2024 04:53:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Duplicate-rows-in-qlik/m-p/2458035#M98621</guid>
      <dc:creator>marksouzacosta</dc:creator>
      <dc:date>2024-05-31T04:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate rows in qlik</title>
      <link>https://community.qlik.com/t5/App-Development/Duplicate-rows-in-qlik/m-p/2458038#M98622</link>
      <description>&lt;P&gt;I like your approach&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22035"&gt;@marksouzacosta&lt;/a&gt;&amp;nbsp;- well done!&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2024 05:03:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Duplicate-rows-in-qlik/m-p/2458038#M98622</guid>
      <dc:creator>Lech_Miszkiewicz</dc:creator>
      <dc:date>2024-05-31T05:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate rows in qlik</title>
      <link>https://community.qlik.com/t5/App-Development/Duplicate-rows-in-qlik/m-p/2458085#M98624</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/301077"&gt;@Maanasa&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;The only addition to &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/25001"&gt;@Vegar&lt;/a&gt;&amp;nbsp;'s&amp;nbsp;script is, you will have to do is add &lt;STRONG&gt;Distinct&lt;/STRONG&gt; while loading then you eliminate the duplicate row, Refer the attached image :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Rohan_0-1717140616722.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/167139i490F7BE5A6CD55AE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Rohan_0-1717140616722.png" alt="Rohan_0-1717140616722.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22035"&gt;@marksouzacosta&lt;/a&gt;&amp;nbsp;, your code is cool too, but it will completely eliminate the duplicates, where as atleast one of them is to be retrieved in the data. Also, we can simply do a mapping load too to achieve the same result :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Rohan_1-1717140715977.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/167141i0CEA3C09A0685274/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Rohan_1-1717140715977.png" alt="Rohan_1-1717140715977.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Rohan.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2024 07:33:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Duplicate-rows-in-qlik/m-p/2458085#M98624</guid>
      <dc:creator>Rohan</dc:creator>
      <dc:date>2024-05-31T07:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate rows in qlik</title>
      <link>https://community.qlik.com/t5/App-Development/Duplicate-rows-in-qlik/m-p/2458274#M98640</link>
      <description>&lt;P&gt;Thanks Mark!, I dont want to eliminate first two rows I want to keep one of them. this is deduping exercise. I need either one of the first two row. A-&amp;gt; B or B--&amp;gt; A.&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2024 13:44:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Duplicate-rows-in-qlik/m-p/2458274#M98640</guid>
      <dc:creator>Maanasa</dc:creator>
      <dc:date>2024-05-31T13:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate rows in qlik</title>
      <link>https://community.qlik.com/t5/App-Development/Duplicate-rows-in-qlik/m-p/2458292#M98642</link>
      <description>&lt;P&gt;Thank you so much! that actually worked. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2024 14:21:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Duplicate-rows-in-qlik/m-p/2458292#M98642</guid>
      <dc:creator>Maanasa</dc:creator>
      <dc:date>2024-05-31T14:21:35Z</dc:date>
    </item>
  </channel>
</rss>

