<?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: Filter straight table based on nth largest Dimension value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Filter-straight-table-based-on-nth-largest-Dimension-value/m-p/1645615#M594114</link>
    <description>&lt;P&gt;There you go:&lt;/P&gt;&lt;P&gt;In expression, try this:&lt;/P&gt;&lt;P&gt;IF(AGGR(RANK(AGGR(SUM(Value),GroupCode)),GroupCode)=2,sum(if(CY_PY=1, Value)),NULL())&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MC.PNG" style="width: 868px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/23412iFF85B02D926918F4/image-size/large?v=v2&amp;amp;px=999" role="button" title="MC.PNG" alt="MC.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 12 Nov 2019 01:10:05 GMT</pubDate>
    <dc:creator>Arthur_Fong</dc:creator>
    <dc:date>2019-11-12T01:10:05Z</dc:date>
    <item>
      <title>Filter straight table based on nth largest Dimension value</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-straight-table-based-on-nth-largest-Dimension-value/m-p/1645356#M594113</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a Straight Table in QlikView in which I want to display only the nth largest value in a Dimension.&lt;BR /&gt;The dimension I want to evaluate is &lt;STRONG&gt;GroupCode&lt;/STRONG&gt; which I also need to add an if statement to, &lt;STRONG&gt;CY_PY&lt;/STRONG&gt; = 1.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;What I would like to see is for example the second largest GroupCode and its corresponding Expression Value:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;GroupCode&amp;nbsp; &amp;nbsp; &amp;nbsp; GroupCodeName&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Expression Value&lt;/STRONG&gt;&lt;BR /&gt;981&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Name9&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;43 282&lt;/P&gt;&lt;P&gt;My data looks like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lbl2.PNG" style="width: 333px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/23347i9AD9110972046521/image-size/large?v=v2&amp;amp;px=999" role="button" title="lbl2.PNG" alt="lbl2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Using QlikView 11.20 SR18&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;BR /&gt;Anders&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:59:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-straight-table-based-on-nth-largest-Dimension-value/m-p/1645356#M594113</guid>
      <dc:creator>AndersGS</dc:creator>
      <dc:date>2024-11-16T01:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: Filter straight table based on nth largest Dimension value</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-straight-table-based-on-nth-largest-Dimension-value/m-p/1645615#M594114</link>
      <description>&lt;P&gt;There you go:&lt;/P&gt;&lt;P&gt;In expression, try this:&lt;/P&gt;&lt;P&gt;IF(AGGR(RANK(AGGR(SUM(Value),GroupCode)),GroupCode)=2,sum(if(CY_PY=1, Value)),NULL())&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MC.PNG" style="width: 868px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/23412iFF85B02D926918F4/image-size/large?v=v2&amp;amp;px=999" role="button" title="MC.PNG" alt="MC.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2019 01:10:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-straight-table-based-on-nth-largest-Dimension-value/m-p/1645615#M594114</guid>
      <dc:creator>Arthur_Fong</dc:creator>
      <dc:date>2019-11-12T01:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: Filter straight table based on nth largest Dimension value</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-straight-table-based-on-nth-largest-Dimension-value/m-p/1645749#M594115</link>
      <description>&lt;P&gt;Thanks for your suggestion! I have just tried it but doesn't seem to be working. This is what I'm using:&lt;/P&gt;&lt;P&gt;=IF(AGGR(RANK(AGGR(Sum(LAGANTTILLG),GroupCode)),GroupCode)=2,sum(if(CY_PY=1,LAGANTTILLG)),NULL())&lt;/P&gt;&lt;P&gt;The &lt;STRONG&gt;GroupCode&lt;/STRONG&gt; dimension contains both text and numbers, could that be a problem here?&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anders&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2019 10:12:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-straight-table-based-on-nth-largest-Dimension-value/m-p/1645749#M594115</guid>
      <dc:creator>AndersGS</dc:creator>
      <dc:date>2019-11-12T10:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: Filter straight table based on nth largest Dimension value</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-straight-table-based-on-nth-largest-Dimension-value/m-p/1645757#M594116</link>
      <description>&lt;P&gt;You have a sample app?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2019 10:29:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-straight-table-based-on-nth-largest-Dimension-value/m-p/1645757#M594116</guid>
      <dc:creator>Arthur_Fong</dc:creator>
      <dc:date>2019-11-12T10:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: Filter straight table based on nth largest Dimension value</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-straight-table-based-on-nth-largest-Dimension-value/m-p/1645768#M594117</link>
      <description>&lt;P&gt;Here you go&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2019 10:43:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-straight-table-based-on-nth-largest-Dimension-value/m-p/1645768#M594117</guid>
      <dc:creator>AndersGS</dc:creator>
      <dc:date>2019-11-12T10:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: Filter straight table based on nth largest Dimension value</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-straight-table-based-on-nth-largest-Dimension-value/m-p/1645772#M594118</link>
      <description>&lt;P&gt;Sure, here you go!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2019 10:44:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-straight-table-based-on-nth-largest-Dimension-value/m-p/1645772#M594118</guid>
      <dc:creator>AndersGS</dc:creator>
      <dc:date>2019-11-12T10:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: Filter straight table based on nth largest Dimension value</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-straight-table-based-on-nth-largest-Dimension-value/m-p/1645789#M594119</link>
      <description>&lt;P&gt;Try this in your expression:&lt;/P&gt;&lt;P&gt;if(aggr(RANK(AGGR(SUM(if(CY_PY=1,[sum(LAGANTTILLG)])),GroupCode)),GroupCode)=2,sum(if(CY_PY=1,[sum(LAGANTTILLG)])),NULL())&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2019 11:13:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-straight-table-based-on-nth-largest-Dimension-value/m-p/1645789#M594119</guid>
      <dc:creator>Arthur_Fong</dc:creator>
      <dc:date>2019-11-12T11:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: Filter straight table based on nth largest Dimension value</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-straight-table-based-on-nth-largest-Dimension-value/m-p/1645799#M594120</link>
      <description>&lt;P&gt;Works fine, thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2019 11:26:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-straight-table-based-on-nth-largest-Dimension-value/m-p/1645799#M594120</guid>
      <dc:creator>AndersGS</dc:creator>
      <dc:date>2019-11-12T11:26:53Z</dc:date>
    </item>
  </channel>
</rss>

