<?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: Chart with conditional expressions slow in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Chart-with-conditional-expressions-slow/m-p/338677#M124916</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Karl, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the information.&amp;nbsp; I think I'll try and get SR7 rolled out and see if that helps (It resolves a few other bugs I raised, so won't be wasted time for us).&amp;nbsp; The application I'm seeing the issue in is very complex, so it may well just be a case of "death by a thousand cuts", as I'm having difficulty isolating any specific culprit for the performance hit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for taking the time to reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Graeme&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Jul 2014 20:21:10 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-07-25T20:21:10Z</dc:date>
    <item>
      <title>Chart with conditional expressions slow</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-with-conditional-expressions-slow/m-p/338672#M124911</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 have a interesting problem with a chart that has conditional expressions to show and hide the chart expressions.&amp;nbsp; My chart is like the personalized report in "What's new in QV 11?", but in the my application I have 80 possible expressions.&amp;nbsp; The funny thing is that if I select to show expressions that are the first ones in the list of expressions in the property window, the chart calculates instantly.&amp;nbsp; If I select to show expression that are the last ones in the list of expressions in the property window, the chart calculates slowly.&amp;nbsp; If I move those same expressions from the end of the list to the start of the list of expressions, the chart calculate instantly.&amp;nbsp; So my question is, why would the position of the expression matter how fast the chart calculates?&amp;nbsp; Doesn't QlikView have to go though the whole expression list regardless?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anybody else see anything similar?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Karl&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2012 17:57:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-with-conditional-expressions-slow/m-p/338672#M124911</guid>
      <dc:creator>pover</dc:creator>
      <dc:date>2012-06-05T17:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: Chart with conditional expressions slow</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-with-conditional-expressions-slow/m-p/338673#M124912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Karl, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was just wondering if you ever made any headway on this issue? Facing something similar, so would be great to hear your findings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Graeme&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2014 12:28:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-with-conditional-expressions-slow/m-p/338673#M124912</guid>
      <dc:creator />
      <dc:date>2014-07-24T12:28:37Z</dc:date>
    </item>
    <item>
      <title>Re: Chart with conditional expressions slow</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-with-conditional-expressions-slow/m-p/338674#M124913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share the expression for showing the chart?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2014 12:55:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-with-conditional-expressions-slow/m-p/338674#M124913</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2014-07-24T12:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: Chart with conditional expressions slow</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-with-conditional-expressions-slow/m-p/338675#M124914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you mean the expression for showing the expression conditionally (there is no conditional show expression for this particular chart)?&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An example would be:&lt;/P&gt;&lt;P&gt;=$(V.FN.AdHocFieldSelected([%UI.PnlBreakdown.AdHocExpression], 'Total Day Change'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;V.FN.AdHocFieldSelected is defined as: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SubStringCount('|'&amp;amp; Concat(DISTINCT {AdHoc} $1,'|')&amp;amp;'|', '|'&amp;amp; $2 &amp;amp;'|' )&amp;gt;0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I saw a bug in the release notes for SR7 about the concat function and "|", so I tried another delimiter too.&amp;nbsp; I am just seeing generally poor performance as the number of expressions grows.&amp;nbsp; The degradation of the performance seems disproportionate, as most of the expressions are disabled most of the time.&amp;nbsp; I'm still at the early stages of investigation, but this post was the first one that came up in my search results, hence the question.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2014 13:16:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-with-conditional-expressions-slow/m-p/338675#M124914</guid>
      <dc:creator />
      <dc:date>2014-07-24T13:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: Chart with conditional expressions slow</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-with-conditional-expressions-slow/m-p/338676#M124915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Graeme, &lt;/P&gt;&lt;P&gt;I talked to QlikTech support at the time and they did agree that is was a bug.&amp;nbsp; I stopped working for that customer, so I never confirmed if the problem was fixed in a later release.&amp;nbsp; I was using conditional show expressions, but I never isolated the problem enough to know if the problem was the expression itself or the conditional show feature.&amp;nbsp; It doesn't sound too crazy to think that if the problem was the conditional show feature, the same problem may exist with the disable expression feature.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Karl&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2014 18:18:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-with-conditional-expressions-slow/m-p/338676#M124915</guid>
      <dc:creator>pover</dc:creator>
      <dc:date>2014-07-25T18:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: Chart with conditional expressions slow</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-with-conditional-expressions-slow/m-p/338677#M124916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Karl, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the information.&amp;nbsp; I think I'll try and get SR7 rolled out and see if that helps (It resolves a few other bugs I raised, so won't be wasted time for us).&amp;nbsp; The application I'm seeing the issue in is very complex, so it may well just be a case of "death by a thousand cuts", as I'm having difficulty isolating any specific culprit for the performance hit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for taking the time to reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Graeme&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2014 20:21:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-with-conditional-expressions-slow/m-p/338677#M124916</guid>
      <dc:creator />
      <dc:date>2014-07-25T20:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: Chart with conditional expressions slow</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-with-conditional-expressions-slow/m-p/338678#M124917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Graeme and Karl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where you able to find any further information on this issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using QV11 SR2 and am experiencing the same slow performance when using conditional expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my case, I only have 21 expressions.&amp;nbsp; The conditional expression is very simple - &lt;EM&gt;Show Variable&lt;/EM&gt; = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;John.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2014 12:45:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-with-conditional-expressions-slow/m-p/338678#M124917</guid>
      <dc:creator>john_duffy</dc:creator>
      <dc:date>2014-08-25T12:45:20Z</dc:date>
    </item>
    <item>
      <title>Re: Chart with conditional expressions slow</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-with-conditional-expressions-slow/m-p/338679#M124918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the problem may be with the performance of the SubStringCount function - looks like it may be a bug, or some sort of performance issue.&amp;nbsp; When I removed it, the performance improved dramatically.&amp;nbsp; See this post for more details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/589193"&gt;Re: GetSelectedCount and Alternative State&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Graeme&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2014 12:50:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-with-conditional-expressions-slow/m-p/338679#M124918</guid>
      <dc:creator />
      <dc:date>2014-08-25T12:50:17Z</dc:date>
    </item>
    <item>
      <title>Re: Chart with conditional expressions slow</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-with-conditional-expressions-slow/m-p/338680#M124919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Graeme.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the response and info.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my case, I am not using the SubStringCount function or Concat function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My expressions are fairly simple (aggr,sum, etc.) and my conditional expression is simply a variable set to 0 or 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like Karl expierienced, when the first set of expressions are displayed, the performance is great.&amp;nbsp; As soon as I start to show expressions further along in the chart, the performance slows down.&amp;nbsp; With all expressions displayed, the performance is very slow.&amp;nbsp; If I remove the conditional expressions and therefore show all expressions, the performance is great.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;John.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2014 12:58:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-with-conditional-expressions-slow/m-p/338680#M124919</guid>
      <dc:creator>john_duffy</dc:creator>
      <dc:date>2014-08-25T12:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: Chart with conditional expressions slow</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-with-conditional-expressions-slow/m-p/338681#M124920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the information.&amp;nbsp; There may well be a few issues at play here.&amp;nbsp; In my particular scenario, the SubStringCount was definitely a major contributor, but there may be other issues too (like the one you described).&amp;nbsp; Removing the substringcount however has gotten us back to an acceptable level of performance for now.&amp;nbsp; Useful to hear your observations too, and would be great if you can post back any findings / resolution. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Graeme&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2014 13:05:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-with-conditional-expressions-slow/m-p/338681#M124920</guid>
      <dc:creator />
      <dc:date>2014-08-25T13:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: Chart with conditional expressions slow</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-with-conditional-expressions-slow/m-p/338682#M124921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One other note John (which may or may not impact you) - if you are using variables to store the state of the conditionally selected dimensions / expressions and intend to do frequent QDS reloads of the application, please be aware that I have noticed variable values don't tend to survive the reload.&amp;nbsp; I found field selections do survive, so I started using those instead to manage state.&amp;nbsp; It may be possible to get variable values to survive (I didn't investigate this fully), but as the field selections seemed to work without any effort - I started using them instead.&amp;nbsp; Just something to keep in mind if you are using variables to manage state.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2014 15:26:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-with-conditional-expressions-slow/m-p/338682#M124921</guid>
      <dc:creator />
      <dc:date>2014-08-25T15:26:19Z</dc:date>
    </item>
  </channel>
</rss>

