<?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: Kpi problem - need help to find correct formula in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Kpi-problem-need-help-to-find-correct-formula/m-p/1331704#M29068</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;can you try this?&lt;/P&gt;&lt;P&gt;firstsortedvalue( CumulArea, aggr( sum({&amp;lt;YieldCumul&amp;gt;{'90'}&amp;gt;}YieldCumul),FIELDNO))&lt;/P&gt;&lt;P&gt; let me know if it doesn't work and please attach the qvf file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rima&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Jun 2017 09:21:03 GMT</pubDate>
    <dc:creator />
    <dc:date>2017-06-21T09:21:03Z</dc:date>
    <item>
      <title>Kpi problem - need help to find correct formula</title>
      <link>https://community.qlik.com/t5/App-Development/Kpi-problem-need-help-to-find-correct-formula/m-p/1331703#M29067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am facing some problem getting the KPI I want.I need to find the correct formula to get the following KPI:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What is the area with an average yield above 90 ?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my data sample:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="8fed0c28d34c4f959d4177408f838ef0.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/167597_8fed0c28d34c4f959d4177408f838ef0.png" style="height: 422px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;By sorting with the highest yield on the top in a table, and then calculating the cumul yield and area, I find easily the correct answer, which is in this case 124.6. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Does anyone know how to get this value directly in a KPI ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thank you for your help,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Tanguy&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jun 2017 09:02:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Kpi-problem-need-help-to-find-correct-formula/m-p/1331703#M29067</guid>
      <dc:creator />
      <dc:date>2017-06-21T09:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: Kpi problem - need help to find correct formula</title>
      <link>https://community.qlik.com/t5/App-Development/Kpi-problem-need-help-to-find-correct-formula/m-p/1331704#M29068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;can you try this?&lt;/P&gt;&lt;P&gt;firstsortedvalue( CumulArea, aggr( sum({&amp;lt;YieldCumul&amp;gt;{'90'}&amp;gt;}YieldCumul),FIELDNO))&lt;/P&gt;&lt;P&gt; let me know if it doesn't work and please attach the qvf file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rima&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jun 2017 09:21:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Kpi-problem-need-help-to-find-correct-formula/m-p/1331704#M29068</guid>
      <dc:creator />
      <dc:date>2017-06-21T09:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: Kpi problem - need help to find correct formula</title>
      <link>https://community.qlik.com/t5/App-Development/Kpi-problem-need-help-to-find-correct-formula/m-p/1331705#M29069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot make it work as Cumul Area and Cumul Yield are Rangesumabovefunctions calculated in this table.&lt;/P&gt;&lt;P&gt;Please find enclosed the Qvf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other Idea to make it work ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jun 2017 09:51:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Kpi-problem-need-help-to-find-correct-formula/m-p/1331705#M29069</guid>
      <dc:creator />
      <dc:date>2017-06-21T09:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: Kpi problem - need help to find correct formula</title>
      <link>https://community.qlik.com/t5/App-Development/Kpi-problem-need-help-to-find-correct-formula/m-p/1331706#M29070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kindly check the attached qvf file.&lt;/P&gt;&lt;P&gt;Please let me know if it works and mark my answer as correct . &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; &lt;/P&gt;&lt;P&gt;Have a good day!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rima&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jun 2017 10:51:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Kpi-problem-need-help-to-find-correct-formula/m-p/1331706#M29070</guid>
      <dc:creator />
      <dc:date>2017-06-21T10:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: Kpi problem - need help to find correct formula</title>
      <link>https://community.qlik.com/t5/App-Development/Kpi-problem-need-help-to-find-correct-formula/m-p/1331707#M29071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works but when I load new data (at the bottom), the formula does not update even if it should (I tried with a field at 100 yield )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is probably due to the fact that when I loaded the script, the data loaded was in the following order: Fields with the highest yields on top. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea how to fix this ?&lt;/P&gt;&lt;P&gt;Thanks for your help,&lt;/P&gt;&lt;P&gt;Tanguy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jun 2017 12:25:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Kpi-problem-need-help-to-find-correct-formula/m-p/1331707#M29071</guid>
      <dc:creator />
      <dc:date>2017-06-21T12:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: Kpi problem - need help to find correct formula</title>
      <link>https://community.qlik.com/t5/App-Development/Kpi-problem-need-help-to-find-correct-formula/m-p/1331708#M29072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can sort the data by Yield (ascending) from the script and then try to reload it.&lt;/P&gt;&lt;P&gt;I think this will solve the problem. let me know if it doesn't .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;EDIT:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;You can add the Yield field as a new field in the script and then sort it from the script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jun 2017 12:29:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Kpi-problem-need-help-to-find-correct-formula/m-p/1331708#M29072</guid>
      <dc:creator />
      <dc:date>2017-06-21T12:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: Kpi problem - need help to find correct formula</title>
      <link>https://community.qlik.com/t5/App-Development/Kpi-problem-need-help-to-find-correct-formula/m-p/1331709#M29073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;max({&amp;lt;FIELDNO={"=RangeSum(Above(sum(Production),0,RowNo()))/RangeSum(Above(sum([[Area cut]),0,RowNo()))&amp;gt;90"}&amp;gt;}aggr(RangeSum(Above(sum([[Area cut]),0,RowNo())),FIELDNO))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jun 2017 13:15:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Kpi-problem-need-help-to-find-correct-formula/m-p/1331709#M29073</guid>
      <dc:creator>kaanerisen</dc:creator>
      <dc:date>2017-06-21T13:15:44Z</dc:date>
    </item>
    <item>
      <title>Re: Kpi problem - need help to find correct formula</title>
      <link>https://community.qlik.com/t5/App-Development/Kpi-problem-need-help-to-find-correct-formula/m-p/1331710#M29074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you explain to me how to sort it directly from the script ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thxs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jun 2017 13:21:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Kpi-problem-need-help-to-find-correct-formula/m-p/1331710#M29074</guid>
      <dc:creator />
      <dc:date>2017-06-21T13:21:24Z</dc:date>
    </item>
    <item>
      <title>Re: Kpi problem - need help to find correct formula</title>
      <link>https://community.qlik.com/t5/App-Development/Kpi-problem-need-help-to-find-correct-formula/m-p/1331711#M29075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi this works to but same problem as below, &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;when I load new data (at the bottom), the formula does not update even if it should (I tried with a field at 100 yield )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;This is probably due to the fact that when I loaded the script, the data loaded was in the following order: Fields with the highest yields on top.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jun 2017 13:22:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Kpi-problem-need-help-to-find-correct-formula/m-p/1331711#M29075</guid>
      <dc:creator />
      <dc:date>2017-06-21T13:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: Kpi problem - need help to find correct formula</title>
      <link>https://community.qlik.com/t5/App-Development/Kpi-problem-need-help-to-find-correct-formula/m-p/1331712#M29076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try adding this to your script (where test1 is the inline table added)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Test2:&lt;/P&gt;&lt;P&gt;Load *,&lt;/P&gt;&lt;P&gt;[Production]/[Area cut] as Yield&lt;/P&gt;&lt;P&gt;resident test1;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;final:&lt;/P&gt;&lt;P&gt;Load *&lt;/P&gt;&lt;P&gt;resident Test2 order by Yield desc; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table test1;&lt;/P&gt;&lt;P&gt;drop table Test2;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jun 2017 13:48:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Kpi-problem-need-help-to-find-correct-formula/m-p/1331712#M29076</guid>
      <dc:creator />
      <dc:date>2017-06-21T13:48:42Z</dc:date>
    </item>
    <item>
      <title>Re: Kpi problem - need help to find correct formula</title>
      <link>https://community.qlik.com/t5/App-Development/Kpi-problem-need-help-to-find-correct-formula/m-p/1331713#M29077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I does not work, when I add some data, there is no change&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jun 2017 15:31:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Kpi-problem-need-help-to-find-correct-formula/m-p/1331713#M29077</guid>
      <dc:creator />
      <dc:date>2017-06-21T15:31:12Z</dc:date>
    </item>
  </channel>
</rss>

