<?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: Finding lowest actual value which is &amp;gt;= AVG in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Finding-lowest-actual-value-which-is-gt-AVG/m-p/445366#M565520</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The following formula correctly calculates the &amp;gt;Avg problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Min(aggr(if(Min(OrderDays)&amp;gt;avg(total &amp;lt;PartNo&amp;gt; OrderDays),Min(OrderDays)), PartNo, OrderDays ))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Dec 2012 14:44:51 GMT</pubDate>
    <dc:creator>hic</dc:creator>
    <dc:date>2012-12-18T14:44:51Z</dc:date>
    <item>
      <title>Finding lowest actual value which is &gt;= AVG</title>
      <link>https://community.qlik.com/t5/QlikView/Finding-lowest-actual-value-which-is-gt-AVG/m-p/445364#M565518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a simple sheet of order data, including an order number, order date, partno, and order days (time it took to fill order).&amp;nbsp; For each Partno, I display the average numbr of OrderDays and the 90th Percentile for OrderDays.&amp;nbsp; However, I need to also display the lowest OrderDays which is greater than or equal to the Average.&amp;nbsp; I have to do similar for lowest OrderDays &amp;gt;= 90th Percentile.&amp;nbsp; I have tried all kinds of combinations of expressions, sets, conditions, etc. but cannot get an answer.&amp;nbsp; The calculation should always reflect the user's current selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QVW is attached with the data, charts, and desired results.&amp;nbsp; We've tried consultants and searching forums without luck... this seems like it should be so simple in QV.&amp;nbsp; Thanks in advance for any assistance.&lt;/P&gt;&lt;P&gt;Rich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Dec 2012 22:45:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Finding-lowest-actual-value-which-is-gt-AVG/m-p/445364#M565518</guid>
      <dc:creator />
      <dc:date>2012-12-17T22:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: Finding lowest actual value which is &gt;= AVG</title>
      <link>https://community.qlik.com/t5/QlikView/Finding-lowest-actual-value-which-is-gt-AVG/m-p/445365#M565519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The only way I found is to calculate the average and 90th percentile in the script. As long as these kind of metrics don't change too often this is a practical solution. If necessary you could easily generate more x-th percentiles. Once these have been calculated in the script the expressions in the charts are fairly straightforward. See attached qvw.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2012 12:09:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Finding-lowest-actual-value-which-is-gt-AVG/m-p/445365#M565519</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2012-12-18T12:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: Finding lowest actual value which is &gt;= AVG</title>
      <link>https://community.qlik.com/t5/QlikView/Finding-lowest-actual-value-which-is-gt-AVG/m-p/445366#M565520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The following formula correctly calculates the &amp;gt;Avg problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Min(aggr(if(Min(OrderDays)&amp;gt;avg(total &amp;lt;PartNo&amp;gt; OrderDays),Min(OrderDays)), PartNo, OrderDays ))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2012 14:44:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Finding-lowest-actual-value-which-is-gt-AVG/m-p/445366#M565520</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2012-12-18T14:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: Finding lowest actual value which is &gt;= AVG</title>
      <link>https://community.qlik.com/t5/QlikView/Finding-lowest-actual-value-which-is-gt-AVG/m-p/445367#M565522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the info, but the solution has to update real-time based on the user's selection.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2012 15:21:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Finding-lowest-actual-value-which-is-gt-AVG/m-p/445367#M565522</guid>
      <dc:creator />
      <dc:date>2012-12-18T15:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: Finding lowest actual value which is &gt;= AVG</title>
      <link>https://community.qlik.com/t5/QlikView/Finding-lowest-actual-value-which-is-gt-AVG/m-p/445368#M565524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Thank you Henric&lt;/SPAN&gt;, that worked fine for the Average. (better yet, I think I understand it...). I used the same approach using Fractile instead of Average for the 90th Percentile solution and got it to work.&amp;nbsp; It always returned null initially, but when I removed all comments from before &amp;amp; after the expression it worked fine.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;=Min(aggr(if(Min(OrderDays)&amp;gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;fractile(total &amp;lt;PartNo&amp;gt; OrderDays,0.9)&lt;SPAN style="color: #000000;"&gt;, &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;Min(OrderDays)), PartNo, OrderDays ))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thank you again,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Rich&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2012 15:29:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Finding-lowest-actual-value-which-is-gt-AVG/m-p/445368#M565524</guid>
      <dc:creator />
      <dc:date>2012-12-18T15:29:23Z</dc:date>
    </item>
  </channel>
</rss>

