<?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: Find customers with duplicate invoice ID in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Find-customers-with-duplicate-invoice-ID/m-p/364505#M494763</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; Just noticed that if I create a chart with CustomerID as the&lt;STRONG&gt; only dimension &lt;/STRONG&gt;and this expression &lt;SPAN style="font-size: 8pt;"&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CustomerID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;), &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;InvoiceID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;I end up getting a list of customerID's that has no duplicate invoices (which is kinda what I want). It seems to be the solution to my request, but I don't really understand why and how it works... and I still need the opposite list -&amp;gt; List of customers who have duplicate invoices with other customers...&amp;nbsp; //Robert&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Mar 2012 12:18:17 GMT</pubDate>
    <dc:creator>RSvebeck</dc:creator>
    <dc:date>2012-03-22T12:18:17Z</dc:date>
    <item>
      <title>Find customers with duplicate invoice ID</title>
      <link>https://community.qlik.com/t5/QlikView/Find-customers-with-duplicate-invoice-ID/m-p/364502#M494760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;BR /&gt;I previously posted a question about this, but the example data in my previous quiestion was not complex enough. So I do new post with a better example.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I need to make a list of all customers who have duplicate invoice ID's with other customers.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;InvoiceID CustomerID&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;101 A&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;102 A&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;103 A&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;104 A&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;501 A&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;201 B&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;202 B&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;203 B&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;204 B&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;101 C&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;301 C&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;302 C&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;303 C&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;304 C&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;501 C&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;101 E&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;501 E&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;101 F&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;501 F&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;900 G&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;901 G&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;301 K&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;What I want : A list that contains &lt;SPAN style="font-family: courier new,courier;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;customerID =&lt;/SPAN&gt; A,C,E,F,K&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;How do I do it - with a &lt;STRONG&gt;expression&lt;/STRONG&gt;?&lt;EM&gt; I know how to do it in the load script.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I attached an more "explenational example".&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;brg Robert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2012 10:25:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-customers-with-duplicate-invoice-ID/m-p/364502#M494760</guid>
      <dc:creator>RSvebeck</dc:creator>
      <dc:date>2012-03-22T10:25:39Z</dc:date>
    </item>
    <item>
      <title>Find customers with duplicate invoice ID</title>
      <link>https://community.qlik.com/t5/QlikView/Find-customers-with-duplicate-invoice-ID/m-p/364503#M494761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;I'm not sure if this will be enough, but in the first pivot ( 'Not a complete solution '), you can remove the second dimension and add the following expression: &lt;/P&gt;&lt;P&gt;concat ( DISTINCT CustomerID, ', ')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The result will be the one you described in your post: &lt;SPAN style="font-family: courier new,courier;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;customerID =&lt;/SPAN&gt; A,C,E,F,K&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Hope this helps, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Erich&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2012 11:12:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-customers-with-duplicate-invoice-ID/m-p/364503#M494761</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2012-03-22T11:12:16Z</dc:date>
    </item>
    <item>
      <title>Find customers with duplicate invoice ID</title>
      <link>https://community.qlik.com/t5/QlikView/Find-customers-with-duplicate-invoice-ID/m-p/364504#M494762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi. Thanks for your suggestion. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However this is not what I want. My post was misleading ( I don't want a list like A,C,E in a row)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I want a list where customeID is the only (visible) column. (as descibed in the docuement)&lt;/P&gt;&lt;P&gt; The reason is that in me "real world" data, there are 10'000 customers and 100'000 invoices, and we can see that there are duplicates in invoice ID, which makes a merge not possible. So I want to list all customers that have invoice numbers that are duplicates (or actually I need a list of the opposite, customers which have no duplicate invoices.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Simply&amp;nbsp; - a list all customersID's where there is a duplicate invoice. &lt;STRONG&gt;And only list a customer ID once (even if that custumer has several duplicate invoices).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Robert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2012 12:08:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-customers-with-duplicate-invoice-ID/m-p/364504#M494762</guid>
      <dc:creator>RSvebeck</dc:creator>
      <dc:date>2012-03-22T12:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: Find customers with duplicate invoice ID</title>
      <link>https://community.qlik.com/t5/QlikView/Find-customers-with-duplicate-invoice-ID/m-p/364505#M494763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; Just noticed that if I create a chart with CustomerID as the&lt;STRONG&gt; only dimension &lt;/STRONG&gt;and this expression &lt;SPAN style="font-size: 8pt;"&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CustomerID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;), &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;InvoiceID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;I end up getting a list of customerID's that has no duplicate invoices (which is kinda what I want). It seems to be the solution to my request, but I don't really understand why and how it works... and I still need the opposite list -&amp;gt; List of customers who have duplicate invoices with other customers...&amp;nbsp; //Robert&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2012 12:18:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-customers-with-duplicate-invoice-ID/m-p/364505#M494763</guid>
      <dc:creator>RSvebeck</dc:creator>
      <dc:date>2012-03-22T12:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: Find customers with duplicate invoice ID</title>
      <link>https://community.qlik.com/t5/QlikView/Find-customers-with-duplicate-invoice-ID/m-p/364506#M494764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;see the attached file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2012 12:53:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-customers-with-duplicate-invoice-ID/m-p/364506#M494764</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2012-03-22T12:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: Find customers with duplicate invoice ID</title>
      <link>https://community.qlik.com/t5/QlikView/Find-customers-with-duplicate-invoice-ID/m-p/364507#M494765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi. Did you post the right document? The one you attached displays &lt;STRONG&gt;all &lt;/STRONG&gt;customerID's in a chart. //Robert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2012 13:01:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-customers-with-duplicate-invoice-ID/m-p/364507#M494765</guid>
      <dc:creator>RSvebeck</dc:creator>
      <dc:date>2012-03-22T13:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: Find customers with duplicate invoice ID</title>
      <link>https://community.qlik.com/t5/QlikView/Find-customers-with-duplicate-invoice-ID/m-p/364508#M494766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see the attached file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2012 14:46:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-customers-with-duplicate-invoice-ID/m-p/364508#M494766</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2012-03-22T14:46:06Z</dc:date>
    </item>
    <item>
      <title>Find customers with duplicate invoice ID</title>
      <link>https://community.qlik.com/t5/QlikView/Find-customers-with-duplicate-invoice-ID/m-p/364509#M494767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Create a listbox for InvoiceID if you don't already have one. Click on the titlebar of that listbox to select it. Now, type this:&amp;nbsp;&amp;nbsp; =count(distinct CustomerID)&amp;gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and hit &amp;lt;enter&amp;gt;. That will select all of the InvoiceID values belonging to more than one customer. At this point your chart may be the way you want it. &lt;/P&gt;&lt;P&gt;If you want to select those customers go to a listbox for the CustomerID, right-click, and choose Select Possible&amp;nbsp;&amp;nbsp; and it will have selected the Customer who share the same InvoiceID. At that point, you may unselect the InvoiceID if necessary.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2012 15:21:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-customers-with-duplicate-invoice-ID/m-p/364509#M494767</guid>
      <dc:creator />
      <dc:date>2012-03-22T15:21:59Z</dc:date>
    </item>
  </channel>
</rss>

