<?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: Expession changes in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expession-changes/m-p/951627#M327281</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With the given information isn't much possible for transfering the calculation into the script but the following expression should be perform a lot better:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rangesum(avg({&amp;lt; [Measure] = {'E03'}&amp;gt;} [Weight]),&lt;/P&gt;&lt;P&gt;avg({&amp;lt; [Measure] = {'E04'}&amp;gt;} [Weight]),&lt;/P&gt;&lt;P&gt;avg({&amp;lt; [Measure] = {'E05'}&amp;gt;} [Weight]),&lt;/P&gt;&lt;P&gt;avg({&amp;lt; [Measure] = {'E06'}&amp;gt;} [Weight]),&lt;/P&gt;&lt;P&gt;avg({&amp;lt; [Measure] = {'E07'}&amp;gt;} [Weight]),&lt;/P&gt;&lt;P&gt;avg({&amp;lt; [Measure] = {'E08'}&amp;gt;} [Weight]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Range-functions handle each not numeric values with 0 and set analysis is more performant the if-loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Aug 2015 19:24:05 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2015-08-19T19:24:05Z</dc:date>
    <item>
      <title>Expession changes</title>
      <link>https://community.qlik.com/t5/QlikView/Expession-changes/m-p/951626#M327280</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;I have this expression in front end for every chart , now i want to transfer this to backend scripting for better performance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 797px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="797"&gt;if(isnull(avg(if([Measure] = 'E03',[ Weight]))),0,avg(if([Measure] = 'E03',[Weight])))&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;+&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;if(isnull(avg(if([Measure] = 'E04',[Weight]))),0,avg(if([Measure] = 'E04',,[Weight])))&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;+&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;if(isnull(avg(if([Measure] = 'E05',[Weight]))),0,avg(if([Measure] = 'E05',,[Weight])))&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;+&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;if(isnull(avg(if([Measure] = 'E06',[ Weight]))),0,avg(if([Measure] = 'E06',,[Weight])))&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;+&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;if(isnull(avg(if([SM Measure] = 'EP07',[ Weight]))),0,avg(if([Measure] = 'EP07',,[Weight])))&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;+&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;&lt;P&gt;if(isnull(avg(if([Measure] = 'EP08',[Weight]))),0,avg(if([ Measure] = 'EP08',,[Weight])))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any suggections ?/?&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2015 07:57:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expession-changes/m-p/951626#M327280</guid>
      <dc:creator>yogitamehta10</dc:creator>
      <dc:date>2015-08-19T07:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: Expession changes</title>
      <link>https://community.qlik.com/t5/QlikView/Expession-changes/m-p/951627#M327281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With the given information isn't much possible for transfering the calculation into the script but the following expression should be perform a lot better:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rangesum(avg({&amp;lt; [Measure] = {'E03'}&amp;gt;} [Weight]),&lt;/P&gt;&lt;P&gt;avg({&amp;lt; [Measure] = {'E04'}&amp;gt;} [Weight]),&lt;/P&gt;&lt;P&gt;avg({&amp;lt; [Measure] = {'E05'}&amp;gt;} [Weight]),&lt;/P&gt;&lt;P&gt;avg({&amp;lt; [Measure] = {'E06'}&amp;gt;} [Weight]),&lt;/P&gt;&lt;P&gt;avg({&amp;lt; [Measure] = {'E07'}&amp;gt;} [Weight]),&lt;/P&gt;&lt;P&gt;avg({&amp;lt; [Measure] = {'E08'}&amp;gt;} [Weight]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Range-functions handle each not numeric values with 0 and set analysis is more performant the if-loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2015 19:24:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expession-changes/m-p/951627#M327281</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-08-19T19:24:05Z</dc:date>
    </item>
  </channel>
</rss>

