<?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: Count distinct Customers in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-distinct-Customers/m-p/530678#M1147404</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks.!!.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 27 Jul 2013 05:42:14 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-07-27T05:42:14Z</dc:date>
    <item>
      <title>Count distinct Customers</title>
      <link>https://community.qlik.com/t5/QlikView/Count-distinct-Customers/m-p/530676#M1147402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the Excel file the data is:&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 295px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="text-align: center;" width="88"&gt;Customer&lt;/TD&gt;&lt;TD class="xl64" style="border-left-style: none; text-align: center;" width="94"&gt;TypeDoc&lt;/TD&gt;&lt;TD class="xl64" style="border-left-style: none; text-align: center;" width="113"&gt;Date&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In 2 controls I select 2 dates: Initial date and Final date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to count how many different customers there are between the dates, and TypeDoc = 'TA'&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;Initial Date: May 02, 2012 &amp;lt;-- In variable VarDate1&lt;/P&gt;&lt;P&gt;Final Date: May 31, 2012 &amp;lt;-- In variable VarDate2&lt;/P&gt;&lt;P&gt;TypeDoc = 'TA'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The answer is 46 customers, but I can't create a aggr expresion that show it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this but don't works:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count(DISTINCT aggr(If(Date &amp;gt;= $(VarDate1) and Date &amp;lt;= $(Vardate2) and TypeDoc= 'TA',Customer), Customer))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Jul 2013 04:10:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-distinct-Customers/m-p/530676#M1147402</guid>
      <dc:creator />
      <dc:date>2013-07-27T04:10:03Z</dc:date>
    </item>
    <item>
      <title>Re: Count distinct Customers</title>
      <link>https://community.qlik.com/t5/QlikView/Count-distinct-Customers/m-p/530677#M1147403</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;Please find attached file for solution.&amp;nbsp; I used this expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count({&amp;lt;CustomerDate={'&amp;gt;=$(=VarDate1)&amp;lt;=$(=VarDate2)'}, TypeDoc= {'TA'}&amp;gt;} DISTINCT Customer)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VarDate1 = MakeDate(2012, 5, 2)&lt;/P&gt;&lt;P&gt;VarDate2 = MakeDate(2012, 5, 31)&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Jul 2013 05:16:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-distinct-Customers/m-p/530677#M1147403</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2013-07-27T05:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: Count distinct Customers</title>
      <link>https://community.qlik.com/t5/QlikView/Count-distinct-Customers/m-p/530678#M1147404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks.!!.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Jul 2013 05:42:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-distinct-Customers/m-p/530678#M1147404</guid>
      <dc:creator />
      <dc:date>2013-07-27T05:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: Count distinct Customers</title>
      <link>https://community.qlik.com/t5/QlikView/Count-distinct-Customers/m-p/530679#M1147405</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;Please close the discussion by clicking Correct Answer button to my post if it solves your purpose, it helps others to find the answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Jul 2013 07:14:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-distinct-Customers/m-p/530679#M1147405</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2013-07-27T07:14:20Z</dc:date>
    </item>
  </channel>
</rss>

