<?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 How does QV count rows in pivot tables? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-does-QV-count-rows-in-pivot-tables/m-p/358432#M133022</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a list of around 36,000+ emails. If I create a listbox of the emails, it shows in the status bar, bottom right, that there are 36,208 entries selected. If I create a pivot table that shows company name, email, and an expression "=count(Total emailfield)", it shows in the table 36,208 entries, but if I look in the status bar, it now shows 36083 x 3 rows. If I clone that table, and change the expression to "=count(distinct total emailfield)", it shows 36,067 in the expression field in the table, but again in the status bar shows 36083x3 rows. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From this, I assume I have 141 duplicate email entries, but haven't been able to find any through inspection. But where does the "36083" number come from? In all cases, I have selected to NOT suppress null values, and to print "n/a" or "missing" for Null or missing values, respectively, so I don't think it's a question of QV counting entries that I've hidden. How does QV count rows, and why am I getting different numbers?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Jun 2012 20:01:21 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-06-18T20:01:21Z</dc:date>
    <item>
      <title>How does QV count rows in pivot tables?</title>
      <link>https://community.qlik.com/t5/QlikView/How-does-QV-count-rows-in-pivot-tables/m-p/358432#M133022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a list of around 36,000+ emails. If I create a listbox of the emails, it shows in the status bar, bottom right, that there are 36,208 entries selected. If I create a pivot table that shows company name, email, and an expression "=count(Total emailfield)", it shows in the table 36,208 entries, but if I look in the status bar, it now shows 36083 x 3 rows. If I clone that table, and change the expression to "=count(distinct total emailfield)", it shows 36,067 in the expression field in the table, but again in the status bar shows 36083x3 rows. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From this, I assume I have 141 duplicate email entries, but haven't been able to find any through inspection. But where does the "36083" number come from? In all cases, I have selected to NOT suppress null values, and to print "n/a" or "missing" for Null or missing values, respectively, so I don't think it's a question of QV counting entries that I've hidden. How does QV count rows, and why am I getting different numbers?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2012 20:01:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-does-QV-count-rows-in-pivot-tables/m-p/358432#M133022</guid>
      <dc:creator />
      <dc:date>2012-06-18T20:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: How does QV count rows in pivot tables?</title>
      <link>https://community.qlik.com/t5/QlikView/How-does-QV-count-rows-in-pivot-tables/m-p/358433#M133023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What you have of the status bar for a list box is not the same as that for a pivot table. For the list box, the status bar shows distinct values (D: 1/36208) and number of records in the table where this field is found (F: 1/36208). These numbers could be different due to NULL values or duplicates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For a pivot table, this number shows the number of rows in the pivot table itself. Which again could be different due to NULL values or duplicate values &lt;SPAN style="text-decoration: underline;"&gt;in the dimension&lt;/SPAN&gt; or &lt;SPAN style="text-decoration: underline;"&gt;in the key&lt;/SPAN&gt; between the tables; that is if the dimension field and the expression field reside in two different data tables. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bottom line: It can be a complex issue...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do the following: Investigate these numbers for the following cases and see when they change:&lt;/P&gt;&lt;P&gt;A) Use "emailfield" as dimension and Count(emailfield) as expression. (1 dim, 1 expr) Check for duplicates!&lt;/P&gt;&lt;P&gt;B) Use another field from same table as "emailfield" as dimension and Count(emailfield) as expression. (1 dim, 1 expr)&lt;/P&gt;&lt;P&gt;C) Use field from other table as dimension and Count(emailfield) as expression. (1 dim, 1 expr)&lt;/P&gt;&lt;P&gt;D) Use several fields as dimensions and Count(emailfield) as expression. (N dim, 1 expr)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also look for duplicates using Count(emailfield) - Count(distinct emailfield)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2012 07:50:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-does-QV-count-rows-in-pivot-tables/m-p/358433#M133023</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2012-06-19T07:50:16Z</dc:date>
    </item>
  </channel>
</rss>

