<?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: How to remove duplicates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-remove-duplicates/m-p/539910#M201773</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe since there can be multiple interaction days that have the same Sale Day it should be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count(distinct [Sale day]&amp;amp;[Interaction Day] &amp;amp;Seller)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Jan 2014 20:09:14 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-01-20T20:09:14Z</dc:date>
    <item>
      <title>How to remove duplicates</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-remove-duplicates/m-p/539907#M201770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi team,&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; I hope you are doing great. I’m kind of new working on Qlikview, and I have an issue with one formula. I hope someone can help me out.&lt;/P&gt;&lt;P&gt;What I’m trying to do is an expression that can remove duplicates. I have as the dimension the Supervisor ID, and each Supervisors have their own sellers. Each seller need to have an interaction day before the sale is done. They can just make one sale each day. So on my tables I have something like this, since sometimes may database duplicates the sale days.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="padding-right: 5.4pt; padding-left: 5.4pt; padding-bottom: 0px; padding-top: 0px;" width="420"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="padding-right: 5.4pt; padding-left: 5.4pt; background: silver; border: windowtext 1pt solid;" valign="bottom" width="89"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Arial','sans-serif';"&gt;&lt;STRONG&gt;SupervisorID&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: windowtext 1pt solid; padding-left: 5.4pt; background: silver; border-left: medium none; border-bottom: windowtext 1pt solid;" valign="bottom" width="128"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Arial','sans-serif';"&gt;&lt;STRONG&gt;Seller&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: windowtext 1pt solid; padding-left: 5.4pt; background: silver; border-left: medium none; border-bottom: windowtext 1pt solid;" valign="bottom" width="105"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Arial','sans-serif';"&gt;&lt;STRONG&gt;Interaction day&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: windowtext 1pt solid; padding-left: 5.4pt; background: silver; border-left: medium none; border-bottom: windowtext 1pt solid;" valign="bottom" width="97"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Arial','sans-serif';"&gt;&lt;STRONG&gt;Sale day&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; border-left: windowtext 1pt solid; border-bottom: windowtext 1pt solid;" valign="bottom" width="89"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Arial','sans-serif';"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; border-left: medium none; border-bottom: windowtext 1pt solid;" valign="bottom" width="128"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Arial','sans-serif';"&gt;Kenia &lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; border-left: medium none; border-bottom: windowtext 1pt solid;" valign="bottom" width="105"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Arial','sans-serif';"&gt;12/31/2013&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; border-left: medium none; border-bottom: windowtext 1pt solid;" valign="bottom" width="97"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Arial','sans-serif';"&gt;01/03/2014&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; border-left: windowtext 1pt solid; border-bottom: windowtext 1pt solid;" valign="bottom" width="89"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Arial','sans-serif';"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; border-left: medium none; border-bottom: windowtext 1pt solid;" valign="bottom" width="128"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Arial','sans-serif';"&gt;Kenia &lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; border-left: medium none; border-bottom: windowtext 1pt solid;" valign="bottom" width="105"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Arial','sans-serif';"&gt;12/31/2013&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; border-left: medium none; border-bottom: windowtext 1pt solid;" valign="bottom" width="97"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Arial','sans-serif';"&gt;01/03/2014&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; border-left: windowtext 1pt solid; border-bottom: windowtext 1pt solid;" valign="bottom" width="89"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Arial','sans-serif';"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; border-left: medium none; border-bottom: windowtext 1pt solid;" valign="bottom" width="128"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Arial','sans-serif';"&gt;Andres &lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; border-left: medium none; border-bottom: windowtext 1pt solid;" valign="bottom" width="105"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Arial','sans-serif';"&gt;12/31/2013&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; border-left: medium none; border-bottom: windowtext 1pt solid;" valign="bottom" width="97"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Arial','sans-serif';"&gt;01/03/2014&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; border-left: windowtext 1pt solid; border-bottom: windowtext 1pt solid;" valign="bottom" width="89"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Arial','sans-serif';"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; border-left: medium none; border-bottom: windowtext 1pt solid;" valign="bottom" width="128"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Arial','sans-serif';"&gt;Andres &lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; border-left: medium none; border-bottom: windowtext 1pt solid;" valign="bottom" width="105"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Arial','sans-serif';"&gt;12/31/2013&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; border-left: medium none; border-bottom: windowtext 1pt solid;" valign="bottom" width="97"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Arial','sans-serif';"&gt;01/03/2014&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; border-left: windowtext 1pt solid; border-bottom: windowtext 1pt solid;" valign="bottom" width="89"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Arial','sans-serif';"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; border-left: medium none; border-bottom: windowtext 1pt solid;" valign="bottom" width="128"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Arial','sans-serif';"&gt;Iñigo&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; border-left: medium none; border-bottom: windowtext 1pt solid;" valign="bottom" width="105"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Arial','sans-serif';"&gt;12/2/2013&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; border-left: medium none; border-bottom: windowtext 1pt solid;" valign="bottom" width="97"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Arial','sans-serif';"&gt;12/03/2013&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; border-left: windowtext 1pt solid; border-bottom: windowtext 1pt solid;" valign="bottom" width="89"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Arial','sans-serif';"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; border-left: medium none; border-bottom: windowtext 1pt solid;" valign="bottom" width="128"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Arial','sans-serif';"&gt;Iñigo&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; border-left: medium none; border-bottom: windowtext 1pt solid;" valign="bottom" width="105"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Arial','sans-serif';"&gt;12/2/2013&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; border-left: medium none; border-bottom: windowtext 1pt solid;" valign="bottom" width="97"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Arial','sans-serif';"&gt;12/03/2013&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My intention is just to count one Sale day for each interaction day, corresponding to each seller.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Meaning to have something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="padding-right: 5.4pt; padding-left: 5.4pt; padding-bottom: 0px; padding-top: 0px;" width="420"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="padding-right: 5.4pt; padding-left: 5.4pt; background: silver; border: windowtext 1pt solid;" valign="bottom" width="89"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Arial','sans-serif';"&gt;&lt;STRONG&gt;SupervisorID&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: windowtext 1pt solid; padding-left: 5.4pt; background: silver; border-left: medium none; border-bottom: windowtext 1pt solid;" valign="bottom" width="128"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Arial','sans-serif';"&gt;&lt;STRONG&gt;Seller&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: windowtext 1pt solid; padding-left: 5.4pt; background: silver; border-left: medium none; border-bottom: windowtext 1pt solid;" valign="bottom" width="105"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Arial','sans-serif';"&gt;&lt;STRONG&gt;Interaction&amp;nbsp; day&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: windowtext 1pt solid; padding-left: 5.4pt; background: silver; border-left: medium none; border-bottom: windowtext 1pt solid;" valign="bottom" width="97"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Arial','sans-serif';"&gt;&lt;STRONG&gt;Sale day&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; border-left: windowtext 1pt solid; border-bottom: windowtext 1pt solid;" valign="bottom" width="89"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Arial','sans-serif';"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; border-left: medium none; border-bottom: windowtext 1pt solid;" valign="bottom" width="128"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt; background: yellow; font-family: 'Arial','sans-serif';"&gt;Kenia&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Arial','sans-serif';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; border-left: medium none; border-bottom: windowtext 1pt solid;" valign="bottom" width="105"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Arial','sans-serif';"&gt;12/31/2013&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; border-left: medium none; border-bottom: windowtext 1pt solid;" valign="bottom" width="97"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt; background: yellow; font-family: 'Arial','sans-serif';"&gt;01/03/2014&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; border-left: windowtext 1pt solid; border-bottom: windowtext 1pt solid;" valign="bottom" width="89"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Arial','sans-serif';"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; border-left: medium none; border-bottom: windowtext 1pt solid;" valign="bottom" width="128"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt; background: yellow; font-family: 'Arial','sans-serif';"&gt;Serrano&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; border-left: medium none; border-bottom: windowtext 1pt solid;" valign="bottom" width="105"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Arial','sans-serif';"&gt;12/31/2013&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; border-left: medium none; border-bottom: windowtext 1pt solid;" valign="bottom" width="97"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt; background: yellow; font-family: 'Arial','sans-serif';"&gt;01/03/2014&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; border-left: windowtext 1pt solid; border-bottom: windowtext 1pt solid;" valign="bottom" width="89"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Arial','sans-serif';"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; border-left: medium none; border-bottom: windowtext 1pt solid;" valign="bottom" width="128"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Arial','sans-serif';"&gt;Iñigo&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; border-left: medium none; border-bottom: windowtext 1pt solid;" valign="bottom" width="105"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Arial','sans-serif';"&gt;12/2/2013&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; border-left: medium none; border-bottom: windowtext 1pt solid;" valign="bottom" width="97"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Arial','sans-serif';"&gt;12/03/2013&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the total number of Sale day is “3”&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try to use a formula like: &lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: blue; font-family: 'Courier New';"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: blue; font-family: 'Courier New';"&gt;DISTINCT&lt;/SPAN&gt; &lt;SPAN style="font-size: 9pt; color: blue; font-family: 'Courier New';"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: maroon; font-family: 'Courier New';"&gt;saleday&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: maroon; font-family: 'Courier New';"&gt;interactionday&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;,1,0)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What happned was that using this way DISTINCT it deleated one of the 01/03/2014, so I just stayed with “2”, but Im looking to have a 3 since are diferent sellers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NOTE: I can’t modified my script nor my database. I have to use an expression.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope some one can halp me with this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2014 19:31:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-remove-duplicates/m-p/539907#M201770</guid>
      <dc:creator />
      <dc:date>2014-01-20T19:31:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove duplicates</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-remove-duplicates/m-p/539908#M201771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=count(distinct Seller &amp;amp; [Sale day])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See attached for an example using your data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2014 19:53:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-remove-duplicates/m-p/539908#M201771</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2014-01-20T19:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove duplicates</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-remove-duplicates/m-p/539909#M201772</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;If you don't need (or don't use) duplicates rows, try Load DISTINCT in script editor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MyTable:&lt;/P&gt;&lt;P&gt;LOAD DISTINCT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Field1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Field2,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FieldN&lt;/P&gt;&lt;P&gt;From MyTable.qvd;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally use your Count() Formula.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2014 20:08:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-remove-duplicates/m-p/539909#M201772</guid>
      <dc:creator />
      <dc:date>2014-01-20T20:08:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove duplicates</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-remove-duplicates/m-p/539910#M201773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe since there can be multiple interaction days that have the same Sale Day it should be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count(distinct [Sale day]&amp;amp;[Interaction Day] &amp;amp;Seller)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2014 20:09:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-remove-duplicates/m-p/539910#M201773</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-20T20:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove duplicates</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-remove-duplicates/m-p/539911#M201774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count({&amp;lt;seller={'*'}&amp;gt;} distinct saleday)&amp;nbsp; - for distinct records based on two field seller and saleday&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count({&amp;lt;seller={'*'}&amp;gt;} distinct [saleday] &amp;amp;[interactionday])&amp;nbsp;&amp;nbsp;&amp;nbsp; for distinct records based on three fields seller, interactionday and saleday&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2014 20:28:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-remove-duplicates/m-p/539911#M201774</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-20T20:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove duplicates</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-remove-duplicates/m-p/539912#M201775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nicole,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thanks for your prompt response, I tried to use your formula, but I just got the count distinct from all sellers and&amp;nbsp; sales day, it seems that is adding total Sellers + Sale day. &lt;/P&gt;&lt;P&gt;Where can I see the attachment?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2014 20:43:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-remove-duplicates/m-p/539912#M201775</guid>
      <dc:creator />
      <dc:date>2014-01-20T20:43:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove duplicates</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-remove-duplicates/m-p/539913#M201776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can find the attachment from looking at my post on the thread, not from in your inbox:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jiveImage" src="https://community.qlik.com/legacyfs/online/51781_pastedImage_0.png" style="width: 620px; height: 243px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I actually think you may want to go with &lt;A href="https://community.qlik.com/qlik-users/115687"&gt;Michael Gardner&lt;/A&gt;'s response.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2014 20:46:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-remove-duplicates/m-p/539913#M201776</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2014-01-20T20:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove duplicates</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-remove-duplicates/m-p/539914#M201777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Oswaldo,&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; I considered to make changes on the script, but I’m not allowed to change it.&lt;/P&gt;&lt;P&gt;I’m looking forward to make it happened with a formula.&lt;/P&gt;&lt;P&gt;Any extra ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your response.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2014 20:46:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-remove-duplicates/m-p/539914#M201777</guid>
      <dc:creator />
      <dc:date>2014-01-20T20:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove duplicates</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-remove-duplicates/m-p/539915#M201778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael&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; The same thing happened as Nicole case, but in this time I got a bigger number since it seems that is adding the interaction day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your response.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2014 20:48:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-remove-duplicates/m-p/539915#M201778</guid>
      <dc:creator />
      <dc:date>2014-01-20T20:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove duplicates</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-remove-duplicates/m-p/539916#M201779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you need to count only one Sales date per Interaction Date, you need to use an advanced aggregation function like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count( AGGR( min([Sale day]), SupervisorID, Seller, [Interaction Day]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function AGGR will pre-aggregate the detailed data and give you one Sales date for each combination of Supervisor, Seller and Interaction Date, and the function Count will count the results. If this is used as an expression in a chart with Supervisor and Seller as Dimensions, the result will accurately show the count of Sale Dates per Supervisor and Seller.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make sure NOT to use DISTINCT because some Sellers may have the same Sale Dates, and you want to count them separately.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I teach Advanced Aggregation at a great level of detail at the Masters Summit for QlikView, which is coming to Chicago this April - check out MastersSummit.com.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oleg Troyansky &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2014 20:54:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-remove-duplicates/m-p/539916#M201779</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2014-01-20T20:54:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove duplicates</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-remove-duplicates/m-p/539917#M201780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nitha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 11pt; font-family: 'Calibri','sans-serif';"&gt;I tried that way and it gave me only the Dinstinct form saleday, meaning that if other Seller sold on the same day the value was eliminated since was repeated even though was form different seller.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2014 21:12:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-remove-duplicates/m-p/539917#M201780</guid>
      <dc:creator />
      <dc:date>2014-01-20T21:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove duplicates</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-remove-duplicates/m-p/539918#M201781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please post an example dashboard so that we can help you.&amp;nbsp; Right now, we're just going at it blindly, and obviously failing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-1290"&gt;Preparing examples for Upload - Reduction and Data Scrambling&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2014 21:19:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-remove-duplicates/m-p/539918#M201781</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2014-01-20T21:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: Re: How to remove duplicates</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-remove-duplicates/m-p/539919#M201782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;True Nicole,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Please find attached one example. In this case I have the same sellers and the same duplicates dates that I posted at the beginning.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; font-family: 'Calibri','sans-serif';"&gt; I should have 103 salesday instead of 106 , since 3 of them are repeated. The same for interaction day, its repeated by 3 since the database repeated the saleday and the corresponding data for each Seller.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2014 23:16:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-remove-duplicates/m-p/539919#M201782</guid>
      <dc:creator />
      <dc:date>2014-01-20T23:16:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove duplicates</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-remove-duplicates/m-p/539920#M201783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;"If you need to count only one Sales date per Interaction Date"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is exactly what I need. I tried to use your formula but It didn't work. I just attached an example on my post. can you help me out with this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2014 00:14:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-remove-duplicates/m-p/539920#M201783</guid>
      <dc:creator />
      <dc:date>2014-01-21T00:14:49Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: How to remove duplicates</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-remove-duplicates/m-p/539921#M201784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/2310"&gt;Oleg Troyansky&lt;/A&gt;'s formula works for me.&amp;nbsp; I did make one minor change to it though.&amp;nbsp; Since you're displaying it on a chart where the Dimension is month, I also added Month to the aggr() function:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;=count( AGGR( min(SaleDay), SupervisorID, Seller, InteractionDay, Month))&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I have also attached the working .qvw file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2014 13:39:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-remove-duplicates/m-p/539921#M201784</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2014-01-21T13:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove duplicates</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-remove-duplicates/m-p/539922#M201785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Oleg Troyansky,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I came across your answer to a similar problem I am facing and in need of your advice/assistance to resolve this.&lt;/P&gt;&lt;P&gt;I need to discount the duplicate vendors (highlighted in yellow) where the DocUploadDate field is blank. I only want to display the unique vendor count using the AGGR function that you taught Braulio Nunez.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The system should count the total number of unique vendors (InviteesStatName) that have a DocUploadDate with Invitees_Status other than "Invited" AND those single record vendors without a DocUploadDate where the Invitees_Status is "Invited" (please see the second screenshot). These vendors have not had their "Invited" status updated to another status and still have a [Blank] DocUploadDate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used Count(AGGR(min([DocUploadDate]), InviteesStatName, [Invitees_Status])) but it only displays vendors with a DocUploadDate (in this case is minimum). It does not display vendors without a DocUploadDate that are non-duplicates with status "Invited".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate your prompt assistance on this.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="PLT - Vendors.jpg" class="jive-image image-1" src="/legacyfs/online/103567_PLT - Vendors.jpg" style="width: 620px; height: 254px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="PLT - Invited Vendors.png" class="jive-image image-2" src="/legacyfs/online/103571_PLT - Invited Vendors.png" style="width: 620px; height: 184px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Oct 2015 09:37:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-remove-duplicates/m-p/539922#M201785</guid>
      <dc:creator />
      <dc:date>2015-10-30T09:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove duplicates</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-remove-duplicates/m-p/539923#M201786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Samuel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your problem may sound similar, but is totally different from the other one that I responded to... In your example, I doubt if you need to use AGGR. Instead, you need to use a simple distinct count of &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; InviteesStatName, with a Set Analysis condition that reflects the logic that you have described - (Date = Blank and Status = Invited) or (Date &amp;lt;&amp;gt; Blank and Status &amp;lt;&amp;gt; Invited). Something along these lines:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count (&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; InviteesStatName=P({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[DocUploadDate]={'[BLANK]'}, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[Invitees_Status]={'Invited'}&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;gt;}&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; InviteesStatName&lt;/SPAN&gt;)&lt;/SPAN&gt;&amp;gt;} + P({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[DocUploadDate]-={'[BLANK]'}, &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[Invitees_Status]-={'Invited'}&lt;/SPAN&gt;&amp;gt;}&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; InviteesStatName&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;distinct &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; InviteesStatName)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Oleg Troyansky&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.amazon.com/gp/product/1118949552/ref=as_li_tl?ie=UTF8&amp;amp;camp=1789&amp;amp;creative=9325&amp;amp;creativeASIN=1118949552&amp;amp;linkCode=as2&amp;amp;tag=natursyner0f-20&amp;amp;linkId=HEF4KYLLE22XIQH2"&gt;QlikView Your Business: An expert guide to Business Discovery with QlikView and Qlik Sense&lt;/A&gt;&lt;IMG alt="" border="0" height="1" src="http://ir-na.amazon-adsystem.com/e/ir?t=natursyner0f-20&amp;amp;l=as2&amp;amp;o=1&amp;amp;a=1118949552" style="border: none !important; margin: 0px !important;" width="1" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2015 23:59:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-remove-duplicates/m-p/539923#M201786</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2015-11-02T23:59:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove duplicates</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-remove-duplicates/m-p/539924#M201787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Oleg,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your kind help. However, I input the script as you recommended but it is filled with errors (see below). Can you please advise what has gone wrong and what needs to be done to correct it? What exactly is the P function for?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Script Error.png" class="jive-image image-1" src="/legacyfs/online/103862_Script Error.png" style="width: 620px; height: 116px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2015 08:14:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-remove-duplicates/m-p/539924#M201787</guid>
      <dc:creator />
      <dc:date>2015-11-04T08:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove duplicates</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-remove-duplicates/m-p/539925#M201788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Samuel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the sloppy syntax. When I type suggested expressions here, I get no syntax checking ... The following might work better.&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;count (&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;lt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13px;"&gt; InviteesStatName=P({&amp;lt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;[DocUploadDate]={'[BLANK]'}, &lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;[Invitees_Status]={'Invited'}&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;gt;}&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt; InviteesStatName&lt;/SPAN&gt;)&lt;/SPAN&gt; + P({&amp;lt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13px;"&gt;[DocUploadDate]-={'[BLANK]'}, &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13px;"&gt;[Invitees_Status]-={'Invited'}&lt;/SPAN&gt;&amp;gt;}&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13px;"&gt; InviteesStatName&lt;/SPAN&gt;) &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;&amp;gt;}&lt;/SPAN&gt;&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;distinct &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13px;"&gt;InviteesStatName)&lt;/SPAN&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;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&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;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13px;"&gt;You still might have to tweak the syntax a bit...&lt;/SPAN&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;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&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;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13px;"&gt;Function P() returns possible values. I recommend reading the Help article Set Analysis, it describes the basics, or learn Set Analysis from my book &lt;EM&gt;QlikView Your Business&lt;/EM&gt;.&lt;/SPAN&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;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&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;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13px;"&gt;cheers,&lt;/SPAN&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;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13px;"&gt;Oleg Troyansky&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2015 16:01:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-remove-duplicates/m-p/539925#M201788</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2015-11-05T16:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove duplicates</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-remove-duplicates/m-p/539926#M201789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Oleg,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for trying to assist me with the syntax. Although the script editor says the Expression is OK, however, I still see red lines being drawn below at the 2nd half of the syntax. Any idea to fix that?&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Script Error.png" class="jive-image image-1" src="/legacyfs/online/104095_Script Error.png" style="width: 620px; height: 100px;" /&gt;&lt;/P&gt;&lt;P&gt;When I applied the change, the Bar Chart figure (circled in red) shows differently from those in the pivot table. In fact, it is going farther away from the original difference where the syntax is Count(DISTINCT {&amp;lt;Division=&amp;gt;} InviteesStatName). This is where the duplicate vendors (with a blank date and status invited but it has already changed to another status) are included in the calculation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Invited Vendors Figure Mismatch.png" class="jive-image image-2" src="/legacyfs/online/104096_Invited Vendors Figure Mismatch.png" style="width: 620px; height: 176px;" /&gt;&lt;/P&gt;&lt;P&gt;Look forward to hearing from you soon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Samuel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2015 04:12:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-remove-duplicates/m-p/539926#M201789</guid>
      <dc:creator />
      <dc:date>2015-11-06T04:12:30Z</dc:date>
    </item>
  </channel>
</rss>

