<?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 Truncated Average, or &amp;quot;trimmed mean&amp;quot; in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Truncated-Average-or-quot-trimmed-mean-quot/m-p/576899#M479180</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Is there a way to calculate a truncated average or "trimmed mean" in Qlikview? I would like to include this in a straight table or a pivot table.&amp;nbsp; In Excel there is a function for this called TRIMMEAN.&amp;nbsp; This allows you to calculate an average that excludes outlying values.&amp;nbsp; You specify a percentage of high and low values to exclude.&amp;nbsp; I don't see anything like this listed under the "Aggregate" function category.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Feb 2014 17:49:37 GMT</pubDate>
    <dc:creator>dukane24</dc:creator>
    <dc:date>2014-02-12T17:49:37Z</dc:date>
    <item>
      <title>Truncated Average, or "trimmed mean"</title>
      <link>https://community.qlik.com/t5/QlikView/Truncated-Average-or-quot-trimmed-mean-quot/m-p/576899#M479180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Is there a way to calculate a truncated average or "trimmed mean" in Qlikview? I would like to include this in a straight table or a pivot table.&amp;nbsp; In Excel there is a function for this called TRIMMEAN.&amp;nbsp; This allows you to calculate an average that excludes outlying values.&amp;nbsp; You specify a percentage of high and low values to exclude.&amp;nbsp; I don't see anything like this listed under the "Aggregate" function category.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2014 17:49:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Truncated-Average-or-quot-trimmed-mean-quot/m-p/576899#M479180</guid>
      <dc:creator>dukane24</dc:creator>
      <dc:date>2014-02-12T17:49:37Z</dc:date>
    </item>
    <item>
      <title>Re: Truncated Average, or "trimmed mean"</title>
      <link>https://community.qlik.com/t5/QlikView/Truncated-Average-or-quot-trimmed-mean-quot/m-p/576900#M479181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See&lt;/P&gt;&lt;P&gt;&lt;A href="http://qlikviewcookbook.com/recipes/download-info/outliers/" title="http://qlikviewcookbook.com/recipes/download-info/outliers/"&gt;http://qlikviewcookbook.com/recipes/download-info/outliers/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That example presents various options for excluding outliers. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2014 18:03:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Truncated-Average-or-quot-trimmed-mean-quot/m-p/576900#M479181</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2014-02-12T18:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: Truncated Average, or "trimmed mean"</title>
      <link>https://community.qlik.com/t5/QlikView/Truncated-Average-or-quot-trimmed-mean-quot/m-p/576901#M479182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi nate,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Without resorting to setting values in the script, you can use the fractile() function to return the top / bottom 5% value and use that to select.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ideally you should put these values in variables, and use that in set analysis:&lt;/P&gt;&lt;P&gt;=avg({&amp;lt;value={"=&amp;gt;=$(vbottom5Pc)&amp;lt;=$(vtop5Pc)"}&amp;gt;} value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or if it is a row-by-row operation, use an if statement (but this is a&amp;nbsp; bit clunky and may be quite slow)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;avg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;randnumber&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;fractile&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;randnumber&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,0.05) &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;randnumber&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;lt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;fractile&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;randnumber&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,0.95),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;randnumber&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;rownumber&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Or something similar&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Erica&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Feb 2014 13:36:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Truncated-Average-or-quot-trimmed-mean-quot/m-p/576901#M479182</guid>
      <dc:creator />
      <dc:date>2014-02-20T13:36:11Z</dc:date>
    </item>
  </channel>
</rss>

