<?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: If condition in the expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-condition-in-the-expression/m-p/597878#M221377</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;even if i use the Sum(if(.... it is quite negligible difference in the calculation time. As i have too many expressions on the chart. Considerable option though.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Mar 2014 14:20:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-03-20T14:20:04Z</dc:date>
    <item>
      <title>If condition in the expression</title>
      <link>https://community.qlik.com/t5/QlikView/If-condition-in-the-expression/m-p/597875#M221374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a situation where i have to use If condition which has the criteria that based up on the selection on one of the field value, there are two different expressions that needs to picked up based on the value selected. Now, after implementing the If condition everything works to whats needed but the calculation time becomes much higher that it takes atleast couple of seconds to load the pivot table. In this couple of seconds is fairly negligible but i would like to consider any option that can still give the desired result with much lesser calculation time? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PFA- for example- as i cannot publish the actual app i have created a mock up but ultimately the goal is to reduce the calculation time when a selection is made on the report select there are different expressions needs to be calculated depending upon the expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Few things that i considered,&lt;/P&gt;&lt;P&gt;-Definetly i can consider this option using a variable would be better, but this an application enhancement( in this case i would need to recreate quite a few expressions)&lt;/P&gt;&lt;P&gt;-done as much as i can on preset condition to be implemented in the script itself already.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Mar 2014 20:59:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-condition-in-the-expression/m-p/597875#M221374</guid>
      <dc:creator />
      <dc:date>2014-03-19T20:59:55Z</dc:date>
    </item>
    <item>
      <title>Re: If condition in the expression</title>
      <link>https://community.qlik.com/t5/QlikView/If-condition-in-the-expression/m-p/597876#M221375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if this would make it faster or not, but worth a shot.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Mar 2014 21:22:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-condition-in-the-expression/m-p/597876#M221375</guid>
      <dc:creator />
      <dc:date>2014-03-19T21:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: If condition in the expression</title>
      <link>https://community.qlik.com/t5/QlikView/If-condition-in-the-expression/m-p/597877#M221376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dinesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;look in the expressions, sum (if(..... is&amp;nbsp; more memoryfriendly to use in a expression.&lt;/P&gt;&lt;P&gt;You can also use the conditional instead. Just some hints.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Mar 2014 21:35:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-condition-in-the-expression/m-p/597877#M221376</guid>
      <dc:creator>stabben23</dc:creator>
      <dc:date>2014-03-19T21:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: If condition in the expression</title>
      <link>https://community.qlik.com/t5/QlikView/If-condition-in-the-expression/m-p/597878#M221377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;even if i use the Sum(if(.... it is quite negligible difference in the calculation time. As i have too many expressions on the chart. Considerable option though.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Mar 2014 14:20:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-condition-in-the-expression/m-p/597878#M221377</guid>
      <dc:creator />
      <dc:date>2014-03-20T14:20:04Z</dc:date>
    </item>
    <item>
      <title>Re: If condition in the expression</title>
      <link>https://community.qlik.com/t5/QlikView/If-condition-in-the-expression/m-p/597879#M221378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good morning,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using this script:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;LOAD&lt;/SPAN&gt; * &lt;SPAN style="color: #0000ff;"&gt;INLINE&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;[&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim1, Dim2, Dim3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cda, 12, 20&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; efa, 30, 38&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; efe, 29, 17&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ose, 19, 39&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cdb, 12, 20&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; efb, 30, 38&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; efb, 29, 17&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; osb, 19, 39&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cdc, 12, 20&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; efc, 30, 38&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; efc, 29, 17&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; osc, 19, 39&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cdd, 12, 20&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; efd, 30, 38&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; efd, 29, 17&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; osd, 19, 39&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;]&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;LOAD&lt;/SPAN&gt; * &lt;SPAN style="color: #0000ff;"&gt;Inline&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;[&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim1, Select&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cda, R1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; efa, R1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; efe, R2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ose, R2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cdb, R1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; efb, R1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; efb, R2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; osb, R2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cdc, R3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; efc, R3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; efc, R2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; osc, R3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cdd, R3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; efd, R1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; efd, R2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; osd, R1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;]&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;SPAN style="color: #0000ff;"&gt;LOAD&lt;/SPAN&gt; * &lt;SPAN style="color: #0000ff;"&gt;Inline&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;[&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;Select, Expression&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;R1, "=Sum(Dim2)"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;R2, "=Sum(Dim3)"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;R3, "=Sum(Dim2+Dim3)"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;]&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would propose that you replace the use of &lt;STRONG&gt;EXP3&lt;/STRONG&gt; by the following: &lt;SPAN style="color: #808080;"&gt;&lt;STRONG&gt;&lt;EM&gt;$(=Expression)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on your selection in the &lt;SPAN style="color: #800000;"&gt;Select&lt;/SPAN&gt; field, the appropriate &lt;SPAN style="color: #800000;"&gt;Expression&lt;/SPAN&gt; shall be calculated, without going through the &lt;SPAN style="color: #0000ff;"&gt;If()&lt;/SPAN&gt; condition, which could be practical if your real expression is rather complex, or in the case where you have several imbricated &lt;SPAN style="color: #0000ff;"&gt;If()&lt;/SPAN&gt; statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find attached a new version of your original qvw file, including the proposed changes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Philippe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Mar 2014 14:57:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-condition-in-the-expression/m-p/597879#M221378</guid>
      <dc:creator>pgrenier</dc:creator>
      <dc:date>2014-03-20T14:57:04Z</dc:date>
    </item>
  </channel>
</rss>

