<?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 Counting active customers in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Counting-active-customers/m-p/308230#M113811</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not really sure what you are attmepting to do, so pleae provide a sample QVW if possibel to make evaluation easier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How ever, if you have a active selection in your app then Count() will only count on the currently selected data set. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 May 2011 12:18:42 GMT</pubDate>
    <dc:creator>ToniKautto</dc:creator>
    <dc:date>2011-05-18T12:18:42Z</dc:date>
    <item>
      <title>Counting active customers</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-active-customers/m-p/308229#M113810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Got stuck with such task - need to count active customers (that have ordered goods) and show as part of all possible customers (that's the problem).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tried to Count(Total Customer), but it isn't showing only total of active customers, &lt;/P&gt;&lt;P&gt;Tried Count(All Customers) - it's showing just all customers not regarding current selection (group of customers).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mikhail&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 May 2011 12:05:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-active-customers/m-p/308229#M113810</guid>
      <dc:creator>ulyxess1983</dc:creator>
      <dc:date>2011-05-18T12:05:58Z</dc:date>
    </item>
    <item>
      <title>Counting active customers</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-active-customers/m-p/308230#M113811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not really sure what you are attmepting to do, so pleae provide a sample QVW if possibel to make evaluation easier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How ever, if you have a active selection in your app then Count() will only count on the currently selected data set. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 May 2011 12:18:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-active-customers/m-p/308230#M113811</guid>
      <dc:creator>ToniKautto</dc:creator>
      <dc:date>2011-05-18T12:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: Counting active customers</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-active-customers/m-p/308231#M113812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Toni,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for reply. here's a file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 May 2011 12:29:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-active-customers/m-p/308231#M113812</guid>
      <dc:creator>ulyxess1983</dc:creator>
      <dc:date>2011-05-18T12:29:06Z</dc:date>
    </item>
    <item>
      <title>Counting active customers</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-active-customers/m-p/308232#M113813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've found Cunt ({1$} Customer) formula - but it's showing all data, not current selection.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 May 2011 13:04:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-active-customers/m-p/308232#M113813</guid>
      <dc:creator>ulyxess1983</dc:creator>
      <dc:date>2011-05-18T13:04:20Z</dc:date>
    </item>
    <item>
      <title>Counting active customers</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-active-customers/m-p/308233#M113814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your data model contains several synthetic keys. All tables are also not linked to each other, leading to the model having two separated sets of tables. See Table Viewer (Ctrl+T) for an overview of the current model. This is not a problem by default, but very likely to cause logical problems in your application, hence you should try to eliminate the synthetic keys, and posibly create a model where all tables are related to each other.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have two dimensions in your chart, and an expresison containing Count(). QlikView will find the path through your datat model to cover the fields included in dimension and expression. If there is no logical relation between these fileds and field values QlikView will combine all datat to cover all possible combinations, this is the datat set used when the expressions are calculated. Count() on a field will genrated the number of hits within this set. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case you do not want to count on the current set, then you use Set Analysis to manipulate or genrate a set to run your expression on. The manual (F1 in Desktop Client) has a very good section on how Set Analysis works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a logical dilemma in your current expression. First you adapt the set by setting LevelName_1 to no selected values. Then you use TOTAL making the set expression obsolete since you have now decided to count over the data set. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In conclusion, please work on your data model to eliminate synthetic keys and to link all tables. Strive for a star och snowflake schema to avoid logical gaps in your data path. Start working on chart objects when your datat model is solid. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 May 2011 13:47:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-active-customers/m-p/308233#M113814</guid>
      <dc:creator>ToniKautto</dc:creator>
      <dc:date>2011-05-18T13:47:30Z</dc:date>
    </item>
    <item>
      <title>Re: Counting active customers</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-active-customers/m-p/308234#M113815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, Toni. I'll try to work it out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I need to solve this task - how to calculate all customers of current selection? &lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chosen - Group 1, Product 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Need to show - Active Customers 20, All Customers 100 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mikhail&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 May 2011 14:25:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-active-customers/m-p/308234#M113815</guid>
      <dc:creator>ulyxess1983</dc:creator>
      <dc:date>2011-05-18T14:25:39Z</dc:date>
    </item>
    <item>
      <title>Counting active customers</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-active-customers/m-p/308235#M113816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have not figured out exactly how your data is set up, but Count(DISTINCT CustomerName) should give you the &lt;SPAN style="text-decoration: underline;"&gt;unique&lt;/SPAN&gt; number of customer in your current selection. Compared to Count(CustomerName) that will return the number of customers in the current selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have 10 rows in your current selection that contains 5 different customers which have two rows each;&lt;/P&gt;&lt;P&gt;Count(DISTINCT CustomerName) will return 5&lt;/P&gt;&lt;P&gt;Count(CustomerName) will return 10&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your total data contains 20 rows with 10 different customers;&lt;/P&gt;&lt;P&gt;Count(TOTAL DISTINCT CustomerName) will return 10&lt;/P&gt;&lt;P&gt;Count(TOTAL CustomerName) will return 20&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notice that you should not use count on a keyfield, as QlikView will not know within which table to make the count. So if you have a customer id as a key field it is therefore better to count on the customer name as this should also be unique to the customer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this cleared your question, please mark the thread as solved.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 May 2011 06:59:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-active-customers/m-p/308235#M113816</guid>
      <dc:creator>ToniKautto</dc:creator>
      <dc:date>2011-05-19T06:59:52Z</dc:date>
    </item>
  </channel>
</rss>

