<?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: Re: Expression optimization in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-optimization/m-p/662321#M241380</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will try to create a sample application and put it on this forum , since the data model is quite complex, that will help you understand the motivation behind my question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for taking time to answer my question&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Jun 2014 10:00:13 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-06-13T10:00:13Z</dc:date>
    <item>
      <title>Expression optimization</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-optimization/m-p/662306#M241365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm&amp;nbsp; trying to optimize this expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG style=": ; color: #339966; font-size: 10pt;"&gt;if (PER=0, &lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN style="color: #339966; font-size: 10pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(IND=0,sum(Value*coef),&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color: #339966; font-size: 10pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum(Value*IND*coef)), &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color: #339966; font-size: 10pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(IND=0,sum(Value*coef*PER),&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG style=": ; color: #339966; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum(Value*IND*coef*PER)))&amp;nbsp; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;the thing is it depends on the users selection so can't optimize it in the script, and at the same time pick (match) doesn't work because for example PER can aither be 0 or (0 or 1).same for IND.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Any idea can be helpful, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks in advance&lt;/SPAN&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2014 15:37:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-optimization/m-p/662306#M241365</guid>
      <dc:creator />
      <dc:date>2014-06-11T15:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: Expression optimization</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-optimization/m-p/662307#M241366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Maybe you can combine the two dimensions like:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pick(match(PER&amp;amp; '|' &amp;amp; IND, '0|0', '0|0 or 1', '0 or 1|0', '0 or 1|0 or 1'), &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #339966;"&gt;&lt;STRONG&gt;sum(Value*coef)&lt;/STRONG&gt;&lt;/SPAN&gt;, &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #339966;"&gt;&lt;STRONG&gt;sum(Value*IND*coef)&lt;/STRONG&gt;&lt;/SPAN&gt;, &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #339966;"&gt;&lt;STRONG&gt;sum(Value*coef*PER)&lt;/STRONG&gt;&lt;/SPAN&gt;, &lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #339966;"&gt;&lt;STRONG&gt;sum(Value*IND*coef*PER)&lt;/STRONG&gt;&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT: IF you meant just 0 or 1 then:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pick(match(PER&amp;amp; '|' &amp;amp; IND, '0|0', '0|1', '1|0', '1|1'), &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #339966;"&gt;&lt;STRONG&gt;sum(Value*coef)&lt;/STRONG&gt;&lt;/SPAN&gt;, &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #339966;"&gt;&lt;STRONG&gt;sum(Value*IND*coef)&lt;/STRONG&gt;&lt;/SPAN&gt;, &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #339966;"&gt;&lt;STRONG&gt;sum(Value*coef*PER)&lt;/STRONG&gt;&lt;/SPAN&gt;, &lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #339966;"&gt;&lt;STRONG&gt;sum(Value*IND*coef*PER)&lt;/STRONG&gt;&lt;/SPAN&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2014 16:35:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-optimization/m-p/662307#M241366</guid>
      <dc:creator>jerem1234</dc:creator>
      <dc:date>2014-06-11T16:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: Expression optimization</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-optimization/m-p/662308#M241367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN lang="EN" style="color: #339966; line-height: 115%; font-family: 'Helvetica','sans-serif'; font-size: 10pt; mso-ansi-language: EN;"&gt;sum(Value*coef) * IF(IND=0, 1, IND) * IF(PER=0, 1, PER)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN" style="color: #3d3d3d; line-height: 115%; font-family: 'Helvetica','sans-serif'; font-size: 8pt; mso-ansi-language: EN;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2014 16:53:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-optimization/m-p/662308#M241367</guid>
      <dc:creator>martynlloyd</dc:creator>
      <dc:date>2014-06-11T16:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: Expression optimization</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-optimization/m-p/662309#M241368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;"&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; because for example PER can aither be 0 or (0 or 1).same for IND.&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the values are only 0 or 1, what's the point in multiplying them? Or are there other values possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2014 18:16:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-optimization/m-p/662309#M241368</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2014-06-11T18:16:01Z</dc:date>
    </item>
    <item>
      <title>Re: Expression optimization</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-optimization/m-p/662310#M241369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the fiel PER depending on the user's selection can aither be equal to 0 , or could be both 0 and 1 , in other words&lt;/P&gt;&lt;P&gt;if PER is not equal to 0 , than&amp;nbsp; sum(PER)&amp;gt;=1 . same concept for the FIELD IND&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2014 08:02:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-optimization/m-p/662310#M241369</guid>
      <dc:creator />
      <dc:date>2014-06-12T08:02:47Z</dc:date>
    </item>
    <item>
      <title>Re: Expression optimization</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-optimization/m-p/662311#M241370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Try this&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Sum({$&amp;lt;PER={0},IND={0}&amp;gt;}&lt;SPAN style="color: #339966; font-size: 10pt;"&gt;Value*coef&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;+&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;Sum({$&amp;lt;PER=-{0},IND={0}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #339966; font-size: 10pt;"&gt;Value*coef*PER&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;+&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;Sum({$&amp;lt;PER={0},IND=-{0}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #339966; font-size: 10pt;"&gt;Value*coef*IND&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;+&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;Sum({$&amp;lt;PER=-{0},IND=-{0}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #339966; font-size: 10pt;"&gt;Value*coef*IND*PER&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR style="color: #339966; font-size: 10pt;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2014 08:10:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-optimization/m-p/662311#M241370</guid>
      <dc:creator>SergeyMak</dc:creator>
      <dc:date>2014-06-12T08:10:54Z</dc:date>
    </item>
    <item>
      <title>Re: Expression optimization</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-optimization/m-p/662312#M241371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This will be static and won't reflect possible selections.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2014 08:15:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-optimization/m-p/662312#M241371</guid>
      <dc:creator>simondachstr</dc:creator>
      <dc:date>2014-06-12T08:15:31Z</dc:date>
    </item>
    <item>
      <title>Re: Expression optimization</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-optimization/m-p/662313#M241372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;did you try it? &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2014 08:17:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-optimization/m-p/662313#M241372</guid>
      <dc:creator>SergeyMak</dc:creator>
      <dc:date>2014-06-12T08:17:22Z</dc:date>
    </item>
    <item>
      <title>Re: Expression optimization</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-optimization/m-p/662314#M241373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look at maybe using SubStringCount() function to imitate select case:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-5841"&gt;http://community.qlik.com/docs/DOC-5841&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2014 08:19:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-optimization/m-p/662314#M241373</guid>
      <dc:creator>simondachstr</dc:creator>
      <dc:date>2014-06-12T08:19:20Z</dc:date>
    </item>
    <item>
      <title>Re: Expression optimization</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-optimization/m-p/662315#M241374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I must say I didn't see the "-" before the "{" - it looked like an extension -{&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit:&lt;/P&gt;&lt;P&gt;But even so, in your expression e.g. Sum({$&amp;lt;PER={0},IND={0}&amp;gt;}&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #339966; font-size: 10pt;"&gt;Value*coef&lt;/SPAN&gt;)&lt;/SPAN&gt; will always calculate even if selected PER &amp;amp; IND are not 0.&lt;/P&gt;&lt;P&gt;In meriem's expression, if PER &amp;amp; IND are unequal 0, sum(Value*IND*coef*PER) only should be calculated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2014 08:26:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-optimization/m-p/662315#M241374</guid>
      <dc:creator>simondachstr</dc:creator>
      <dc:date>2014-06-12T08:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: Expression optimization</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-optimization/m-p/662316#M241375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Firt of all Thank you for your answer, It doesn't work because as I said before it depends on the user's selection, so this way won't get the needed result&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2014 08:42:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-optimization/m-p/662316#M241375</guid>
      <dc:creator />
      <dc:date>2014-06-12T08:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: Expression optimization</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-optimization/m-p/662317#M241376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you the substringcount() is definitly interesting , but In terms of performance&amp;nbsp; for multi million rows it says it didn't change that much from nested IF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2014 08:58:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-optimization/m-p/662317#M241376</guid>
      <dc:creator />
      <dc:date>2014-06-12T08:58:30Z</dc:date>
    </item>
    <item>
      <title>Re: Expression optimization</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-optimization/m-p/662318#M241377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was wondering if we can do&amp;nbsp; something like this ,pick(match (IND,0,sum(IND)&amp;gt;=1)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2014 09:33:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-optimization/m-p/662318#M241377</guid>
      <dc:creator />
      <dc:date>2014-06-12T09:33:11Z</dc:date>
    </item>
    <item>
      <title>Re: Expression optimization</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-optimization/m-p/662319#M241378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I could explain how to use selected values, but as Rob says, if the values of PER and IND are only 0 or 1 then the outcome of your expressions will ALWAYS equal &lt;SPAN style="color: #339966; font-size: 10pt;"&gt;Value*coef&lt;/SPAN&gt;&lt;BR /&gt;Maybe you could explain with some sample data (numbers)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2014 14:27:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-optimization/m-p/662319#M241378</guid>
      <dc:creator>martynlloyd</dc:creator>
      <dc:date>2014-06-12T14:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Expression optimization</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-optimization/m-p/662320#M241379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems to me that&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;sum(Value*coef)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;will give you the same answer as the if() statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2014 17:30:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-optimization/m-p/662320#M241379</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2014-06-12T17:30:29Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Expression optimization</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-optimization/m-p/662321#M241380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will try to create a sample application and put it on this forum , since the data model is quite complex, that will help you understand the motivation behind my question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for taking time to answer my question&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2014 10:00:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-optimization/m-p/662321#M241380</guid>
      <dc:creator />
      <dc:date>2014-06-13T10:00:13Z</dc:date>
    </item>
  </channel>
</rss>

