<?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: Class range with if condition and multiple 'and' is making the charts slow in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Class-range-with-if-condition-and-multiple-and-is-making-the/m-p/1983433#M81147</link>
    <description>&lt;P&gt;I suggest to change the (nested) if-loops to set analysis statements like:&lt;/P&gt;
&lt;P&gt;count({&amp;lt; Field1 = {"&amp;gt;=slider1&amp;lt;=slider2"}&amp;gt;} Field2)&lt;/P&gt;
&lt;P&gt;- Marcus&lt;/P&gt;</description>
    <pubDate>Wed, 21 Sep 2022 06:14:45 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2022-09-21T06:14:45Z</dc:date>
    <item>
      <title>Class range with if condition and multiple 'and' is making the charts slow</title>
      <link>https://community.qlik.com/t5/App-Development/Class-range-with-if-condition-and-multiple-and-is-making-the/m-p/1982864#M81116</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have multiple charts that are affected by multiple sliders.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For achieving that in dimension I used something like-&lt;/P&gt;
&lt;P&gt;class(if(slider1&amp;lt; 'max value&amp;nbsp; of the slider' and slider1&amp;gt; 'min value' and slider2&amp;lt;'max value' slider2&amp;gt;'min value' and slider3&amp;lt;'max value' and slider3&amp;gt;'min value', Field)&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Similarly in measure count(if (slider1&amp;lt;'max value' and slider1&amp;gt;'min value'...... , field2) )&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So this sort of if condition expressipn is used for multiple charts and kpis in the dashboard.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So everytime some slider value is changed or any selection made it gets slower. Is there a way I can improve the performance. I have removed all strings and used just flags, removed all unused columns.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The similar expressions are repeated in all the charts and kpi's so everytime it is calculating. I believe this is the bottleneck, but I am not sure how to fix it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help is appreciated.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2022 05:22:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Class-range-with-if-condition-and-multiple-and-is-making-the/m-p/1982864#M81116</guid>
      <dc:creator>joybratas1</dc:creator>
      <dc:date>2022-09-20T05:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: Class range with if condition and multiple 'and' is making the charts slow</title>
      <link>https://community.qlik.com/t5/App-Development/Class-range-with-if-condition-and-multiple-and-is-making-the/m-p/1983433#M81147</link>
      <description>&lt;P&gt;I suggest to change the (nested) if-loops to set analysis statements like:&lt;/P&gt;
&lt;P&gt;count({&amp;lt; Field1 = {"&amp;gt;=slider1&amp;lt;=slider2"}&amp;gt;} Field2)&lt;/P&gt;
&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2022 06:14:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Class-range-with-if-condition-and-multiple-and-is-making-the/m-p/1983433#M81147</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2022-09-21T06:14:45Z</dc:date>
    </item>
  </channel>
</rss>

