<?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: CALCULATE VALUE FROM RANK SELECTION in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/CALCULATE-VALUE-FROM-RANK-SELECTION/m-p/1407903#M32969</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's right Phillipe but it is working at my end may be some typo or maybe dimension issue there in your chart kidly check this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the expression&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;=&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;SUM( {&amp;lt;Dim1 = {"&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;Rank(SUM (SALES-COST) ) &amp;lt;= 5&lt;/EM&gt;&lt;/STRONG&gt;"}&amp;gt;} SALES-COST)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; /&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; SUM (TOTAL (SALES - COST))&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 21 Oct 2017 16:31:14 GMT</pubDate>
    <dc:creator>its_anandrjs</dc:creator>
    <dc:date>2017-10-21T16:31:14Z</dc:date>
    <item>
      <title>CALCULATE VALUE FROM RANK SELECTION</title>
      <link>https://community.qlik.com/t5/App-Development/CALCULATE-VALUE-FROM-RANK-SELECTION/m-p/1407898#M32964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to calculate the quota of the TOP FIVE sectors for the margin indicator in a KPI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension SECTORS&lt;/P&gt;&lt;P&gt;Measures&amp;nbsp; : SALES&lt;/P&gt;&lt;P&gt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; COST&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and MARGIN = SALES - COST&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so in my KPI i 'm waiting for &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&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;&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SUM( top five (SALES-COST)) / SUM (TOTAL (SALES - COST))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you help me to find the right syntax using RANK ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank's in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Philippe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Oct 2017 07:32:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/CALCULATE-VALUE-FROM-RANK-SELECTION/m-p/1407898#M32964</guid>
      <dc:creator>philgood34</dc:creator>
      <dc:date>2017-10-21T07:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: CALCULATE VALUE FROM RANK SELECTION</title>
      <link>https://community.qlik.com/t5/App-Development/CALCULATE-VALUE-FROM-RANK-SELECTION/m-p/1407899#M32965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try with Rank function for finding top 5 Margin Sales &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;EM&gt;=if( Rank(SUM (SALES-COST) ) &amp;lt;= 5, &lt;STRONG style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-style: inherit;"&gt;SUM (SALES-COST) )&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; /&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;&lt;STRONG style="font-family: inherit; font-style: inherit;"&gt;&amp;nbsp; SUM (TOTAL (SALES - COST))&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Oct 2017 07:59:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/CALCULATE-VALUE-FROM-RANK-SELECTION/m-p/1407899#M32965</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2017-10-21T07:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: CALCULATE VALUE FROM RANK SELECTION</title>
      <link>https://community.qlik.com/t5/App-Development/CALCULATE-VALUE-FROM-RANK-SELECTION/m-p/1407900#M32966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anand&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank's for your answer, but unfortunetly, the result is 100 % (i tested in 2 of my apps )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Philippe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Oct 2017 08:23:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/CALCULATE-VALUE-FROM-RANK-SELECTION/m-p/1407900#M32966</guid>
      <dc:creator>philgood34</dc:creator>
      <dc:date>2017-10-21T08:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: CALCULATE VALUE FROM RANK SELECTION</title>
      <link>https://community.qlik.com/t5/App-Development/CALCULATE-VALUE-FROM-RANK-SELECTION/m-p/1407901#M32967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;as shown below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="RANK1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/180448_RANK1.png" style="height: 409px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the SUM(TOTAL(SALES-COST)) is the total for the top five and not the total of the all selection ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Oct 2017 08:48:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/CALCULATE-VALUE-FROM-RANK-SELECTION/m-p/1407901#M32967</guid>
      <dc:creator>philgood34</dc:creator>
      <dc:date>2017-10-21T08:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: CALCULATE VALUE FROM RANK SELECTION</title>
      <link>https://community.qlik.com/t5/App-Development/CALCULATE-VALUE-FROM-RANK-SELECTION/m-p/1407902#M32968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hI &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I finaly found a correct syntax without "IF" (i didn't understood why IF without THEN in the Anand suggestion ...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so i apply&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum({&amp;lt;SECTORS_LIB = {"=Rank(Sum(SALES-COST))&amp;lt;=2"}&amp;gt;} (SALES-COST))/Sum(TOTAL (SALES-COST))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(see the result below with few changes)&lt;/P&gt;&lt;P&gt;&lt;IMG alt="RANK2.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/180466_RANK2.png" style="height: 396px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Philippe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Oct 2017 14:08:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/CALCULATE-VALUE-FROM-RANK-SELECTION/m-p/1407902#M32968</guid>
      <dc:creator>philgood34</dc:creator>
      <dc:date>2017-10-21T14:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: CALCULATE VALUE FROM RANK SELECTION</title>
      <link>https://community.qlik.com/t5/App-Development/CALCULATE-VALUE-FROM-RANK-SELECTION/m-p/1407903#M32969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's right Phillipe but it is working at my end may be some typo or maybe dimension issue there in your chart kidly check this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the expression&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;=&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;SUM( {&amp;lt;Dim1 = {"&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;Rank(SUM (SALES-COST) ) &amp;lt;= 5&lt;/EM&gt;&lt;/STRONG&gt;"}&amp;gt;} SALES-COST)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; /&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; SUM (TOTAL (SALES - COST))&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Oct 2017 16:31:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/CALCULATE-VALUE-FROM-RANK-SELECTION/m-p/1407903#M32969</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2017-10-21T16:31:14Z</dc:date>
    </item>
  </channel>
</rss>

