<?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: Calculating Top N values but excluding rows based on other columns conditions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculating-Top-N-values-but-excluding-rows-based-on-other/m-p/1255460#M396797</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hi All,&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;thanks for the reply,&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;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;For top 20 records.&lt;/SPAN&gt;&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;=aggr(if(rank((sum(ForecastReserve) - Sum(ActualReserve)))&amp;lt;=20,[Dim SellRep]),[Dim CustNo])&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;I need to show only those records where sum(Openamount)&amp;gt;0&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;Can you please suggest how should i modify the expression.&lt;/P&gt;&lt;P&gt;&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;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Jan 2017 05:24:34 GMT</pubDate>
    <dc:creator>deepakqlikview_123</dc:creator>
    <dc:date>2017-01-31T05:24:34Z</dc:date>
    <item>
      <title>Calculating Top N values but excluding rows based on other columns conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Top-N-values-but-excluding-rows-based-on-other/m-p/1255456#M396793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PFA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to find out Top 5 names based on Num column value but if value in value column is negative I need to skip that row and find out Top 5 names based on num column&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For eg-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;based on my data &lt;SPAN style="font-size: 13.3333px;"&gt;my values&lt;/SPAN&gt; top 5&amp;nbsp; based in num col is 10,40,7,6,5 but&lt;/P&gt;&lt;P&gt;40 and 5 has negative vaues assigned in column value that is -5 so i need to skip whole row so that my top 5 values would be &lt;/P&gt;&lt;P&gt;10,2,3,6,7&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please suggest how to proceed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2017 09:52:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Top-N-values-but-excluding-rows-based-on-other/m-p/1255456#M396793</guid>
      <dc:creator>deepakqlikview_123</dc:creator>
      <dc:date>2017-01-30T09:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Top N values but excluding rows based on other columns conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Top-N-values-but-excluding-rows-based-on-other/m-p/1255457#M396794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;if(Value&amp;gt;0,Rank(Num,1,1))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff9900;"&gt;AGGR(rank(if(Value&amp;gt;0,Num),1,1),Name)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2017 10:04:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Top-N-values-but-excluding-rows-based-on-other/m-p/1255457#M396794</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2017-01-30T10:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Top N values but excluding rows based on other columns conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Top-N-values-but-excluding-rows-based-on-other/m-p/1255458#M396795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Name={"=Rank(Sum({&amp;lt;Value={'&amp;gt;=0'}&amp;gt;}Num))&amp;lt;6"}&amp;gt;}Num)&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/151199_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2017 10:14:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Top-N-values-but-excluding-rows-based-on-other/m-p/1255458#M396795</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2017-01-30T10:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Top N values but excluding rows based on other columns conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Top-N-values-but-excluding-rows-based-on-other/m-p/1255459#M396796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for the reply,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;For top 20 records.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=aggr(if(rank((sum(ForecastReserve) - Sum(ActualReserve)))&amp;lt;=20,[Dim SellRep]),[Dim CustNo])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to show only those records where sum(Openamount)&amp;gt;0 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please suggest how should i modify the expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2017 11:14:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Top-N-values-but-excluding-rows-based-on-other/m-p/1255459#M396796</guid>
      <dc:creator>deepakqlikview_123</dc:creator>
      <dc:date>2017-01-30T11:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Top N values but excluding rows based on other columns conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Top-N-values-but-excluding-rows-based-on-other/m-p/1255460#M396797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hi All,&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;thanks for the reply,&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;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;For top 20 records.&lt;/SPAN&gt;&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;=aggr(if(rank((sum(ForecastReserve) - Sum(ActualReserve)))&amp;lt;=20,[Dim SellRep]),[Dim CustNo])&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;I need to show only those records where sum(Openamount)&amp;gt;0&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;Can you please suggest how should i modify the expression.&lt;/P&gt;&lt;P&gt;&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;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2017 05:24:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Top-N-values-but-excluding-rows-based-on-other/m-p/1255460#M396797</guid>
      <dc:creator>deepakqlikview_123</dc:creator>
      <dc:date>2017-01-31T05:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Top N values but excluding rows based on other columns conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Top-N-values-but-excluding-rows-based-on-other/m-p/1255461#M396798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Hi All,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Please find attached sample app.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I need to avoid the aggregation in expresion but rowno() gives performance issues for larger data sets.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Can you please suggest how should i avoid aggregation.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2017 14:01:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Top-N-values-but-excluding-rows-based-on-other/m-p/1255461#M396798</guid>
      <dc:creator>deepakqlikview_123</dc:creator>
      <dc:date>2017-01-31T14:01:21Z</dc:date>
    </item>
  </channel>
</rss>

