<?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: PICK vs. nested IF in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Performance-PICK-vs-nested-IF/m-p/492525#M184199</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi tresesco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;no, I would not be using match() (at least I don't think so): My formula now is like&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; If(line=1, [expr1], IF(line=2, [expr2])) &amp;lt;&amp;lt;&amp;lt;&lt;/P&gt;&lt;P&gt;The other one (for the status) is still more complex, it is like&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; IF(line=1, IF([expr1], 1, -1), IF(line=2, IF([expr2], 1, -1)) &amp;lt;&amp;lt;&amp;lt;&lt;/P&gt;&lt;P&gt;(both with more lines, of course.)&lt;/P&gt;&lt;P&gt;I would replace that &lt;STRONG&gt;(will that work when &amp;gt;line&amp;lt; is not fix?)&lt;/STRONG&gt; by&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; pick(line, [expr1] [expr2]) &amp;lt;&amp;lt;&amp;lt;&lt;/P&gt;&lt;P&gt;(only with more lines).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess it can still improve performance.&lt;/P&gt;&lt;P&gt;As I said, up to now we have not had any problems with that (except one that was due to a formula) - the "live" Apps are calculated on the server and viewed by the employees via IE, so that diminishes the problem.&lt;/P&gt;&lt;P&gt;Still, as the load is going to increase anyway, keeping it low along the way seems like a worthwhile thing to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Oct 2013 07:23:58 GMT</pubDate>
    <dc:creator>datanibbler</dc:creator>
    <dc:date>2013-10-21T07:23:58Z</dc:date>
    <item>
      <title>Performance: PICK vs. nested IF</title>
      <link>https://community.qlik.com/t5/QlikView/Performance-PICK-vs-nested-IF/m-p/492523#M184197</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;&lt;/P&gt;&lt;P&gt;I have just read in my book "QlikView 11 for Developers" as I regularly do, there's always some detail that I have not used before.&lt;/P&gt;&lt;P&gt;This time, it is the PICK function. The book uses the interesting phrase that it "...can even be lighter..." (than a nested IF).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Every one of my apps has, on the front_page, a diagram with the names of all the KPIs contained in that app and the YTD value.&lt;/P&gt;&lt;P&gt;In some of my new apps, there are 15 KPI diagrams, so in the front_page_diagram, there are 15 lines with 2 formulas each:&lt;/P&gt;&lt;P&gt;- a YTD value of the KPI&lt;/P&gt;&lt;P&gt;- a status_light (gauge chart) that uses that formula again to determine whether the light should be red or green.&lt;/P&gt;&lt;P&gt;=&amp;gt; That makes for two quite complex nested IF formulas.&lt;/P&gt;&lt;P&gt;Up to now we have not had any performance problems as all the apps are run on the server - but going forward the general load on the server is certainly going to increase, so everything I can do to keep the load as light as possible along the way will help us.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone tell me if it would be worthwhile, in these formula-heavy diagrams, to replace the entire nested IF_construct with a PICK function?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Oct 2013 20:24:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Performance-PICK-vs-nested-IF/m-p/492523#M184197</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2013-10-18T20:24:58Z</dc:date>
    </item>
    <item>
      <title>Re: Performance: PICK vs. nested IF</title>
      <link>https://community.qlik.com/t5/QlikView/Performance-PICK-vs-nested-IF/m-p/492524#M184198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess you are talking about the use of combination of pick() and match() like: pick(match() ,....). If it is so, then yes, it can substantially improve app's front-end performance. It somehow works like 'Case' in scripting. The same you can experiment with a big app. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Oct 2013 08:26:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Performance-PICK-vs-nested-IF/m-p/492524#M184198</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-10-19T08:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: Performance: PICK vs. nested IF</title>
      <link>https://community.qlik.com/t5/QlikView/Performance-PICK-vs-nested-IF/m-p/492525#M184199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi tresesco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;no, I would not be using match() (at least I don't think so): My formula now is like&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; If(line=1, [expr1], IF(line=2, [expr2])) &amp;lt;&amp;lt;&amp;lt;&lt;/P&gt;&lt;P&gt;The other one (for the status) is still more complex, it is like&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; IF(line=1, IF([expr1], 1, -1), IF(line=2, IF([expr2], 1, -1)) &amp;lt;&amp;lt;&amp;lt;&lt;/P&gt;&lt;P&gt;(both with more lines, of course.)&lt;/P&gt;&lt;P&gt;I would replace that &lt;STRONG&gt;(will that work when &amp;gt;line&amp;lt; is not fix?)&lt;/STRONG&gt; by&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; pick(line, [expr1] [expr2]) &amp;lt;&amp;lt;&amp;lt;&lt;/P&gt;&lt;P&gt;(only with more lines).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess it can still improve performance.&lt;/P&gt;&lt;P&gt;As I said, up to now we have not had any problems with that (except one that was due to a formula) - the "live" Apps are calculated on the server and viewed by the employees via IE, so that diminishes the problem.&lt;/P&gt;&lt;P&gt;Still, as the load is going to increase anyway, keeping it low along the way seems like a worthwhile thing to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Oct 2013 07:23:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Performance-PICK-vs-nested-IF/m-p/492525#M184199</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2013-10-21T07:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: Performance: PICK vs. nested IF</title>
      <link>https://community.qlik.com/t5/QlikView/Performance-PICK-vs-nested-IF/m-p/492526#M184200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi tresesco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this moderating thing takes quite a while.&lt;/P&gt;&lt;P&gt;You are right. I do need match(). I just looked up its correct syntax in another app where I have it, thanks to someone here in the Community ;-).&lt;/P&gt;&lt;P&gt;So I must give the MATCH() fct. all the possible values - nrs from 1 to 15 - but that is little effort.&lt;/P&gt;&lt;P&gt;I have introduced a comment line inbetween every two expressions now to make it perfectly clear which line that formula goes into. That way, it all stays manageable.&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Oct 2013 09:49:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Performance-PICK-vs-nested-IF/m-p/492526#M184200</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2013-10-21T09:49:26Z</dc:date>
    </item>
  </channel>
</rss>

