<?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: Calculations in Script in Qlik Learning Discussions</title>
    <link>https://community.qlik.com/t5/Qlik-Learning-Discussions/Calculations-in-Script/m-p/785891#M2177</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you want me to post the source data file or the extracted data from Qlikview?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Dec 2014 04:44:56 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-12-29T04:44:56Z</dc:date>
    <item>
      <title>Calculations in Script</title>
      <link>https://community.qlik.com/t5/Qlik-Learning-Discussions/Calculations-in-Script/m-p/785889#M2175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have done some statistical calcualtions on the dashboard as shown in the following two tables. However this is only a small portion of the original data and hence I get timely results. I want to replicate these calculations in the script and maybe create variables which can be called on the dashboard when the data size is large.&lt;/P&gt;&lt;P&gt;These are the four statistical measures that have been calculated:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mean Absolute Deviation &lt;/P&gt;&lt;P&gt;Avg(Aggr(Fabs(Sum(Unit) - Avg(Total &amp;lt;Contract&amp;nbsp; Unit)), Month, Contract )&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Co-Efficent of Variation&lt;/P&gt;&lt;P&gt;(Stdev(aggr(sum(Unit),Month,Contract)))/(aggr(avg(total Unit),Account))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Std Deviation&lt;/P&gt;&lt;P&gt;Stdev(aggr(sum(Unit),Month,Contract))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variance&lt;/P&gt;&lt;P&gt;sqr(Stdev(aggr(sum(Unit),Month,Contract)))&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;IMG class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/74162_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;For each Contract these statistics have been calculated as follows:&lt;/P&gt;&lt;P&gt;The moving average is used where for each subsequent month the average of all previous data is used to calculate the average and then the deviation. &lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/74155_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;If there is a way to do these calculations in the script, please let me know! Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Dec 2014 11:05:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Learning-Discussions/Calculations-in-Script/m-p/785889#M2175</guid>
      <dc:creator />
      <dc:date>2014-12-24T11:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: Calculations in Script</title>
      <link>https://community.qlik.com/t5/Qlik-Learning-Discussions/Calculations-in-Script/m-p/785890#M2176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That should be possible. Can you post an example document that contains the data?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Dec 2014 12:32:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Learning-Discussions/Calculations-in-Script/m-p/785890#M2176</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-12-24T12:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: Calculations in Script</title>
      <link>https://community.qlik.com/t5/Qlik-Learning-Discussions/Calculations-in-Script/m-p/785891#M2177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you want me to post the source data file or the extracted data from Qlikview?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Dec 2014 04:44:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Learning-Discussions/Calculations-in-Script/m-p/785891#M2177</guid>
      <dc:creator />
      <dc:date>2014-12-29T04:44:56Z</dc:date>
    </item>
    <item>
      <title>Re: Calculations in Script</title>
      <link>https://community.qlik.com/t5/Qlik-Learning-Discussions/Calculations-in-Script/m-p/785892#M2178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to the calculations done in the script then the source data is needed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Dec 2014 06:46:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Learning-Discussions/Calculations-in-Script/m-p/785892#M2178</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-12-29T06:46:04Z</dc:date>
    </item>
  </channel>
</rss>

