<?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 Count function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-function/m-p/284952#M1183254</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;D V, thank you for your answer...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On your example - you only have 3 fields to work with. What if you had many more, lets say Adress etc etc. Your Expression will stay the same (Count(Customer)) I assume, but now that all those other fields have been added, surely the answer will change?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I come from a traditional SQL background.&amp;nbsp; For me:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;select count(Customer)&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp; &lt;EM&gt;is not the same as&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;select count(Customer, product) GROUP BY&amp;nbsp; Product&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The output is way different.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is that the case in Qview as well?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If so - how do you limit the fields that you select? You might have lots of other sheets bringing in other data and it will affect the outcome&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Dec 2011 15:22:22 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-12-07T15:22:22Z</dc:date>
    <item>
      <title>Count function</title>
      <link>https://community.qlik.com/t5/QlikView/Count-function/m-p/284947#M1183244</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;I have the following data regarding Buyback transactions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Product&lt;/P&gt;&lt;P&gt;Total Sales&lt;/P&gt;&lt;P&gt;Date of Sale&lt;/P&gt;&lt;P&gt;Region&lt;/P&gt;&lt;P&gt;etc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Somehow show the amount of times (count) a product appeared for a Region, but I dont know how to formulate it&lt;/P&gt;&lt;P&gt;2. Assistance with a chart - advice on which one would be most effective, and some help on how to do it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ANY help will be appreciated. Only been using the product for a week!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2011 12:56:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-function/m-p/284947#M1183244</guid>
      <dc:creator />
      <dc:date>2011-12-07T12:56:12Z</dc:date>
    </item>
    <item>
      <title>Count function</title>
      <link>https://community.qlik.com/t5/QlikView/Count-function/m-p/284948#M1183246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;Hi,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Please select Product as Dimension and Count(Product) as expression. This should work.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Cheers - DV&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2011 14:27:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-function/m-p/284948#M1183246</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2011-12-07T14:27:57Z</dc:date>
    </item>
    <item>
      <title>Count function</title>
      <link>https://community.qlik.com/t5/QlikView/Count-function/m-p/284949#M1183248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you D V&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I count by multiple columns? i e I want to count the Product Sold per Customer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something like count (product, customer)? I assume customer would be added to the DImension list?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2011 14:37:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-function/m-p/284949#M1183248</guid>
      <dc:creator />
      <dc:date>2011-12-07T14:37:34Z</dc:date>
    </item>
    <item>
      <title>Count function</title>
      <link>https://community.qlik.com/t5/QlikView/Count-function/m-p/284950#M1183250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt; Hi,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;You have to use Aggr() function. I'll create an example for you. &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;I'll get back to you soon.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Cheers - DV&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2011 14:40:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-function/m-p/284950#M1183250</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2011-12-07T14:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: Count function</title>
      <link>https://community.qlik.com/t5/QlikView/Count-function/m-p/284951#M1183252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;Oops! I misunderstood on what you said. Sorry about that.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;I am not sure on why you wanted to count multiple columns. I am attaching a simple example. If this not what you want then please let me know the expected output from this example and that makes it easy for me to understand.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Good luck!&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Cheers - DV&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2011 14:57:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-function/m-p/284951#M1183252</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2011-12-07T14:57:50Z</dc:date>
    </item>
    <item>
      <title>Count function</title>
      <link>https://community.qlik.com/t5/QlikView/Count-function/m-p/284952#M1183254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;D V, thank you for your answer...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On your example - you only have 3 fields to work with. What if you had many more, lets say Adress etc etc. Your Expression will stay the same (Count(Customer)) I assume, but now that all those other fields have been added, surely the answer will change?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I come from a traditional SQL background.&amp;nbsp; For me:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;select count(Customer)&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp; &lt;EM&gt;is not the same as&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;select count(Customer, product) GROUP BY&amp;nbsp; Product&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The output is way different.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is that the case in Qview as well?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If so - how do you limit the fields that you select? You might have lots of other sheets bringing in other data and it will affect the outcome&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2011 15:22:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-function/m-p/284952#M1183254</guid>
      <dc:creator />
      <dc:date>2011-12-07T15:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: Count function</title>
      <link>https://community.qlik.com/t5/QlikView/Count-function/m-p/284953#M1183255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;EM style="font-family: trebuchet ms,geneva;"&gt;Hi Again,&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;EM style="font-family: trebuchet ms,geneva;"&gt; &lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;EM style="font-family: trebuchet ms,geneva;"&gt;Now I understand your question (hopefully!). Even I come from MS SQL Server background. I have worked as SQL Developer and totally understand where you are coming from...&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;EM style="font-family: trebuchet ms,geneva;"&gt; &lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;EM style="font-family: trebuchet ms,geneva;"&gt;Even if we load additional fields your answer &lt;STRONG style="text-decoration: underline;"&gt;will not&lt;/STRONG&gt; change as long the Customer field does not change. QlikView works based on associative logic, it is little similar as Set based approach but not same as SQL. So let’s say we have Address &amp;amp; other fields loaded, if these fields are part of same table then nothing changes. So your expressions are still valid.&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;EM style="font-family: trebuchet ms,geneva;"&gt; &lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;EM style="font-family: trebuchet ms,geneva;"&gt;However, if these new fields are from different table and if they are linked with Customer Field (We call this as Key Field in QlikView). And now if the number rows in each is different... for example you have two tables (T1 and T2). If these tables are linked with Key Field (Customer) in our case, now if you perform aggregation on the Customer field then you will get unexpected results. So it is not recommended to use the Key Field to perform aggregations.&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;EM style="font-family: trebuchet ms,geneva;"&gt; &lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;EM style="font-family: trebuchet ms,geneva;"&gt;Also, we have Aggr() function samilar to Group By clause in SQL.&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;EM style="font-family: trebuchet ms,geneva;"&gt; &lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;EM style="font-family: trebuchet ms,geneva;"&gt;I hope this makes sense and I haven’t confused you.&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;EM style="font-family: trebuchet ms,geneva;"&gt; &lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;EM style="font-family: trebuchet ms,geneva;"&gt;I am also writing some explanation on QlikView Architecture works when we load the data...&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;EM style="font-family: trebuchet ms,geneva;"&gt; &lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;EM style="font-family: trebuchet ms,geneva;"&gt;&lt;SPAN lang="EN"&gt;The data records are read into the memory, so that all the processing of data may be done through memory. I am sure you know this bit. QlikView treats all the data as Data Element Type (Columns / Fields) and Data Element Values (Values / Records). So each different data element value of each data element type is assigned a binary code and the data records are stored in binary-coded form and they are also sorted. By using the binary coding, very quick searches can be done on the tables. Also, QlikView removes the redundant information information and reduces the amount of data. However, the redundant information in stored as seperately with the frequencies for each unique data element value and across each data element type. When user makes a selection on data element values then the implied selection (possible values) are kept track seperately to present them to the user. By this process QlikView can perform rapid linear searches. &lt;/SPAN&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;EM style="font-family: trebuchet ms,geneva;"&gt;&lt;SPAN lang="EN"&gt; &lt;/SPAN&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: white;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;EM&gt;&lt;SPAN lang="EN" style="font-family: trebuchet ms,geneva; color: #636363;"&gt; &lt;/SPAN&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: white;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;EM style="font-family: trebuchet ms,geneva;"&gt;&lt;SPAN lang="EN" style="color: #636363;"&gt;I understand this is not in detail but just a quick overview. I hope this helps!&lt;/SPAN&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: white;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;EM style="font-family: trebuchet ms,geneva;"&gt;&lt;SPAN lang="EN" style="color: #636363;"&gt; &lt;/SPAN&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: white;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;EM&gt;&lt;SPAN lang="EN" style="font-family: trebuchet ms,geneva; color: #636363;"&gt; &lt;/SPAN&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: white;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;EM style="font-family: trebuchet ms,geneva;"&gt;&lt;SPAN lang="EN" style="color: #636363;"&gt;Good luck!&lt;/SPAN&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: white;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;EM style="font-family: trebuchet ms,geneva;"&gt;&lt;SPAN lang="EN" style="color: #636363;"&gt; &lt;/SPAN&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: white;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;EM&gt;&lt;SPAN lang="EN" style="font-family: trebuchet ms,geneva; color: #636363;"&gt; &lt;/SPAN&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: white;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;EM style="font-family: trebuchet ms,geneva;"&gt;&lt;SPAN lang="EN" style="color: #636363;"&gt;Cheers - DV&lt;/SPAN&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2011 15:58:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-function/m-p/284953#M1183255</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2011-12-07T15:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: Count function</title>
      <link>https://community.qlik.com/t5/QlikView/Count-function/m-p/284954#M1183258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi DV,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is indepth explanation. Well done.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2011 16:28:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-function/m-p/284954#M1183258</guid>
      <dc:creator>Gabriel</dc:creator>
      <dc:date>2011-12-07T16:28:32Z</dc:date>
    </item>
    <item>
      <title>Re: Count function</title>
      <link>https://community.qlik.com/t5/QlikView/Count-function/m-p/284955#M1183260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much D V. Excellent and very helpful answer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2011 18:46:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-function/m-p/284955#M1183260</guid>
      <dc:creator />
      <dc:date>2011-12-07T18:46:12Z</dc:date>
    </item>
  </channel>
</rss>

