<?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:Ranking in/with Multiple Set Analysis... in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Ranking-in-with-Multiple-Set-Analysis/m-p/237098#M88203</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, i realized that after i posted... i've since changed it to a dollar sign expansion $.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, specifing to exclude Region does not work. I've also tried taking each one of those set analysis statements and making them individual variables, as i was thinking with so many set analysis' in the equation, Qlikview was getting confused. That didn't work. Then i tried a bunch of permutations on excluding selections, including trying to exclude the field(s) that the original set analysis statements were based off of. That didn't work. Then i was thinking that maybe the object was corrupt, so i re-created it, repeating ALL of my aforementioned troubleshooting steps. That didn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's almost as if Qlikview is completely ignoring the set analysis statement... OR, perhaps there's another way i can Rank all of this? What would be something that would throw this off? Pretty much where i'm at right now is that i have the following equation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;AGGR(NODISTINCT&lt;BR /&gt;{$&amp;lt;&lt;BR /&gt; Region=,&lt;BR /&gt; TerritoryID=&lt;BR /&gt;&amp;gt;}&lt;BR /&gt;RANK(&lt;BR /&gt;-$(vRank1)-&lt;BR /&gt;$(vRank2)-&lt;BR /&gt;$(vRank3)&lt;BR /&gt; ,3,1),TerritoryLinkID)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm just seperating this on different lines for ease of reading ay.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Scott&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 May 2010 22:19:52 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-05-11T22:19:52Z</dc:date>
    <item>
      <title>Ranking in/with Multiple Set Analysis...</title>
      <link>https://community.qlik.com/t5/QlikView/Ranking-in-with-Multiple-Set-Analysis/m-p/237094#M88199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey all, I'm having a bit of a 'go around' with Ranking and Set Analysis. Basically what i'm trying to achieve is a Total Ranking straight table showing reps and regions with a few values and a 'overall rank'.... THEN, i'd like that when i select a region, the table would show the original ranks of the reps, as opposed to re-ranking them 1 to 10 or so forth and so on.&lt;/P&gt;&lt;P&gt;There are a few things that I have to consider:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The "values" are derived from set analysis, and depending on which product it is, it gets multiplied by a specific number (I've already got this working)...&lt;/LI&gt;&lt;LI&gt;There are 3 main products, and the multipliers are different for each (I've already got this working)...&lt;/LI&gt;&lt;LI&gt;There are some other variables that i'm taking into account as well (I've already got this working)...&lt;/LI&gt;&lt;LI&gt;I have 3 seperate tables as well where i have a ranking working fine... but it's this total table that's giving me troubles...&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my code (it works to get me the ranks, but again, does not keep the values if i select a region and shorten the set):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;AGGR(NODISTINCT {&amp;lt;SALESFORCE={'xxx','xxy'}&amp;gt;}&lt;BR /&gt;&lt;BR /&gt;RANK(&lt;BR /&gt;-sum({1&amp;lt;SALESFORCE={'xxx','xxy'},DateKeyCal={$(vMaxGPMMonth)},[PRODUCT NAME]={'XXXX'}&amp;gt;} CALCULATEDRANKFROMSCRIPT) *&lt;BR /&gt;if(SALESFORCE='xxx',.1,&lt;BR /&gt;if(SALESFORCE='xxy',.30)) -&lt;BR /&gt;sum({1&amp;lt;SALESFORCE={'xxx','xxy'},DateKeyCal={$(vMaxGPMMonth)},[PRODUCT NAME]={'XXXX'}&amp;gt;} CALCULATEDRANKFROMSCRIPT) *&lt;BR /&gt;if(SALESFORCE='xxx',.6,&lt;BR /&gt;if(SALESFORCE='xxy',.1)) -&lt;BR /&gt;sum({1&amp;lt;SALESFORCE={'xxx','xxy'},DateKeyCal={$(vMaxGPMMonth)},[PRODUCT NAME]={'XXXX'}&amp;gt;} CALCULATEDRANKFROMSCRIPT) *&lt;BR /&gt;if(SALESFORCE='xxx',.3,&lt;BR /&gt;if(SALESFORCE='xxy',.6))&lt;BR /&gt;,3,1),TerritoryID)&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Scott&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 May 2010 22:14:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ranking-in-with-Multiple-Set-Analysis/m-p/237094#M88199</guid>
      <dc:creator />
      <dc:date>2010-05-10T22:14:19Z</dc:date>
    </item>
    <item>
      <title>Ranking in/with Multiple Set Analysis...</title>
      <link>https://community.qlik.com/t5/QlikView/Ranking-in-with-Multiple-Set-Analysis/m-p/237095#M88200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have i stumped the forums? Or did this post just get too far down the chain? &lt;IMG alt="Wink" src="http://community.qlik.com/emoticons/emotion-5.gif" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 May 2010 14:50:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ranking-in-with-Multiple-Set-Analysis/m-p/237095#M88200</guid>
      <dc:creator />
      <dc:date>2010-05-11T14:50:07Z</dc:date>
    </item>
    <item>
      <title>Ranking in/with Multiple Set Analysis...</title>
      <link>https://community.qlik.com/t5/QlikView/Ranking-in-with-Multiple-Set-Analysis/m-p/237096#M88201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to be most specific with the problem or share your App for understand &lt;IMG alt="Yes" src="http://community.qlik.com/emoticons/emotion-21.gif" /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 May 2010 16:16:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ranking-in-with-Multiple-Set-Analysis/m-p/237096#M88201</guid>
      <dc:creator />
      <dc:date>2010-05-11T16:16:02Z</dc:date>
    </item>
    <item>
      <title>Re:Ranking in/with Multiple Set Analysis...</title>
      <link>https://community.qlik.com/t5/QlikView/Ranking-in-with-Multiple-Set-Analysis/m-p/237097#M88202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Scott&lt;/P&gt;&lt;P&gt;You will need to get the region ignored.&lt;/P&gt;&lt;P&gt;&amp;lt;REGION=, SALESFORCE....&lt;/P&gt;&lt;P&gt;I assume you are aware that by specifying "{1" in your set expression you are ignoring ANY selections.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jürg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 May 2010 17:17:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ranking-in-with-Multiple-Set-Analysis/m-p/237097#M88202</guid>
      <dc:creator />
      <dc:date>2010-05-11T17:17:59Z</dc:date>
    </item>
    <item>
      <title>Re:Ranking in/with Multiple Set Analysis...</title>
      <link>https://community.qlik.com/t5/QlikView/Ranking-in-with-Multiple-Set-Analysis/m-p/237098#M88203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, i realized that after i posted... i've since changed it to a dollar sign expansion $.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, specifing to exclude Region does not work. I've also tried taking each one of those set analysis statements and making them individual variables, as i was thinking with so many set analysis' in the equation, Qlikview was getting confused. That didn't work. Then i tried a bunch of permutations on excluding selections, including trying to exclude the field(s) that the original set analysis statements were based off of. That didn't work. Then i was thinking that maybe the object was corrupt, so i re-created it, repeating ALL of my aforementioned troubleshooting steps. That didn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's almost as if Qlikview is completely ignoring the set analysis statement... OR, perhaps there's another way i can Rank all of this? What would be something that would throw this off? Pretty much where i'm at right now is that i have the following equation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;AGGR(NODISTINCT&lt;BR /&gt;{$&amp;lt;&lt;BR /&gt; Region=,&lt;BR /&gt; TerritoryID=&lt;BR /&gt;&amp;gt;}&lt;BR /&gt;RANK(&lt;BR /&gt;-$(vRank1)-&lt;BR /&gt;$(vRank2)-&lt;BR /&gt;$(vRank3)&lt;BR /&gt; ,3,1),TerritoryLinkID)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm just seperating this on different lines for ease of reading ay.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Scott&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 May 2010 22:19:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ranking-in-with-Multiple-Set-Analysis/m-p/237098#M88203</guid>
      <dc:creator />
      <dc:date>2010-05-11T22:19:52Z</dc:date>
    </item>
    <item>
      <title>Re:Ranking in/with Multiple Set Analysis...</title>
      <link>https://community.qlik.com/t5/QlikView/Ranking-in-with-Multiple-Set-Analysis/m-p/237099#M88204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Scott&lt;/P&gt;&lt;P&gt;Looks like you have run quite a few variants on this problem.&lt;/P&gt;&lt;P&gt;Just curious - you are aware that field names are CaSe-SeNsItIvE?&lt;/P&gt;&lt;P&gt;Did you try to create a very basic scenario to build upon it? If so, can you share it so we can have a look at what goes wrong.&lt;/P&gt;&lt;P&gt;Ever looked at shared examples from Paul (the one with the +15'000 points?). He makes analyzing easy by providing text boxes with his steps and expectations.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Juerg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 May 2010 11:45:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ranking-in-with-Multiple-Set-Analysis/m-p/237099#M88204</guid>
      <dc:creator />
      <dc:date>2010-05-12T11:45:15Z</dc:date>
    </item>
  </channel>
</rss>

