<?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 Remove data more than upper control limit (average+Stdev) in load script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Remove-data-more-than-upper-control-limit-average-Stdev-in-load/m-p/847307#M530959</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to remove data that is more than average + standard deviation in load script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These are the solutions that I tried:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966;"&gt;Solution1:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966;"&gt;if(round([Run time]-[collection Time]) &amp;lt;= avg(round([Run time]-[collection time])+Stdev(round([Run time]-[collection time]))),round(([Run time]-collection time])*24*60),) as AB&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;Load Error that I get: nested aggregation &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966;"&gt;Solution 2:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966;"&gt;Stdev([Run time]-[Collection time] as std,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966;"&gt;avg&lt;SPAN style="color: #339966; font-size: 13.3333330154419px;"&gt;([Run time]-[Collection time] ) as avg.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966; font-size: 13.3333330154419px;"&gt;....Then use these 2 in my chart expression&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;Load Error: expression not valid&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Solution 3: I was thinking to define a variable in load and use variables instead of [Run time]-[Collection time]&lt;/P&gt;&lt;P&gt;But I am not sure of this neither. Does any have any ideas about nested aggregation and how it can be resolved?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**I also used set analysis for this , but since I am using an expression in my set it does not show any valid chart.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Jun 2015 20:39:09 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-06-17T20:39:09Z</dc:date>
    <item>
      <title>Remove data more than upper control limit (average+Stdev) in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-data-more-than-upper-control-limit-average-Stdev-in-load/m-p/847307#M530959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to remove data that is more than average + standard deviation in load script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These are the solutions that I tried:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966;"&gt;Solution1:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966;"&gt;if(round([Run time]-[collection Time]) &amp;lt;= avg(round([Run time]-[collection time])+Stdev(round([Run time]-[collection time]))),round(([Run time]-collection time])*24*60),) as AB&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;Load Error that I get: nested aggregation &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966;"&gt;Solution 2:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966;"&gt;Stdev([Run time]-[Collection time] as std,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966;"&gt;avg&lt;SPAN style="color: #339966; font-size: 13.3333330154419px;"&gt;([Run time]-[Collection time] ) as avg.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966; font-size: 13.3333330154419px;"&gt;....Then use these 2 in my chart expression&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;Load Error: expression not valid&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Solution 3: I was thinking to define a variable in load and use variables instead of [Run time]-[Collection time]&lt;/P&gt;&lt;P&gt;But I am not sure of this neither. Does any have any ideas about nested aggregation and how it can be resolved?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**I also used set analysis for this , but since I am using an expression in my set it does not show any valid chart.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2015 20:39:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-data-more-than-upper-control-limit-average-Stdev-in-load/m-p/847307#M530959</guid>
      <dc:creator />
      <dc:date>2015-06-17T20:39:09Z</dc:date>
    </item>
    <item>
      <title>Re: Remove data more than upper control limit (average+Stdev) in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-data-more-than-upper-control-limit-average-Stdev-in-load/m-p/847308#M530960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Please have a look at the attached application, hope it helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kiruthi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2015 22:27:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-data-more-than-upper-control-limit-average-Stdev-in-load/m-p/847308#M530960</guid>
      <dc:creator />
      <dc:date>2015-06-17T22:27:49Z</dc:date>
    </item>
  </channel>
</rss>

