<?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: How if nested works? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-if-nested-works/m-p/1115280#M368251</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please give a more practical example and some more details to where do you want to use it with which aim (script/gui, more fields included, as flag, ...?).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Jul 2016 15:57:53 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2016-07-21T15:57:53Z</dc:date>
    <item>
      <title>How if nested works?</title>
      <link>https://community.qlik.com/t5/QlikView/How-if-nested-works/m-p/1115274#M368245</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 am using if nested, but I am having performance problems. I would like to know how does qlikview evaluate the conditions. I mean, if the first condition is true then the other "if" conditions are not evaluated? or do all "if" conditions are evaluated always?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;For example:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #000080;"&gt;if(a=b,1,if(a=c,if(a=d,1,0)))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;desired behaviour:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993366;"&gt;&lt;STRONG&gt;If a=b -&amp;gt; True, &lt;/STRONG&gt;&lt;SPAN style="color: #993366;"&gt;&lt;STRONG&gt;then qlikview returns&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; 1 and ignores the other "if" statements.&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt; &lt;/SPAN&gt;&lt;STRONG style="color: #ff0000;"&gt;Is this the real behaviour?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me to understand!&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Linda&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2016 07:29:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-if-nested-works/m-p/1115274#M368245</guid>
      <dc:creator />
      <dc:date>2016-07-21T07:29:44Z</dc:date>
    </item>
    <item>
      <title>Re: How if nested works?</title>
      <link>https://community.qlik.com/t5/QlikView/How-if-nested-works/m-p/1115275#M368246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suggest you painting a simple image:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screenshot_3.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/132035_Screenshot_3.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then follow up the path according your conditions.&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000080;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000080;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000080;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2016 07:52:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-if-nested-works/m-p/1115275#M368246</guid>
      <dc:creator>MindaugasBacius</dc:creator>
      <dc:date>2016-07-21T07:52:46Z</dc:date>
    </item>
    <item>
      <title>Re: How if nested works?</title>
      <link>https://community.qlik.com/t5/QlikView/How-if-nested-works/m-p/1115276#M368247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nested if-constructs are a performance-killer! I'm not absolutely sure but I believe that at first all branches of a nested-if-loop will be calculated and the evaluation which part is true comes at the last step.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore is often better to use other techniques for this, for example the pick(match()) and/or alt or with a mapping or maybe set analysis. It will depend on your concrete scenario which (kind or combination of methods) suits best whereby in your case you could also use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(a=b or a=c or a=d, 1, 0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or here another example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;alt(pick(match(a, 'b', 'c', 'd'), 1, 1, 1), 0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2016 07:55:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-if-nested-works/m-p/1115276#M368247</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-07-21T07:55:50Z</dc:date>
    </item>
    <item>
      <title>Re: How if nested works?</title>
      <link>https://community.qlik.com/t5/QlikView/How-if-nested-works/m-p/1115277#M368248</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 experience such issue.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Yes I agree with you, that first all branches of nested if else loop calculated and because of that we face so much performance issue.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Regards,&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2016 08:04:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-if-nested-works/m-p/1115277#M368248</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2016-07-21T08:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: How if nested works?</title>
      <link>https://community.qlik.com/t5/QlikView/How-if-nested-works/m-p/1115278#M368249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see... Thank you Marcus... I have another question please, My if conditions are made with the following structure: if (a&amp;gt;0, 1, 0) ...how can I replicate it with pick/Match? , is it possible? ..or pick/match only works with equal "="?.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2016 14:34:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-if-nested-works/m-p/1115278#M368249</guid>
      <dc:creator />
      <dc:date>2016-07-21T14:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: How if nested works?</title>
      <link>https://community.qlik.com/t5/QlikView/How-if-nested-works/m-p/1115279#M368250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Max! ...how did you solve your problem? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2016 14:35:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-if-nested-works/m-p/1115279#M368250</guid>
      <dc:creator />
      <dc:date>2016-07-21T14:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: How if nested works?</title>
      <link>https://community.qlik.com/t5/QlikView/How-if-nested-works/m-p/1115280#M368251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please give a more practical example and some more details to where do you want to use it with which aim (script/gui, more fields included, as flag, ...?).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2016 15:57:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-if-nested-works/m-p/1115280#M368251</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-07-21T15:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: How if nested works?</title>
      <link>https://community.qlik.com/t5/QlikView/How-if-nested-works/m-p/1115281#M368252</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;depends on requirement. Most of the time set analysis help me to resolve such issue.&lt;/P&gt;&lt;P&gt;Some time I have create flag in script or modify script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2016 04:57:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-if-nested-works/m-p/1115281#M368252</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2016-07-22T04:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: How if nested works?</title>
      <link>https://community.qlik.com/t5/QlikView/How-if-nested-works/m-p/1115282#M368253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using it on a variable which is called and executed from an object in gui (indicator).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have changed "if nested" into "or", but I still have performance problems:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Details:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$variable code:&lt;/P&gt;&lt;P&gt;if(&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;a&amp;gt;0 or&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;b&amp;gt;0&lt;/SPAN&gt; or&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;c&amp;gt;0&lt;/SPAN&gt; or&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;...(500 comparisons more)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;z&amp;gt;0&lt;/SPAN&gt; ,1,0)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;indicator expression:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;if($variable&amp;gt;0,1,0)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;I have 13 indicators with the same logic on a sheet. The problem is that the sheet takes 15 minutes to refresh and show the objects. (performance problem)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;I am thinking that perhaps objects(indicator) does not support too much operations (execution of lines of code). What do you think?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2016 19:25:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-if-nested-works/m-p/1115282#M368253</guid>
      <dc:creator />
      <dc:date>2016-08-04T19:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: How if nested works?</title>
      <link>https://community.qlik.com/t5/QlikView/How-if-nested-works/m-p/1115283#M368254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think an expression which makes more than 500 comparisations will be always perform very poorly. Therefore I think you will need a different approach by simplifying some of the parts by precalculating some parts within the script, creating clusters for your a,b,c ... and something more.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like above mentioned you need to provide more details. If a,b,c are different fields or variables or expressions? Where should it be used - chart-type, textbox, .... which dimensions are included? What is the end-aim of it - delivering 0 or 1 is probably only an intermediate step?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2016 06:54:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-if-nested-works/m-p/1115283#M368254</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-08-05T06:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: How if nested works?</title>
      <link>https://community.qlik.com/t5/QlikView/How-if-nested-works/m-p/1115284#M368255</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;Another possible solution is if possible move all complex expression in script.&lt;/P&gt;&lt;P&gt;Create flag according to that and use flag in expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2016 07:11:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-if-nested-works/m-p/1115284#M368255</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2016-08-05T07:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: How if nested works?</title>
      <link>https://community.qlik.com/t5/QlikView/How-if-nested-works/m-p/1115285#M368256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree that some refactoring of your model and/or performing the calculations in the back end are the best solution. But in the meantime, you could try restating the expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =If(RangeMax(a, b, c, d, ...., n) &amp;gt; 0, 1, 0)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just fill in the RangeMax with all the values that you want to test for &amp;gt; 0. It &lt;EM&gt;may&lt;/EM&gt; perform better than the if expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2016 09:17:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-if-nested-works/m-p/1115285#M368256</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-08-05T09:17:47Z</dc:date>
    </item>
    <item>
      <title>Re: How if nested works?</title>
      <link>https://community.qlik.com/t5/QlikView/How-if-nested-works/m-p/1115286#M368257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;a, b, c&lt;/STRONG&gt;.. are expressions like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(isnull($(vLI($1,'P027','E050'))) and isnull($(vLS($1,'P027','E050'))),0,&lt;/P&gt;&lt;P&gt;if(isnull($(vLI($1,'P027','E050'))),if($(vValor($1,'P027','E050')) &amp;lt;= $(vLS($1,'P027','E050')),0,1),&lt;/P&gt;&lt;P&gt;if(isnull($(vLS($1,'P027','E050'))),if($(vValor($1,'P027','E050')) &amp;gt;= $(vLI($1,'P027','E050')),0,1),&lt;/P&gt;&lt;P&gt;if($(vValor($1,'P027','E050')) &amp;gt;= $(vLI($1,'P027','E050')) and $(vValor($1,'P027','E050')) &amp;lt;= $(vLS($1,'P027','E050')),0,1))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;$vLI&lt;/STRONG&gt;, &lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;$vLS&lt;/STRONG&gt; and &lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;$vValor&lt;/STRONG&gt; are variables that return me values from the data using set analysis and taking into account the parameters that I send to them.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;$vLI -&amp;gt;&lt;/STRONG&gt; returns me the limit inferior of the year that the user has selected in the filter.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;$vLS -&amp;gt;&lt;/STRONG&gt; &lt;SPAN style="font-size: 13.3333px;"&gt;returns me the limit superior of the year that the user has selected in the filter.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;$vValor -&amp;gt;&lt;/STRONG&gt; &lt;SPAN style="font-size: 13.3333px;"&gt;returns me the value that I want to compare with limits.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Functionality:&lt;/STRONG&gt; I compare if a value is out from limits superior and inferior. If it is out, returns "1", if not returns "0".&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;The problem is that I need to compare 500 values. If at least one of them is out from limits my object (indicator) has to be painted red. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;$variable code:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if(&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;a&amp;gt;0 or&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;b&amp;gt;0&lt;/SPAN&gt; or&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;c&amp;gt;0&lt;/SPAN&gt; or&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;...(500 comparisons more)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;z&amp;gt;0&lt;/SPAN&gt; ,1,0)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;indicator expression:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;if($variable&amp;gt;0,1,0)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;And it has to be dynamic, I mean, if the user select a date filter, the calculations have to be done at the moment, that's why I don't think I can put it within the script. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Another alternative that I have tested is to distribute the calculations in more than one indicator, it is faster but the problem is that too many objects on the sheet is still a performance problem.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;That is the complete scenario. Hope you have any idea to improve the performance. Thank you!&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2016 14:38:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-if-nested-works/m-p/1115286#M368257</guid>
      <dc:creator />
      <dc:date>2016-08-05T14:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: How if nested works?</title>
      <link>https://community.qlik.com/t5/QlikView/How-if-nested-works/m-p/1115287#M368258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Jonathan, I will test it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2016 14:48:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-if-nested-works/m-p/1115287#M368258</guid>
      <dc:creator />
      <dc:date>2016-08-05T14:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: How if nested works?</title>
      <link>https://community.qlik.com/t5/QlikView/How-if-nested-works/m-p/1115288#M368259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Max,&lt;/P&gt;&lt;P&gt;Thank you, as I explain to Marcus above, I don't think I can put the code within the script because it has to be dynamic, depending on a date filter that the user selects on the gui.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2016 14:50:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-if-nested-works/m-p/1115288#M368259</guid>
      <dc:creator />
      <dc:date>2016-08-05T14:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: How if nested works?</title>
      <link>https://community.qlik.com/t5/QlikView/How-if-nested-works/m-p/1115289#M368260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan,&lt;/P&gt;&lt;P&gt;I have tested with &lt;STRONG&gt;RangeMax&lt;/STRONG&gt; but it takes the same time to be calculated &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2016 15:37:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-if-nested-works/m-p/1115289#M368260</guid>
      <dc:creator />
      <dc:date>2016-08-05T15:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: How if nested works?</title>
      <link>https://community.qlik.com/t5/QlikView/How-if-nested-works/m-p/1115290#M368261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the feeling that your approach is somehow overcomplicated and that it could be simplified in any way. Please provide a small example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-1290"&gt;Preparing examples for Upload - Reduction and Data Scrambling&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-16454"&gt;Uploading a Sample&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2016 15:51:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-if-nested-works/m-p/1115290#M368261</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-08-05T15:51:39Z</dc:date>
    </item>
  </channel>
</rss>

