<?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 or sum - is there a difference in performance? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/count-or-sum-is-there-a-difference-in-performance/m-p/1317783#M515588</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Read here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3381"&gt;A Myth About Count(distinct …)&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 May 2017 12:04:27 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-05-10T12:04:27Z</dc:date>
    <item>
      <title>count or sum - is there a difference in performance?</title>
      <link>https://community.qlik.com/t5/QlikView/count-or-sum-is-there-a-difference-in-performance/m-p/1317782#M515587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;a General question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was wondering&amp;nbsp; is there a difference in performance in the layout (qlikview and/or&amp;nbsp; sense)&lt;/P&gt;&lt;P&gt;when using the count function vs using the sum function&lt;/P&gt;&lt;P&gt;E.G.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;will doing: count([Customers that left])&lt;/P&gt;&lt;P&gt;be faster then&lt;/P&gt;&lt;P&gt;doing sum([Customers that left flag])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where ([Customer that left flag] is either 1 or 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what do you think?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2017 12:01:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-or-sum-is-there-a-difference-in-performance/m-p/1317782#M515587</guid>
      <dc:creator>wizardo</dc:creator>
      <dc:date>2017-05-10T12:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: count or sum - is there a difference in performance?</title>
      <link>https://community.qlik.com/t5/QlikView/count-or-sum-is-there-a-difference-in-performance/m-p/1317783#M515588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Read here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3381"&gt;A Myth About Count(distinct …)&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2017 12:04:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-or-sum-is-there-a-difference-in-performance/m-p/1317783#M515588</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-05-10T12:04:27Z</dc:date>
    </item>
    <item>
      <title>Re: count or sum - is there a difference in performance?</title>
      <link>https://community.qlik.com/t5/QlikView/count-or-sum-is-there-a-difference-in-performance/m-p/1317784#M515589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, there is a difference in performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is better use a SUM function of 1, than count. So, as you explain, is better to do SUM(ClientLeftFlag) than COUNT(ClientLeft), asuming that ClientLeftFlag is 1 when the client is no client anymore.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sometimes we can't apreciate the difference in performance, due to an application with few rows. But when you work with really big applications, you would notice that difference. Also is a good practice to do it, unless you know the performance won't be affected.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 May 2017 14:51:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-or-sum-is-there-a-difference-in-performance/m-p/1317784#M515589</guid>
      <dc:creator>rodri_morales</dc:creator>
      <dc:date>2017-05-25T14:51:40Z</dc:date>
    </item>
  </channel>
</rss>

