<?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: Table : Keep only lines with min value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Table-Keep-only-lines-with-min-value/m-p/1461460#M436146</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Min(Aggr(if(RangeSum(Above(sum(ca),0,rowno()))&amp;gt;RangeSum(Above(sum(costs),0,rowno())),(delay)), week, delay))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Jan 2018 14:56:04 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2018-01-09T14:56:04Z</dc:date>
    <item>
      <title>Table : Keep only lines with min value</title>
      <link>https://community.qlik.com/t5/QlikView/Table-Keep-only-lines-with-min-value/m-p/1461459#M436145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this table :&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/189437_Capture.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;And I want to keep in this table only the first line where CA is bigger than Costs for each week (ie yellow lines).&lt;/P&gt;&lt;P&gt;Expected Table :&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture2.JPG" class="jive-image image-2" height="64" src="https://community.qlik.com/legacyfs/online/189439_Capture2.JPG" style="height: 63.6332px; width: 189px;" width="189" /&gt;&lt;/P&gt;&lt;P&gt;Please see attached qlikview document.&lt;/P&gt;&lt;P&gt;I tried with min(), aggr(), firstsortedvalue() functions but I did not manage to get the good results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone helps me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sara&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jan 2018 14:36:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table-Keep-only-lines-with-min-value/m-p/1461459#M436145</guid>
      <dc:creator>sarafamiglietti</dc:creator>
      <dc:date>2018-01-09T14:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: Table : Keep only lines with min value</title>
      <link>https://community.qlik.com/t5/QlikView/Table-Keep-only-lines-with-min-value/m-p/1461460#M436146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Min(Aggr(if(RangeSum(Above(sum(ca),0,rowno()))&amp;gt;RangeSum(Above(sum(costs),0,rowno())),(delay)), week, delay))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jan 2018 14:56:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table-Keep-only-lines-with-min-value/m-p/1461460#M436146</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-01-09T14:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: Table : Keep only lines with min value</title>
      <link>https://community.qlik.com/t5/QlikView/Table-Keep-only-lines-with-min-value/m-p/1461461#M436147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello and thanks for your answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Indeed, It seems that this formula works in my example.&lt;/P&gt;&lt;P&gt;But when I try to integrate this formula in my qlikview documents (which is little more complex), I have not the good results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aggr() function distorts the calculation of &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;RangeSum(Above(sum(ca),0,rowno()))&amp;gt;RangeSum(Above(sum(costs),0,rowno()))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Because aggregation is also applied on &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;RangeSum(Above(sum(ca),0,rowno())) &lt;/STRONG&gt;and&amp;nbsp; &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;RangeSum(Above(sum(costs),0,rowno())) &lt;/STRONG&gt;instead of only delay.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know how to solve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jan 2018 09:48:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table-Keep-only-lines-with-min-value/m-p/1461461#M436147</guid>
      <dc:creator>sarafamiglietti</dc:creator>
      <dc:date>2018-01-10T09:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: Table : Keep only lines with min value</title>
      <link>https://community.qlik.com/t5/QlikView/Table-Keep-only-lines-with-min-value/m-p/1461462#M436148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have QlikView 12 or above? If you do, you can use &lt;A href="https://community.qlik.com/qlik-blogpost/4673"&gt;The sortable Aggr function is finally here!&lt;/A&gt; to sort the order of your Aggr() function. If you don't have QlikView 12, you will need to fix the sorting in the script to make this work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jan 2018 09:50:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table-Keep-only-lines-with-min-value/m-p/1461462#M436148</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-01-10T09:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: Table : Keep only lines with min value</title>
      <link>https://community.qlik.com/t5/QlikView/Table-Keep-only-lines-with-min-value/m-p/1461463#M436149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately, I don't have QLikview 12 right now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On which dimension do I need to sort in order to make this work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jan 2018 15:48:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table-Keep-only-lines-with-min-value/m-p/1461463#M436149</guid>
      <dc:creator>sarafamiglietti</dc:creator>
      <dc:date>2018-01-10T15:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: Table : Keep only lines with min value</title>
      <link>https://community.qlik.com/t5/QlikView/Table-Keep-only-lines-with-min-value/m-p/1461464#M436150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Delay in ascending order.... to do this... you can simply do this at the start of the script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TempDelayTable&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD RowNo() as Delay&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AutoGenerate 100;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and at the very end of the script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DROP Table TempDelayTable;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jan 2018 15:58:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table-Keep-only-lines-with-min-value/m-p/1461464#M436150</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-01-10T15:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: Table : Keep only lines with min value</title>
      <link>https://community.qlik.com/t5/QlikView/Table-Keep-only-lines-with-min-value/m-p/1461465#M436151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't apply this sort because in my script I have delay in week and delay in month.&lt;/P&gt;&lt;P&gt;My example is only on week but I need to apply this formula on month too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I can't sort by delay_week AND delay_month at same time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems impossible to solve.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other idea to help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jan 2018 10:40:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table-Keep-only-lines-with-min-value/m-p/1461465#M436151</guid>
      <dc:creator>sarafamiglietti</dc:creator>
      <dc:date>2018-01-15T10:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: Table : Keep only lines with min value</title>
      <link>https://community.qlik.com/t5/QlikView/Table-Keep-only-lines-with-min-value/m-p/1461466#M436152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't really understand what you mean? Why can't you sort by delay_week and delay_month at the same time? Would you be able to elaborate?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jan 2018 12:37:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table-Keep-only-lines-with-min-value/m-p/1461466#M436152</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-01-15T12:37:51Z</dc:date>
    </item>
    <item>
      <title>Re: Table : Keep only lines with min value</title>
      <link>https://community.qlik.com/t5/QlikView/Table-Keep-only-lines-with-min-value/m-p/1461467#M436153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I sort by delay_week and delay_month in the script I will have something like this:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture4.JPG" class="jive-image image-1" height="235" src="https://community.qlik.com/legacyfs/online/190106_Capture4.JPG" style="height: 235px; width: 162.28px;" width="162" /&gt;&lt;/P&gt;&lt;P&gt;So delay_month is not sorted&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jan 2018 12:55:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table-Keep-only-lines-with-min-value/m-p/1461467#M436153</guid>
      <dc:creator>sarafamiglietti</dc:creator>
      <dc:date>2018-01-15T12:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: Table : Keep only lines with min value</title>
      <link>https://community.qlik.com/t5/QlikView/Table-Keep-only-lines-with-min-value/m-p/1461468#M436154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But where did delay_month and delay_week came from? Weren't we only dealing with delay? Can you please provide a better explanation of your problem with a sample which demonstrate what you really have? Because the lesser you give me, the more time it will take us to resolve this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jan 2018 13:04:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table-Keep-only-lines-with-min-value/m-p/1461468#M436154</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-01-15T13:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: Table : Keep only lines with min value</title>
      <link>https://community.qlik.com/t5/QlikView/Table-Keep-only-lines-with-min-value/m-p/1461469#M436155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm sorry. &lt;/P&gt;&lt;P&gt;I thought my example would suffice but it seems to be a little bit more complicated &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's very hard to explain my problem and I cant provide you my complete Qlikview document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally, I have downloaded Qlikview 12.&lt;/P&gt;&lt;P&gt;What would be the formula to use with the new aggr function?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2018 09:58:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table-Keep-only-lines-with-min-value/m-p/1461469#M436155</guid>
      <dc:creator>sarafamiglietti</dc:creator>
      <dc:date>2018-01-22T09:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: Table : Keep only lines with min value</title>
      <link>https://community.qlik.com/t5/QlikView/Table-Keep-only-lines-with-min-value/m-p/1461470#M436156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Min(Aggr(if(RangeSum(Above(sum(ca),0,rowno()))&amp;gt;RangeSum(Above(sum(costs),0,rowno())),(delay)), week, (delay, (NUMERIC))))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2018 10:17:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table-Keep-only-lines-with-min-value/m-p/1461470#M436156</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-01-22T10:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: Table : Keep only lines with min value</title>
      <link>https://community.qlik.com/t5/QlikView/Table-Keep-only-lines-with-min-value/m-p/1461471#M436157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great! It works!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2018 10:24:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table-Keep-only-lines-with-min-value/m-p/1461471#M436157</guid>
      <dc:creator>sarafamiglietti</dc:creator>
      <dc:date>2018-01-22T10:24:26Z</dc:date>
    </item>
  </channel>
</rss>

