<?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: Record Counts Question - assistance please! in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Record-Counts-Question-assistance-please/m-p/406640#M484157</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Table boxes and straight tables and pivot tables don't show duplicate records as you noticed. Generally you can get the row count of a chart with count(aggr(1, Dim1, Dim2,... DimN)). In case one of your dimensions has null values you can try something like count({&amp;lt;Dim1={'*'}&amp;gt;} aggr(1, Dim1, Dim2,... DimN)). If you use set modifiers in your chart expressions then add those to the set modifier in the count expression. count(&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;{$&amp;lt; ReqHistStatusValue={3}, TimePeriodIndex={7} &amp;gt;} aggr(1, Dim1, Dim2,... DimN))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;&lt;EM&gt;edit: sum(aggr(1, Dim1...etc) works just as well as count. See for yourself if you can spot a difference in performance. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 May 2013 17:57:37 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2013-05-24T17:57:37Z</dc:date>
    <item>
      <title>Record Counts Question - assistance please!</title>
      <link>https://community.qlik.com/t5/QlikView/Record-Counts-Question-assistance-please/m-p/406639#M484156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Issue:&amp;nbsp; When I create a TEXT OBJECT I do not get the same results for the number of rows on a STRAIGHT CHART.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The straight chart report shows 2,768 records.&amp;nbsp; The calculated total count for the list report shows 2,768 correctly when I use DISTINCT&amp;nbsp; &lt;/P&gt;&lt;P&gt;Formula is =Sum(DISTINCT( {$&amp;lt; ReqHistStatusValue={3}, TimePeriodIndex={7} &amp;gt;} Flag_ReqCounter&lt;/P&gt;&lt;P&gt;&amp;nbsp; (note - I used DISTINCT because some of the values for Flag_ReqCounter are &amp;gt; 1 and I only want to count the record once)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;However, when I create a TEXT OBJECT and take out DISTINCT I am getting a total record count of 3,198 &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Formula without DISTINCT is =Sum(( {$&amp;lt; ReqHistStatusValue={3}, TimePeriodIndex={7} &amp;gt;} Flag_ReqCounter&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;How do I create formula for TEXT OBJECT to get the correct count of 2,768 where I am only counting Flag_ReqCounter only once per record?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Do I need to use Aggregate function?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see attached document with the example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 May 2013 17:28:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Record-Counts-Question-assistance-please/m-p/406639#M484156</guid>
      <dc:creator />
      <dc:date>2013-05-24T17:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: Record Counts Question - assistance please!</title>
      <link>https://community.qlik.com/t5/QlikView/Record-Counts-Question-assistance-please/m-p/406640#M484157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Table boxes and straight tables and pivot tables don't show duplicate records as you noticed. Generally you can get the row count of a chart with count(aggr(1, Dim1, Dim2,... DimN)). In case one of your dimensions has null values you can try something like count({&amp;lt;Dim1={'*'}&amp;gt;} aggr(1, Dim1, Dim2,... DimN)). If you use set modifiers in your chart expressions then add those to the set modifier in the count expression. count(&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;{$&amp;lt; ReqHistStatusValue={3}, TimePeriodIndex={7} &amp;gt;} aggr(1, Dim1, Dim2,... DimN))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;&lt;EM&gt;edit: sum(aggr(1, Dim1...etc) works just as well as count. See for yourself if you can spot a difference in performance. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 May 2013 17:57:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Record-Counts-Question-assistance-please/m-p/406640#M484157</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-05-24T17:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: Record Counts Question - assistance please!</title>
      <link>https://community.qlik.com/t5/QlikView/Record-Counts-Question-assistance-please/m-p/406641#M484158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It works when I update formula to &lt;/P&gt;&lt;P&gt;=count (aggr (sum ( {$&amp;lt;ReqHistStatusValue={3}, TimePeriodIndex={7} &amp;gt;} Flag_ReqCounter), AutoReg)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I recall from training that counts slow down the server and it is not recommended to use them.&lt;/P&gt;&lt;P&gt;In this case though I think this is the only way?&amp;nbsp; Is that true?&amp;nbsp; Is there another way in this instance by using SUM instead?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 May 2013 18:19:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Record-Counts-Question-assistance-please/m-p/406641#M484158</guid>
      <dc:creator />
      <dc:date>2013-05-24T18:19:25Z</dc:date>
    </item>
  </channel>
</rss>

