<?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 Find minimum &amp;max ranked to use in text box in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Find-minimum-max-ranked-to-use-in-text-box/m-p/560277#M482552</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Below is a table of data that I've loade in to a QVW:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="44953" class="jive-image-thumbnail jive-image" onclick="" alt="RankExample.png" src="https://community.qlik.com/legacyfs/online/44953_RankExample.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to have a couple of text boxes showing various peices of info - namely, the top ranked 'Branch', with it's 'GP', and the other two fields - each in it's own text box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In addition, I'll need the lowest ranked 'Branch', and it's associated fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've got an expression using Rank() to pick the highest ranked Branch, but I'm not sure how to pick the lowest (based on GP or $ Increase):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=aggr(if(rank(sum({1&amp;lt;PeriodYear = {2013}&amp;gt;} GP))&amp;lt;=1,Branch),Branch)&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;S.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;﻿﻿&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Aug 2013 19:46:12 GMT</pubDate>
    <dc:creator>sstenglerbcm</dc:creator>
    <dc:date>2013-08-05T19:46:12Z</dc:date>
    <item>
      <title>Find minimum &amp;max ranked to use in text box</title>
      <link>https://community.qlik.com/t5/QlikView/Find-minimum-max-ranked-to-use-in-text-box/m-p/560277#M482552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Below is a table of data that I've loade in to a QVW:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="44953" class="jive-image-thumbnail jive-image" onclick="" alt="RankExample.png" src="https://community.qlik.com/legacyfs/online/44953_RankExample.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to have a couple of text boxes showing various peices of info - namely, the top ranked 'Branch', with it's 'GP', and the other two fields - each in it's own text box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In addition, I'll need the lowest ranked 'Branch', and it's associated fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've got an expression using Rank() to pick the highest ranked Branch, but I'm not sure how to pick the lowest (based on GP or $ Increase):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=aggr(if(rank(sum({1&amp;lt;PeriodYear = {2013}&amp;gt;} GP))&amp;lt;=1,Branch),Branch)&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;S.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;﻿﻿&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Aug 2013 19:46:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-minimum-max-ranked-to-use-in-text-box/m-p/560277#M482552</guid>
      <dc:creator>sstenglerbcm</dc:creator>
      <dc:date>2013-08-05T19:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: Find minimum &amp;max ranked to use in text box</title>
      <link>https://community.qlik.com/t5/QlikView/Find-minimum-max-ranked-to-use-in-text-box/m-p/560278#M482553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;=aggr(if(-rank(sum({1&amp;lt;PeriodYear = {2013}&amp;gt;} GP))&amp;lt;=1,Branch),Branch)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Aug 2013 20:04:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-minimum-max-ranked-to-use-in-text-box/m-p/560278#M482553</guid>
      <dc:creator>jjordaan</dc:creator>
      <dc:date>2013-08-05T20:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: Find minimum &amp;max ranked to use in text box</title>
      <link>https://community.qlik.com/t5/QlikView/Find-minimum-max-ranked-to-use-in-text-box/m-p/560279#M482554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jeroen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks, I'll try it - one other question - can this expression be used as part of a set analysis expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Such as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;Branch = aggr(if(-rank(sum({1&amp;lt;PeriodYear = {2013}&amp;gt;} GP))&amp;lt;=1,Branch),Branch)&amp;gt;} $ Increase)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Aug 2013 20:44:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-minimum-max-ranked-to-use-in-text-box/m-p/560279#M482554</guid>
      <dc:creator>sstenglerbcm</dc:creator>
      <dc:date>2013-08-05T20:44:05Z</dc:date>
    </item>
    <item>
      <title>Re: Find minimum &amp;max ranked to use in text box</title>
      <link>https://community.qlik.com/t5/QlikView/Find-minimum-max-ranked-to-use-in-text-box/m-p/560280#M482555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, putting a minus sign in front of Rank()&amp;nbsp; didn't work - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;S.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Aug 2013 20:46:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-minimum-max-ranked-to-use-in-text-box/m-p/560280#M482555</guid>
      <dc:creator>sstenglerbcm</dc:creator>
      <dc:date>2013-08-05T20:46:51Z</dc:date>
    </item>
    <item>
      <title>Re: Find minimum &amp;max ranked to use in text box</title>
      <link>https://community.qlik.com/t5/QlikView/Find-minimum-max-ranked-to-use-in-text-box/m-p/560281#M482556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;However, putting a minus in from of sum() did, somewhat. But because I have three Branches that have $0.00 GP, I don't get anything displayed in the text field unless I do a CONCAT().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll have to see if I can use the expression for $ Increase and% Increase...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;S.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Aug 2013 20:55:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-minimum-max-ranked-to-use-in-text-box/m-p/560281#M482556</guid>
      <dc:creator>sstenglerbcm</dc:creator>
      <dc:date>2013-08-05T20:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: Find minimum &amp;max ranked to use in text box</title>
      <link>https://community.qlik.com/t5/QlikView/Find-minimum-max-ranked-to-use-in-text-box/m-p/560282#M482557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try negating the sum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And for your other question:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;=sum({&amp;lt;Branch = {"=rank(sum({1&amp;lt;PeriodYear = {2013} &amp;gt;} GP)=1"} &amp;gt;} [$ Increase])&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Aug 2013 20:58:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-minimum-max-ranked-to-use-in-text-box/m-p/560282#M482557</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-08-05T20:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: Find minimum &amp;max ranked to use in text box</title>
      <link>https://community.qlik.com/t5/QlikView/Find-minimum-max-ranked-to-use-in-text-box/m-p/560283#M482558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry Swuehl was wright. You should negative the Sum and not the Rank.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Aug 2013 21:02:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-minimum-max-ranked-to-use-in-text-box/m-p/560283#M482558</guid>
      <dc:creator>jjordaan</dc:creator>
      <dc:date>2013-08-05T21:02:58Z</dc:date>
    </item>
  </channel>
</rss>

