<?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: Performance Issue : Another way to write this expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Performance-Issue-Another-way-to-write-this-expression/m-p/440373#M164113</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If vMonthSpecific is a variable then you probably don't need to aggregate over CalendarMonthAndYear since you're already limiting it to one value. If CalendarMonthAndYear is a date field you could make sure vMonthSpecific is a number and loose the single quotes. Comparing numbers is faster than comparing strings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you really want to improve performance, you might want to precalculate this in the script instead of in an expression. Something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PreCalculatedKeyCounts:&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;Digits, Extn, FirstName, Surname, CalendarMonthAndYear, count(Key) as KeyCount&lt;/P&gt;&lt;P&gt;resident &lt;EM&gt;...mydataset...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;group by Digits, Extn, FirstName, Surname, CalendarMonthAndYear&lt;/P&gt;&lt;P&gt;where CallType = 'o' and CallClassMapping = 'Mobile'; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Feb 2013 13:41:26 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2013-02-15T13:41:26Z</dc:date>
    <item>
      <title>Performance Issue : Another way to write this expression</title>
      <link>https://community.qlik.com/t5/QlikView/Performance-Issue-Another-way-to-write-this-expression/m-p/440372#M164112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having a ridiculous amount of trouble running this expression and can't think of another way of writing this and still getting the same result&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aggr(count({$&amp;lt;CalendarMonthAndYear={'vMonthSpecific'},CallType={'o'},CallClassMapping={'Mobile'}&amp;gt;}Key),Digits, Extn, FirstName, Surname, CalendarMonthAndYear)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What the expresion does is the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Counts the number of Keys with the set analysis above&lt;/LI&gt;&lt;LI&gt;Aggregates this over Digits, Extension, FirstName, Surname and CalendarMonthAndYear&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Additional information&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Dataset has been limited to 1 Month&lt;/LI&gt;&lt;LI&gt;800000 rows&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone explain or help me to get this expression to calculate without taking an hour &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Byron&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2013 13:04:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Performance-Issue-Another-way-to-write-this-expression/m-p/440372#M164112</guid>
      <dc:creator />
      <dc:date>2013-02-15T13:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Issue : Another way to write this expression</title>
      <link>https://community.qlik.com/t5/QlikView/Performance-Issue-Another-way-to-write-this-expression/m-p/440373#M164113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If vMonthSpecific is a variable then you probably don't need to aggregate over CalendarMonthAndYear since you're already limiting it to one value. If CalendarMonthAndYear is a date field you could make sure vMonthSpecific is a number and loose the single quotes. Comparing numbers is faster than comparing strings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you really want to improve performance, you might want to precalculate this in the script instead of in an expression. Something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PreCalculatedKeyCounts:&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;Digits, Extn, FirstName, Surname, CalendarMonthAndYear, count(Key) as KeyCount&lt;/P&gt;&lt;P&gt;resident &lt;EM&gt;...mydataset...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;group by Digits, Extn, FirstName, Surname, CalendarMonthAndYear&lt;/P&gt;&lt;P&gt;where CallType = 'o' and CallClassMapping = 'Mobile'; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2013 13:41:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Performance-Issue-Another-way-to-write-this-expression/m-p/440373#M164113</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-02-15T13:41:26Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Issue : Another way to write this expression</title>
      <link>https://community.qlik.com/t5/QlikView/Performance-Issue-Another-way-to-write-this-expression/m-p/440374#M164114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for your reply mate. Removing the calendarmonthandyear did speed it up a little.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I will also take your suggestion about aggregating this in the script along with some other expressions which are causing a bit of trouble for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;byron&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Feb 2013 08:35:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Performance-Issue-Another-way-to-write-this-expression/m-p/440374#M164114</guid>
      <dc:creator />
      <dc:date>2013-02-18T08:35:15Z</dc:date>
    </item>
  </channel>
</rss>

