<?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: Set analysis performance optimization - reduce if function interaction in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Set-analysis-performance-optimization-reduce-if-function/m-p/1666199#M50156</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hi, at least need to be evaluated at each gerarchical dimension attribute. Thx&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 16 Jan 2020 12:08:25 GMT</pubDate>
    <dc:creator>davdiste</dc:creator>
    <dc:date>2020-01-16T12:08:25Z</dc:date>
    <item>
      <title>Set analysis performance optimization - reduce if function interaction</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-performance-optimization-reduce-if-function/m-p/1666121#M50137</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm developing an app caracterized by 4 level of variables, in which each upper level variables recall lower level ones. The measures included into the variables can't be developed in back end script. T&lt;SPAN&gt;he upper level variables generate a long script visualized in expression information (see the attachment).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The issue we're facing is related with IF function&amp;nbsp; in expression, like that presented below, where an upper variable is evaluated several times within the IF generating a really long script and long lag in front end result visualization.&lt;/P&gt;&lt;P&gt;IF ($(score) &amp;gt;= SUM({&amp;lt;ID_PV_INDICE={'IPIMB'}&amp;gt;} POINTS),'Risk very low',&lt;BR /&gt;IF ($(score) &amp;gt; SUM({&amp;lt;ID_PV_INDICE={'IPIMA'}&amp;gt;} POINTS)&lt;BR /&gt;and $(score) &amp;lt;= SUM({&amp;lt;ID_PV_INDICE={'IPIA'}&amp;gt;} POINTS) ,'Risk high',&lt;BR /&gt;IF ($(score) &amp;gt; SUM({&amp;lt;ID_PV_INDICE={'IPIA'}&amp;gt;} POINTS)&lt;BR /&gt;and $(score) &amp;lt;= SUM({&amp;lt;ID_PV_INDICE={'IPIM'}&amp;gt;} POINTS) ,'Risk medium',&lt;BR /&gt;IF ($( score) &amp;lt;= SUM({&amp;lt;ID_PV_INDICE={'IPIMA'}&amp;gt;} POINTS) ,'Risk very high',&lt;BR /&gt;'Risk low'&lt;BR /&gt;))))&lt;/P&gt;&lt;P&gt;May anybody suggest an alternative function that enables better performance providing the variables "score" in expression just one time (like properties of the switch function in back end)?&lt;/P&gt;&lt;P&gt;Thanks, best regards.&lt;/P&gt;&lt;P&gt;Davide&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 19:17:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-performance-optimization-reduce-if-function/m-p/1666121#M50137</guid>
      <dc:creator>davdiste</dc:creator>
      <dc:date>2024-11-16T19:17:38Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis performance optimization - reduce if function interaction</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-performance-optimization-reduce-if-function/m-p/1666128#M50138</link>
      <description>&lt;P&gt;may be this&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Pick(match(-1,
$(score) &amp;gt;= SUM({&amp;lt;ID_PV_INDICE={'IPIMB'}&amp;gt;} POINTS),
$(score) &amp;gt; SUM({&amp;lt;ID_PV_INDICE={'IPIMA'}&amp;gt;} POINTS)
and $(score) &amp;lt;= SUM({&amp;lt;ID_PV_INDICE={'IPIA'}&amp;gt;} POINTS) ,
$(score) &amp;gt; SUM({&amp;lt;ID_PV_INDICE={'IPIA'}&amp;gt;} POINTS)
and $(score) &amp;lt;= SUM({&amp;lt;ID_PV_INDICE={'IPIM'}&amp;gt;} POINTS) ,
$( score) &amp;lt;= SUM({&amp;lt;ID_PV_INDICE={'IPIMA'}&amp;gt;} POINTS))+1,
'Risk low'
'Risk very low',
'Risk high',
'Risk medium',
'Risk very high',
)&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 16 Jan 2020 09:30:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-performance-optimization-reduce-if-function/m-p/1666128#M50138</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-01-16T09:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis performance optimization - reduce if function interaction</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-performance-optimization-reduce-if-function/m-p/1666134#M50142</link>
      <description>&lt;P&gt;Thanks Kush,&amp;nbsp;&lt;/P&gt;&lt;P&gt;but also in the pick match function the variables $(score) is recalled several times and the interaction are similar at&amp;nbsp; IF the original function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2020 09:43:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-performance-optimization-reduce-if-function/m-p/1666134#M50142</guid>
      <dc:creator>davdiste</dc:creator>
      <dc:date>2020-01-16T09:43:11Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis performance optimization - reduce if function interaction</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-performance-optimization-reduce-if-function/m-p/1666154#M50145</link>
      <description>&lt;P&gt;But it will be faster as compared to if condition. Please validate that&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2020 10:28:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-performance-optimization-reduce-if-function/m-p/1666154#M50145</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-01-16T10:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis performance optimization - reduce if function interaction</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-performance-optimization-reduce-if-function/m-p/1666196#M50154</link>
      <description>&lt;P&gt;Does $(score) need to be evaluated at each dimension value or can it be calculated over all data?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2020 12:06:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-performance-optimization-reduce-if-function/m-p/1666196#M50154</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2020-01-16T12:06:06Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis performance optimization - reduce if function interaction</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-performance-optimization-reduce-if-function/m-p/1666197#M50155</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/336"&gt;@Kushal_Chawda&lt;/a&gt;&amp;nbsp;have you tested that pick/match is faster than if()? I have not found it to be faster.&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2020 12:07:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-performance-optimization-reduce-if-function/m-p/1666197#M50155</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2020-01-16T12:07:36Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis performance optimization - reduce if function interaction</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-performance-optimization-reduce-if-function/m-p/1666199#M50156</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi, at least need to be evaluated at each gerarchical dimension attribute. Thx&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2020 12:08:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-performance-optimization-reduce-if-function/m-p/1666199#M50156</guid>
      <dc:creator>davdiste</dc:creator>
      <dc:date>2020-01-16T12:08:25Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis performance optimization - reduce if function interaction</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-performance-optimization-reduce-if-function/m-p/1666246#M50162</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6148"&gt;@rwunderlich&lt;/a&gt;&amp;nbsp;in one of my requirement I found it to be slightly faster as compared to if . I am not sure but may be it will depend on what kind of expression you are comparing on how much data.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2020 13:50:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-performance-optimization-reduce-if-function/m-p/1666246#M50162</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-01-16T13:50:33Z</dc:date>
    </item>
  </channel>
</rss>

