<?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: Flag Unique Customer IDs in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Flag-Unique-Customer-IDs/m-p/1099308#M635692</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are different approaches possible, it may depend on the final data model you want to achieve.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Cus_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; 'Table1' as Source&lt;/P&gt;&lt;P&gt;FROM Table1Source;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE&lt;/P&gt;&lt;P&gt;LOAD Cus_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; 'Table2' as Souce,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Exists(Cus_ID),1)&amp;nbsp; as DuplicateFlag&lt;/P&gt;&lt;P&gt;FROM Table2Source;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will flag the duplicates, but only in the second table records (still you are able to filter the Cus_ID accordingly).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Jun 2016 11:46:15 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2016-06-13T11:46:15Z</dc:date>
    <item>
      <title>Flag Unique Customer IDs</title>
      <link>https://community.qlik.com/t5/QlikView/Flag-Unique-Customer-IDs/m-p/1099306#M635689</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 am loading some Customer IDs in from 2 seperate databases and I want to identify which Customer ID's are contained in each table and which are not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hwo can I create flag script side so that I could correctly identify 1,3,5 as being duplicated but 2, 4 are not?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Cus_ID&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Cus_ID&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Stuart&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jun 2016 11:37:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Flag-Unique-Customer-IDs/m-p/1099306#M635689</guid>
      <dc:creator />
      <dc:date>2016-06-13T11:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: Flag Unique Customer IDs</title>
      <link>https://community.qlik.com/t5/QlikView/Flag-Unique-Customer-IDs/m-p/1099307#M635690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cust:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt; Cus_ID , Flag&lt;/P&gt;&lt;P&gt; 1,A&lt;/P&gt;&lt;P&gt; 2,A&lt;/P&gt;&lt;P&gt; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate&lt;/P&gt;&lt;P&gt; Cus_ID , Flag&lt;/P&gt;&lt;P&gt;1,B&lt;/P&gt;&lt;P&gt;3,B&lt;/P&gt;&lt;P&gt;5,B&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then Flag can be use in set analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jun 2016 11:44:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Flag-Unique-Customer-IDs/m-p/1099307#M635690</guid>
      <dc:creator>vikasmahajan</dc:creator>
      <dc:date>2016-06-13T11:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: Flag Unique Customer IDs</title>
      <link>https://community.qlik.com/t5/QlikView/Flag-Unique-Customer-IDs/m-p/1099308#M635692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are different approaches possible, it may depend on the final data model you want to achieve.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Cus_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; 'Table1' as Source&lt;/P&gt;&lt;P&gt;FROM Table1Source;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE&lt;/P&gt;&lt;P&gt;LOAD Cus_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; 'Table2' as Souce,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Exists(Cus_ID),1)&amp;nbsp; as DuplicateFlag&lt;/P&gt;&lt;P&gt;FROM Table2Source;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will flag the duplicates, but only in the second table records (still you are able to filter the Cus_ID accordingly).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jun 2016 11:46:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Flag-Unique-Customer-IDs/m-p/1099308#M635692</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-06-13T11:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: Flag Unique Customer IDs</title>
      <link>https://community.qlik.com/t5/QlikView/Flag-Unique-Customer-IDs/m-p/1099309#M635693</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;Try This.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Copy the same to your script and reload. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table_Missing:&lt;/P&gt;&lt;P&gt;LOAD&amp;nbsp; *&amp;nbsp; Inline [&lt;/P&gt;&lt;P&gt;Cust_Id&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;3&lt;/P&gt;&lt;P&gt;5&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table_All:&lt;/P&gt;&lt;P&gt;LOAD if(Exists(Cust_Id),1,0) as Flag, * Inline [&lt;/P&gt;&lt;P&gt;Cust_Id&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;3&lt;/P&gt;&lt;P&gt;4&lt;/P&gt;&lt;P&gt;5&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jun 2016 11:51:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Flag-Unique-Customer-IDs/m-p/1099309#M635693</guid>
      <dc:creator>er_mohit</dc:creator>
      <dc:date>2016-06-13T11:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: Flag Unique Customer IDs</title>
      <link>https://community.qlik.com/t5/QlikView/Flag-Unique-Customer-IDs/m-p/1099310#M635694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Stefan - is there any way to extended this method so that you can see the dupes on both sets of records?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jun 2016 11:58:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Flag-Unique-Customer-IDs/m-p/1099310#M635694</guid>
      <dc:creator />
      <dc:date>2016-06-13T11:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: Flag Unique Customer IDs</title>
      <link>https://community.qlik.com/t5/QlikView/Flag-Unique-Customer-IDs/m-p/1099311#M635696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As said, there are multiple possible solution, e.g one without exists():&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;Table:&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;LOAD Cus_ID&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Table1' as Source&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;FROM Table1Source;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;CONCATENATE&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;LOAD Cus_ID,&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Table2' as Souce&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;FROM Table2Source;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;LEFT JOIN (Table)&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;LOAD Cus_ID,&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Count(DISTINCT Source)&amp;gt;1, 'Duplicate','No Duplicate') as Flag&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;RESIDENT Table&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;GROUP BY Cus_ID;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jun 2016 13:08:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Flag-Unique-Customer-IDs/m-p/1099311#M635696</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-06-13T13:08:37Z</dc:date>
    </item>
    <item>
      <title>Re: Flag Unique Customer IDs</title>
      <link>https://community.qlik.com/t5/QlikView/Flag-Unique-Customer-IDs/m-p/1099312#M635698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks - simple but genius&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jun 2016 14:10:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Flag-Unique-Customer-IDs/m-p/1099312#M635698</guid>
      <dc:creator />
      <dc:date>2016-06-13T14:10:41Z</dc:date>
    </item>
  </channel>
</rss>

