<?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: Rank Aggr issue (Top impact) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Rank-Aggr-issue-Top-impact/m-p/1388513#M422536</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here are two expressions based on my understanding of your requirement.... These will work when a week is selected&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) &lt;STRONG&gt;=If(Rank(Only(TOTAL Aggr(If(Rank(fabs(Impact)) = 1, Sign(Impact)), ProductArea))*Impact) &amp;lt; 4, Impact)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) &lt;STRONG&gt;Only({&amp;lt;ProductArea = {"=Rank(Only(TOTAL Aggr(If(Rank(fabs(Impact)) = 1, Sign(Impact)), ProductArea))*Impact) &amp;lt; 4"}&amp;gt;}Impact)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Nov 2017 11:51:34 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-11-20T11:51:34Z</dc:date>
    <item>
      <title>Rank Aggr issue (Top impact)</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Aggr-issue-Top-impact/m-p/1388510#M422533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 10pt;"&gt;&lt;SPAN style="; color: #000000; font-family: Verdana; font-weight: normal;"&gt;&lt;STRONG&gt;Hi, &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 10pt;"&gt;&lt;SPAN style="; color: #000000; font-family: Verdana; font-weight: normal;"&gt;&lt;STRONG&gt;I'm in need of some help. I have a Straight table that shows Gross Margin impact this year compared to last in percent by product area. The Expression is a sum aggr on one dimension. My problem is that I want to show the top 3 Impact based on if the negative Impact is the biggest then I want the top 3 negative Impact to be shown and if the positive is the biggest I want the 3 top positive to show. Needs to be dynamical, the result can be different on different weeks. I tried the Rank function but haven’t got it to work. I past some example, How the table could look and what I want it to show. &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="183221" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/183221_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt; &lt;IMG __jive_id="183222" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/183222_pastedImage_1.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ellinor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Nov 2017 14:01:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Aggr-issue-Top-impact/m-p/1388510#M422533</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-14T14:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Aggr issue (Top impact)</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Aggr-issue-Top-impact/m-p/1388511#M422534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps this?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;[Product Area] = {"=Rank(Sum(Impact)) &amp;lt;= 3)"}, Week = {'$(=Max(Week))'}&amp;gt;} Impact)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2017 03:29:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Aggr-issue-Top-impact/m-p/1388511#M422534</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-11-20T03:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Aggr issue (Top impact)</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Aggr-issue-Top-impact/m-p/1388512#M422535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;&lt;STRONG style="color: #000000; font-family: Verdana; font-size: 10pt;"&gt;My problem is that I want to show the top 3 Impact based on if the negative Impact is the biggest then I want the top 3 negative Impact to be shown and if the positive is the biggest I want the 3 top positive to show.&lt;/STRONG&gt;&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Based on the data you have provided, can you explain what do you mean by biggest negative and biggest positive impact here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2017 11:35:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Aggr-issue-Top-impact/m-p/1388512#M422535</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-11-20T11:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Aggr issue (Top impact)</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Aggr-issue-Top-impact/m-p/1388513#M422536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here are two expressions based on my understanding of your requirement.... These will work when a week is selected&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) &lt;STRONG&gt;=If(Rank(Only(TOTAL Aggr(If(Rank(fabs(Impact)) = 1, Sign(Impact)), ProductArea))*Impact) &amp;lt; 4, Impact)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) &lt;STRONG&gt;Only({&amp;lt;ProductArea = {"=Rank(Only(TOTAL Aggr(If(Rank(fabs(Impact)) = 1, Sign(Impact)), ProductArea))*Impact) &amp;lt; 4"}&amp;gt;}Impact)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2017 11:51:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Aggr-issue-Top-impact/m-p/1388513#M422536</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-11-20T11:51:34Z</dc:date>
    </item>
  </channel>
</rss>

