<?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 a duplicate entry with a certain value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Find-a-duplicate-entry-with-a-certain-value/m-p/137006#M20452</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am flagging (FLAG) an entry according to an if comparing a mapping table to a value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;some of the entries have duplicate NAME&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of every duplicates of the same NAME, only 1 can be flagged FLAG&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--&amp;gt;&amp;nbsp; I want to FLAG every NAME duplicates with the FLAG &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I think I need to loop through every duplicate of the same NAME to check if there is one entry with the FLAG&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And if yes, Set the FLAG to every duplicate entry of the same NAME&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I check for duplicate like this&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;If(Exists("NAME"),'&lt;SPAN style="font-size: 13.3333px;"&gt;Duplicate&lt;/SPAN&gt;')&amp;nbsp; as Duplicate,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;further down the same LOAD I apply my FLAG like this&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;if(applymap('map_Refarticle',"Num article")&amp;lt;&amp;gt;"NUM OF ARTICLE" ,0,1) as &lt;SPAN style="font-size: 13.3333px;"&gt;FLAG&lt;/SPAN&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--&amp;gt; How can I ?&lt;/P&gt;&lt;P&gt;- &lt;STRONG&gt;loop through every Duplicate of each kind to find out if one of them has FLAG&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;- &lt;STRONG&gt;and set the FLAG to all of them if true&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess this is a bit of an message in a bottle but hey, I just stuck so I try&lt;/P&gt;&lt;P&gt;plus explaining the problem here is always a plus to understand it better :]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;guys&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Sep 2018 12:29:19 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-09-18T12:29:19Z</dc:date>
    <item>
      <title>Find a duplicate entry with a certain value</title>
      <link>https://community.qlik.com/t5/QlikView/Find-a-duplicate-entry-with-a-certain-value/m-p/137006#M20452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am flagging (FLAG) an entry according to an if comparing a mapping table to a value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;some of the entries have duplicate NAME&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of every duplicates of the same NAME, only 1 can be flagged FLAG&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--&amp;gt;&amp;nbsp; I want to FLAG every NAME duplicates with the FLAG &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I think I need to loop through every duplicate of the same NAME to check if there is one entry with the FLAG&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And if yes, Set the FLAG to every duplicate entry of the same NAME&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I check for duplicate like this&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;If(Exists("NAME"),'&lt;SPAN style="font-size: 13.3333px;"&gt;Duplicate&lt;/SPAN&gt;')&amp;nbsp; as Duplicate,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;further down the same LOAD I apply my FLAG like this&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;if(applymap('map_Refarticle',"Num article")&amp;lt;&amp;gt;"NUM OF ARTICLE" ,0,1) as &lt;SPAN style="font-size: 13.3333px;"&gt;FLAG&lt;/SPAN&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--&amp;gt; How can I ?&lt;/P&gt;&lt;P&gt;- &lt;STRONG&gt;loop through every Duplicate of each kind to find out if one of them has FLAG&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;- &lt;STRONG&gt;and set the FLAG to all of them if true&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess this is a bit of an message in a bottle but hey, I just stuck so I try&lt;/P&gt;&lt;P&gt;plus explaining the problem here is always a plus to understand it better :]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;guys&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2018 12:29:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-a-duplicate-entry-with-a-certain-value/m-p/137006#M20452</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-18T12:29:19Z</dc:date>
    </item>
  </channel>
</rss>

