<?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: Using range functions instead of num sum/num count in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Using-range-functions-instead-of-num-sum-num-count/m-p/1517829#M37025</link>
    <description>&lt;P&gt;I agree with Tresesco that the range-functions couldn't replace the aggregations like sum() or count() because they work in a different direction - sum/count will aggregate the items (fieldvalues within a column) vertically and the range-functions do the calculation horizontally like: rangesum(Field1, Field2, ...).&lt;/P&gt;&lt;P&gt;Beside this you could optimize your expression if leave the num() because the result of num() / num() will be again unformatted. Further you could replace your string conditions within the set analysis with a numeric value - this means something like 'Yes' or 'No' with 1 or 0.&lt;/P&gt;&lt;P&gt;But usually you won't notice a significantly performance improvement through these kind of measures - by really large datasets and many objects on the sheet it might be different.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
    <pubDate>Fri, 07 Dec 2018 09:04:05 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2018-12-07T09:04:05Z</dc:date>
    <item>
      <title>Using range functions instead of num sum/num count</title>
      <link>https://community.qlik.com/t5/App-Development/Using-range-functions-instead-of-num-sum-num-count/m-p/1517695#M37003</link>
      <description>&lt;P&gt;Hi! We are currently optimizing Qlik Performance and I read one best practice where I need to use range functions instead of the usual num(sum), num (count) function. I found limited examples online for range functions on the front end.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I have the ff. as my expression:&lt;/P&gt;&lt;P&gt;(num(count(distinct {&amp;lt;[FIELD1] = {'Yes'}&amp;gt;}[ID FIELD]),vFormatCount0) / num(count(distinct {&amp;lt;[FIELD2] = {'wrapup'}&amp;gt;}[FIELD ID]),vFormatCount0)) * 100&lt;/P&gt;&lt;P&gt;How do I change the expression to one using Range function?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, does this help with the overall UI Calculation/Qlik Optimisation?&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 07:06:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-range-functions-instead-of-num-sum-num-count/m-p/1517695#M37003</guid>
      <dc:creator>marjph</dc:creator>
      <dc:date>2024-11-16T07:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: Using range functions instead of num sum/num count</title>
      <link>https://community.qlik.com/t5/App-Development/Using-range-functions-instead-of-num-sum-num-count/m-p/1517721#M37010</link>
      <description>AFAIK, in general, range functions can't replace aggregation functions. I am not sure what made you think that range functions could be used here to tune the performance. Your expression looks good to me (except for the variable you are using - I don't know about).</description>
      <pubDate>Fri, 07 Dec 2018 05:00:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-range-functions-instead-of-num-sum-num-count/m-p/1517721#M37010</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2018-12-07T05:00:40Z</dc:date>
    </item>
    <item>
      <title>Re: Using range functions instead of num sum/num count</title>
      <link>https://community.qlik.com/t5/App-Development/Using-range-functions-instead-of-num-sum-num-count/m-p/1517768#M37021</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Please see below screenshot.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="range.JPG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/1777i842F7BE6580640E3/image-size/large?v=v2&amp;amp;px=999" role="button" title="range.JPG" alt="range.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Dec 2018 07:16:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-range-functions-instead-of-num-sum-num-count/m-p/1517768#M37021</guid>
      <dc:creator>marjph</dc:creator>
      <dc:date>2018-12-07T07:16:19Z</dc:date>
    </item>
    <item>
      <title>Re: Using range functions instead of num sum/num count</title>
      <link>https://community.qlik.com/t5/App-Development/Using-range-functions-instead-of-num-sum-num-count/m-p/1517772#M37022</link>
      <description>&lt;P&gt;Numsum() and Num(Sum(.... are NOT same. Similarly for count().&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Numsum() is one function and Num(Sum(..&amp;nbsp; &amp;nbsp;is combination of two functions.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Dec 2018 07:35:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-range-functions-instead-of-num-sum-num-count/m-p/1517772#M37022</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2018-12-07T07:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: Using range functions instead of num sum/num count</title>
      <link>https://community.qlik.com/t5/App-Development/Using-range-functions-instead-of-num-sum-num-count/m-p/1517829#M37025</link>
      <description>&lt;P&gt;I agree with Tresesco that the range-functions couldn't replace the aggregations like sum() or count() because they work in a different direction - sum/count will aggregate the items (fieldvalues within a column) vertically and the range-functions do the calculation horizontally like: rangesum(Field1, Field2, ...).&lt;/P&gt;&lt;P&gt;Beside this you could optimize your expression if leave the num() because the result of num() / num() will be again unformatted. Further you could replace your string conditions within the set analysis with a numeric value - this means something like 'Yes' or 'No' with 1 or 0.&lt;/P&gt;&lt;P&gt;But usually you won't notice a significantly performance improvement through these kind of measures - by really large datasets and many objects on the sheet it might be different.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Fri, 07 Dec 2018 09:04:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-range-functions-instead-of-num-sum-num-count/m-p/1517829#M37025</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-12-07T09:04:05Z</dc:date>
    </item>
    <item>
      <title>Re: Using range functions instead of num sum/num count</title>
      <link>https://community.qlik.com/t5/App-Development/Using-range-functions-instead-of-num-sum-num-count/m-p/1517925#M37030</link>
      <description>Thank you for clarifying that &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Fri, 07 Dec 2018 11:38:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-range-functions-instead-of-num-sum-num-count/m-p/1517925#M37030</guid>
      <dc:creator>marjph</dc:creator>
      <dc:date>2018-12-07T11:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: Using range functions instead of num sum/num count</title>
      <link>https://community.qlik.com/t5/App-Development/Using-range-functions-instead-of-num-sum-num-count/m-p/1517926#M37031</link>
      <description>Thank you for taking the time to explain all these! Will consider what you said about replacing the string condition with numeric value &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; I'll read more on optimization to see how else can I improve our calculations.</description>
      <pubDate>Fri, 07 Dec 2018 11:40:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-range-functions-instead-of-num-sum-num-count/m-p/1517926#M37031</guid>
      <dc:creator>marjph</dc:creator>
      <dc:date>2018-12-07T11:40:34Z</dc:date>
    </item>
  </channel>
</rss>

