<?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 using stdev in script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/using-stdev-in-script/m-p/642346#M235314</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have got stdev working as an expression in a chart but with 700 elements in the dimension (used in a trellis chart) and thousands of values across 4 years, it is slow to refresh.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't believe this is optimal (or smart) use of QV and want to perform the stdev calculation in the load script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached a small qvw file with my workings.&amp;nbsp; it loads the following test data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;&lt;EM style="color: #808000;"&gt;dataset1:&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808000;"&gt;&lt;EM&gt;Load * inline [&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808000;"&gt;&lt;EM&gt;DYear,CodeName,Value&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808000;"&gt;&lt;EM&gt;2009,A,100&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808000;"&gt;&lt;EM&gt;2010,A,200&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808000;"&gt;&lt;EM&gt;2011,A,300&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808000;"&gt;&lt;EM&gt;2012,A,200&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808000;"&gt;&lt;EM&gt;2009,B,1100&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808000;"&gt;&lt;EM&gt;2010,B,1200&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808000;"&gt;&lt;EM&gt;2011,B,1300&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808000;"&gt;&lt;EM&gt;2012,B,1200&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808000;"&gt;&lt;EM&gt;2009,C,2100&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808000;"&gt;&lt;EM&gt;2010,C,2200&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808000;"&gt;&lt;EM&gt;2011,C,2300&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808000;"&gt;&lt;EM&gt;2012,C,2200&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808000;"&gt;&lt;EM&gt;];&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808000;"&gt;&lt;EM&gt;dataset2: &lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808000;"&gt;&lt;EM&gt;load &lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808000;"&gt;&lt;EM&gt;&amp;nbsp; CodeName,&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808000;"&gt;&lt;EM&gt;&amp;nbsp; Count(CodeName) as CountOfCodeName,&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808000;"&gt;&lt;EM&gt;&amp;nbsp; stdev(Value) as stdev3&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808000;"&gt;&lt;EM&gt;resident tab1&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;&lt;EM style="color: #808000;"&gt;group by CodeName;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The output is displayed here.&amp;nbsp; as you can see the standard deviation is the same for all CodeNames, where it should be very different due to the different sets of values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="490"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="98"&gt;DYear&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="98"&gt;CodeName&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="98"&gt;A&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="98"&gt;B&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="98"&gt;C&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;2009&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;81.64965809&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;81.64965809&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;81.64965809&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;2010&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;81.64965809&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;81.64965809&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;81.64965809&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;2011&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;81.64965809&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;81.64965809&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;81.64965809&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;2012&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;81.64965809&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;81.64965809&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;81.64965809&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any assistance or suggestions are gratefully received.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 May 2014 00:39:02 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-05-22T00:39:02Z</dc:date>
    <item>
      <title>using stdev in script</title>
      <link>https://community.qlik.com/t5/QlikView/using-stdev-in-script/m-p/642346#M235314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have got stdev working as an expression in a chart but with 700 elements in the dimension (used in a trellis chart) and thousands of values across 4 years, it is slow to refresh.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't believe this is optimal (or smart) use of QV and want to perform the stdev calculation in the load script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached a small qvw file with my workings.&amp;nbsp; it loads the following test data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;&lt;EM style="color: #808000;"&gt;dataset1:&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808000;"&gt;&lt;EM&gt;Load * inline [&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808000;"&gt;&lt;EM&gt;DYear,CodeName,Value&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808000;"&gt;&lt;EM&gt;2009,A,100&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808000;"&gt;&lt;EM&gt;2010,A,200&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808000;"&gt;&lt;EM&gt;2011,A,300&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808000;"&gt;&lt;EM&gt;2012,A,200&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808000;"&gt;&lt;EM&gt;2009,B,1100&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808000;"&gt;&lt;EM&gt;2010,B,1200&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808000;"&gt;&lt;EM&gt;2011,B,1300&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808000;"&gt;&lt;EM&gt;2012,B,1200&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808000;"&gt;&lt;EM&gt;2009,C,2100&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808000;"&gt;&lt;EM&gt;2010,C,2200&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808000;"&gt;&lt;EM&gt;2011,C,2300&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808000;"&gt;&lt;EM&gt;2012,C,2200&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808000;"&gt;&lt;EM&gt;];&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808000;"&gt;&lt;EM&gt;dataset2: &lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808000;"&gt;&lt;EM&gt;load &lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808000;"&gt;&lt;EM&gt;&amp;nbsp; CodeName,&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808000;"&gt;&lt;EM&gt;&amp;nbsp; Count(CodeName) as CountOfCodeName,&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808000;"&gt;&lt;EM&gt;&amp;nbsp; stdev(Value) as stdev3&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808000;"&gt;&lt;EM&gt;resident tab1&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;&lt;EM style="color: #808000;"&gt;group by CodeName;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The output is displayed here.&amp;nbsp; as you can see the standard deviation is the same for all CodeNames, where it should be very different due to the different sets of values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="490"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="98"&gt;DYear&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="98"&gt;CodeName&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="98"&gt;A&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="98"&gt;B&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="98"&gt;C&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;2009&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;81.64965809&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;81.64965809&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;81.64965809&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;2010&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;81.64965809&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;81.64965809&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;81.64965809&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;2011&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;81.64965809&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;81.64965809&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;81.64965809&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;2012&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;81.64965809&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;81.64965809&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;81.64965809&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any assistance or suggestions are gratefully received.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 May 2014 00:39:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/using-stdev-in-script/m-p/642346#M235314</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-22T00:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: using stdev in script</title>
      <link>https://community.qlik.com/t5/QlikView/using-stdev-in-script/m-p/642347#M235315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So&lt;/P&gt;&lt;P&gt;The app absolutely correct, because the standard deviation in these set is exactly same &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;just for example the difference between 100 and 200 is same as 1100 and 1200&lt;/P&gt;&lt;P&gt;I changed values and got different values&lt;/P&gt;&lt;P&gt;PFA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 May 2014 01:40:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/using-stdev-in-script/m-p/642347#M235315</guid>
      <dc:creator>SergeyMak</dc:creator>
      <dc:date>2014-05-22T01:40:04Z</dc:date>
    </item>
    <item>
      <title>Re: using stdev in script</title>
      <link>https://community.qlik.com/t5/QlikView/using-stdev-in-script/m-p/642348#M235316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh, that was silly of me!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 May 2014 22:56:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/using-stdev-in-script/m-p/642348#M235316</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-25T22:56:52Z</dc:date>
    </item>
  </channel>
</rss>

