<?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 Speed up or replace count distinct in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Speed-up-or-replace-count-distinct/m-p/350934#M130090</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you very much.&lt;/P&gt;&lt;P&gt;I tried something like this before, but I generated the table based on my calender. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In turn I got the same amount of Records as I had in the Calendar-Table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ok, sometimes one shouldn't think so diffcult and take the easy way &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/grin.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Apr 2012 12:37:44 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-04-13T12:37:44Z</dc:date>
    <item>
      <title>Speed up or replace count distinct</title>
      <link>https://community.qlik.com/t5/QlikView/Speed-up-or-replace-count-distinct/m-p/350932#M130088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in my load script I generate a calender with miscellaneous fields (eg. date, week, year, month, ...).&lt;/P&gt;&lt;P&gt;Then I link my sales data with this calender.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In one of my charts I have to calculate with the number of the selected Weeks.&lt;/P&gt;&lt;P&gt;For this purpose I use the formula count(distinct week).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Due to the fact that every record is linked with a week in my calendar this calculation is very slow.&lt;/P&gt;&lt;P&gt;According to Quick Tip #5 the use of count distinct forces QlikView to use only one core for calculation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a possibility or workaround to speed this up?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Apr 2012 11:41:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Speed-up-or-replace-count-distinct/m-p/350932#M130088</guid>
      <dc:creator />
      <dc:date>2012-04-13T11:41:50Z</dc:date>
    </item>
    <item>
      <title>Speed up or replace count distinct</title>
      <link>https://community.qlik.com/t5/QlikView/Speed-up-or-replace-count-distinct/m-p/350933#M130089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Create a table as&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WeekTable:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Load * inline&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [#Week,Week&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1,1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1,2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1,3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1,4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1,5&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1,6&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1,7&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1,54];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use Expression as Sum(#Week) instead of Count(Distinct Week)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Celambarasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Apr 2012 12:12:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Speed-up-or-replace-count-distinct/m-p/350933#M130089</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-04-13T12:12:18Z</dc:date>
    </item>
    <item>
      <title>Speed up or replace count distinct</title>
      <link>https://community.qlik.com/t5/QlikView/Speed-up-or-replace-count-distinct/m-p/350934#M130090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you very much.&lt;/P&gt;&lt;P&gt;I tried something like this before, but I generated the table based on my calender. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In turn I got the same amount of Records as I had in the Calendar-Table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ok, sometimes one shouldn't think so diffcult and take the easy way &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/grin.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Apr 2012 12:37:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Speed-up-or-replace-count-distinct/m-p/350934#M130090</guid>
      <dc:creator />
      <dc:date>2012-04-13T12:37:44Z</dc:date>
    </item>
  </channel>
</rss>

