<?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 getting Rankings from 2 Pivot Tables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/getting-Rankings-from-2-Pivot-Tables/m-p/822542#M289974</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I have 2 pivot tables with the ranking of sales, so far so good, now when I click in one ranking position I need to know the same ranking region but from the other area. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this (and is ok):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="C1.PNG" class="jive-image image-6" src="https://community.qlik.com/legacyfs/online/81031_C1.PNG" style="font-size: 13.3333330154419px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, when I click for instance on ranking 1 (yellow) I get this (not ok):&lt;/P&gt;&lt;P&gt;&lt;IMG alt="C2.PNG" class="jive-image image-7" src="https://community.qlik.com/legacyfs/online/81032_C2.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;What I need is this (after I have clicked on rank 1):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="C3.PNG" class="jive-image image-5" src="https://community.qlik.com/legacyfs/online/81028_C3.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;(of course without selecting regions f and a at the same time)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a qvw example to understand better my pb: &lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/servlet/JiveServlet/downloadBody/8143-102-1-11188/getRank.qvw"&gt;http://community.qlik.com/servlet/JiveServlet/downloadBody/8143-102-1-11188/getRank.qvw&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can some one help me, please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance,&lt;/P&gt;&lt;P&gt;CAFC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Mar 2015 18:24:54 GMT</pubDate>
    <dc:creator>cafcptg2011</dc:creator>
    <dc:date>2015-03-17T18:24:54Z</dc:date>
    <item>
      <title>getting Rankings from 2 Pivot Tables</title>
      <link>https://community.qlik.com/t5/QlikView/getting-Rankings-from-2-Pivot-Tables/m-p/822542#M289974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I have 2 pivot tables with the ranking of sales, so far so good, now when I click in one ranking position I need to know the same ranking region but from the other area. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this (and is ok):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="C1.PNG" class="jive-image image-6" src="https://community.qlik.com/legacyfs/online/81031_C1.PNG" style="font-size: 13.3333330154419px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, when I click for instance on ranking 1 (yellow) I get this (not ok):&lt;/P&gt;&lt;P&gt;&lt;IMG alt="C2.PNG" class="jive-image image-7" src="https://community.qlik.com/legacyfs/online/81032_C2.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;What I need is this (after I have clicked on rank 1):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="C3.PNG" class="jive-image image-5" src="https://community.qlik.com/legacyfs/online/81028_C3.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;(of course without selecting regions f and a at the same time)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a qvw example to understand better my pb: &lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/servlet/JiveServlet/downloadBody/8143-102-1-11188/getRank.qvw"&gt;http://community.qlik.com/servlet/JiveServlet/downloadBody/8143-102-1-11188/getRank.qvw&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can some one help me, please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance,&lt;/P&gt;&lt;P&gt;CAFC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2015 18:24:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/getting-Rankings-from-2-Pivot-Tables/m-p/822542#M289974</guid>
      <dc:creator>cafcptg2011</dc:creator>
      <dc:date>2015-03-17T18:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: getting Rankings from 2 Pivot Tables</title>
      <link>https://community.qlik.com/t5/QlikView/getting-Rankings-from-2-Pivot-Tables/m-p/822543#M289975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may need SET ANALYSIS to disregard the Area selection in the 2nd ranking expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(&amp;nbsp; {&amp;lt;Area=&amp;gt;}&amp;nbsp; Sales) ...disregards sales&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set analysis is only valid in chart aggregation functions however, are you using one with your rank() expression ? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2015 23:12:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/getting-Rankings-from-2-Pivot-Tables/m-p/822543#M289975</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2015-03-17T23:12:51Z</dc:date>
    </item>
    <item>
      <title>Re: getting Rankings from 2 Pivot Tables</title>
      <link>https://community.qlik.com/t5/QlikView/getting-Rankings-from-2-Pivot-Tables/m-p/822544#M289976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;thank you very much for your reply...&lt;/P&gt;&lt;P&gt;I have changed my 2nd ranking expression to your expression but unfortunately still doesn't 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, 18 Mar 2015 10:14:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/getting-Rankings-from-2-Pivot-Tables/m-p/822544#M289976</guid>
      <dc:creator>cafcptg2011</dc:creator>
      <dc:date>2015-03-18T10:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: getting Rankings from 2 Pivot Tables</title>
      <link>https://community.qlik.com/t5/QlikView/getting-Rankings-from-2-Pivot-Tables/m-p/822545#M289977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Change thjs: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=concat ( } IF( aggr ( Rank(sum(&amp;nbsp; { &amp;lt; Area ={$(=min(&amp;nbsp; Area))} &amp;gt;&amp;nbsp;&amp;nbsp; }&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sales),4,1),Region)=1, Region ))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=concat ( {&amp;lt;Area=&amp;gt;} IF( aggr ( Rank(sum(&amp;nbsp; { &amp;lt; Area ={$(=min( {1} Area))} &amp;gt;&amp;nbsp;&amp;nbsp; }&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sales),4,1),Region)=1, Region ))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Two changes:&lt;/P&gt;&lt;P&gt;1. Add set modifier in concat() to cancel the Area selection&lt;/P&gt;&lt;P&gt;2. Add global set identifier {1} to ensure the Min Area is done on the global selection, not the user's selection. (you can modify this as well to the following if you want it to 'listen' to other selections besides Area like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=concat ( {&amp;lt;Area=&amp;gt;} IF( aggr ( Rank(sum(&amp;nbsp; { &amp;lt; Area ={$(=min( {&amp;lt;Area=&amp;gt;} Area))} &amp;gt;&amp;nbsp;&amp;nbsp; }&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sales),4,1),Region)=1, Region ))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2015 13:27:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/getting-Rankings-from-2-Pivot-Tables/m-p/822545#M289977</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2015-03-18T13:27:46Z</dc:date>
    </item>
    <item>
      <title>Re: getting Rankings from 2 Pivot Tables</title>
      <link>https://community.qlik.com/t5/QlikView/getting-Rankings-from-2-Pivot-Tables/m-p/822546#M289978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have changed my expression with your expression but still doesn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for instance if I click on rank 3 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="C4.PNG" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/81165_C4.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will get this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="C5.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/81166_C5.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the correct result would be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="C6.PNG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/81188_C6.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;because I have clicked on ranking 3 so it should show regions with ranking 3...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my new qvw file with your expression is here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/servlet/JiveServlet/downloadBody/8145-102-1-11201/getRank2.qvw"&gt;http://community.qlik.com/servlet/JiveServlet/downloadBody/8145-102-1-11201/getRank2.qvw&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cafc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2015 17:13:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/getting-Rankings-from-2-Pivot-Tables/m-p/822546#M289978</guid>
      <dc:creator>cafcptg2011</dc:creator>
      <dc:date>2015-03-18T17:13:19Z</dc:date>
    </item>
    <item>
      <title>Re: getting Rankings from 2 Pivot Tables</title>
      <link>https://community.qlik.com/t5/QlikView/getting-Rankings-from-2-Pivot-Tables/m-p/822547#M289979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Got it. It seems like a complicated ask but probably doable. If i get a chance i'll come back to this. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Mar 2015 01:09:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/getting-Rankings-from-2-Pivot-Tables/m-p/822547#M289979</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2015-03-19T01:09:49Z</dc:date>
    </item>
    <item>
      <title>Re: getting Rankings from 2 Pivot Tables</title>
      <link>https://community.qlik.com/t5/QlikView/getting-Rankings-from-2-Pivot-Tables/m-p/822548#M289980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;I really appreciate that because a I need this to be done.&lt;/P&gt;&lt;P&gt;again thanks very much for your kind help&lt;/P&gt;&lt;P&gt;CAFC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Mar 2015 14:31:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/getting-Rankings-from-2-Pivot-Tables/m-p/822548#M289980</guid>
      <dc:creator>cafcptg2011</dc:creator>
      <dc:date>2015-03-19T14:31:15Z</dc:date>
    </item>
  </channel>
</rss>

