<?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 Saving an average measure value into a variable in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Saving-an-average-measure-value-into-a-variable/m-p/1596698#M44111</link>
    <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;I am trying to save an &lt;U&gt;average value of a measure&lt;/U&gt; into a variable. I want the value to be static and fixed.&lt;/P&gt;&lt;P&gt;Below is a simplified example of my case. I have limited the calculated index values for the each individual person with the max value of 200. Qlik calculates individual values for each person correctly, limiting the exceeding values individually. However if I try to put the average of all persons into a variable (using "=" with declaration of the variable, not using $ when calling it, to have a static value) this will cause it to provide a different result because of the maximum limit I have. Therefore the average is not correct. If I use to display the average on the table in Qlik, &lt;U&gt;it will display the correct one&lt;/U&gt;. I am wondering how can I get this correct average value from the table into a fixed variable or are there any other tricks to getting this done?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="qlik_avg.JPG" style="width: 670px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/14539iE68B688A1730A0AA/image-size/large?v=v2&amp;amp;px=999" role="button" title="qlik_avg.JPG" alt="qlik_avg.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;As seen above, using the formula in a variable, where selection applies to both persons A and B -&amp;gt; returns the wrong result, because the Index never exceeds 200 when calculating for both persons together. Any ideas or workarounds?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards, AT&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 20:34:10 GMT</pubDate>
    <dc:creator>aljaztoman</dc:creator>
    <dc:date>2024-11-16T20:34:10Z</dc:date>
    <item>
      <title>Saving an average measure value into a variable</title>
      <link>https://community.qlik.com/t5/App-Development/Saving-an-average-measure-value-into-a-variable/m-p/1596698#M44111</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;I am trying to save an &lt;U&gt;average value of a measure&lt;/U&gt; into a variable. I want the value to be static and fixed.&lt;/P&gt;&lt;P&gt;Below is a simplified example of my case. I have limited the calculated index values for the each individual person with the max value of 200. Qlik calculates individual values for each person correctly, limiting the exceeding values individually. However if I try to put the average of all persons into a variable (using "=" with declaration of the variable, not using $ when calling it, to have a static value) this will cause it to provide a different result because of the maximum limit I have. Therefore the average is not correct. If I use to display the average on the table in Qlik, &lt;U&gt;it will display the correct one&lt;/U&gt;. I am wondering how can I get this correct average value from the table into a fixed variable or are there any other tricks to getting this done?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="qlik_avg.JPG" style="width: 670px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/14539iE68B688A1730A0AA/image-size/large?v=v2&amp;amp;px=999" role="button" title="qlik_avg.JPG" alt="qlik_avg.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;As seen above, using the formula in a variable, where selection applies to both persons A and B -&amp;gt; returns the wrong result, because the Index never exceeds 200 when calculating for both persons together. Any ideas or workarounds?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards, AT&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 20:34:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Saving-an-average-measure-value-into-a-variable/m-p/1596698#M44111</guid>
      <dc:creator>aljaztoman</dc:creator>
      <dc:date>2024-11-16T20:34:10Z</dc:date>
    </item>
  </channel>
</rss>

