<?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: How to make an average excluding the 2% biggest values ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-make-an-average-excluding-the-2-biggest-values/m-p/1687039#M727873</link>
    <description>&lt;P&gt;I think my case is more complicated. Your example works in the example i had given but i can't make it work in a more complicated version.&lt;/P&gt;&lt;P&gt;I have a list of incidents (with unique ids) and i want to make the average duration of incidents only if they don't belong to the 2% longest of the Month.&lt;/P&gt;&lt;P&gt;I have managed to do something by precalculating the fractile(0.98) of the month but i don't see how to do without precalculation ..&lt;/P&gt;</description>
    <pubDate>Mon, 23 Mar 2020 16:07:20 GMT</pubDate>
    <dc:creator>fredericvillemi</dc:creator>
    <dc:date>2020-03-23T16:07:20Z</dc:date>
    <item>
      <title>How to make an average excluding the 2% biggest values ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-make-an-average-excluding-the-2-biggest-values/m-p/1683121#M727871</link>
      <description>&lt;P&gt;Hello, I have a list of incidents with a duration and i would like to make an average but excluding the 2% biggest values&lt;/P&gt;&lt;P&gt;for example i have :&lt;/P&gt;&lt;P&gt;duration / in scope&lt;/P&gt;&lt;P&gt;100 1&lt;/P&gt;&lt;P&gt;50 1&lt;/P&gt;&lt;P&gt;1000 1&lt;/P&gt;&lt;P&gt;3 0&lt;/P&gt;&lt;P&gt;3000 0&lt;/P&gt;&lt;P&gt;and i make a sum(duration) / sum(scope)&lt;/P&gt;&lt;P&gt;but i want to exclude the 2% biggest values of duration. How can I do ?&amp;nbsp; &amp;nbsp;If i remove the 3000 I also need to take into account that it was 0 in scope .. I presume i can do it with a aggr but i can't find&lt;/P&gt;&lt;P&gt;Thanks in advance&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-make-an-average-excluding-the-2-biggest-values/m-p/1683121#M727871</guid>
      <dc:creator>fredericvillemi</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to make an average excluding the 2% biggest values ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-make-an-average-excluding-the-2-biggest-values/m-p/1683343#M727872</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;For exclude the biggest value in the average calculation, you can use (i suppose you have a key field) :&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=sum({&amp;lt;Key-={"=sum(Duration)=max(TOTAL Duration)"} &amp;gt;} Duration) / sum({&amp;lt;Key-={"=sum(Duration)=max(TOTAL Duration)"} &amp;gt;} Scope)&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 10 Mar 2020 14:40:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-make-an-average-excluding-the-2-biggest-values/m-p/1683343#M727872</guid>
      <dc:creator>sergio0592</dc:creator>
      <dc:date>2020-03-10T14:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to make an average excluding the 2% biggest values ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-make-an-average-excluding-the-2-biggest-values/m-p/1687039#M727873</link>
      <description>&lt;P&gt;I think my case is more complicated. Your example works in the example i had given but i can't make it work in a more complicated version.&lt;/P&gt;&lt;P&gt;I have a list of incidents (with unique ids) and i want to make the average duration of incidents only if they don't belong to the 2% longest of the Month.&lt;/P&gt;&lt;P&gt;I have managed to do something by precalculating the fractile(0.98) of the month but i don't see how to do without precalculation ..&lt;/P&gt;</description>
      <pubDate>Mon, 23 Mar 2020 16:07:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-make-an-average-excluding-the-2-biggest-values/m-p/1687039#M727873</guid>
      <dc:creator>fredericvillemi</dc:creator>
      <dc:date>2020-03-23T16:07:20Z</dc:date>
    </item>
  </channel>
</rss>

