<?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: Top n as a % of total in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Top-n-as-a-of-total/m-p/31650#M2135</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I really want the calculated %. e.g. not '530/2620' but 20.23%&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Feb 2018 15:43:36 GMT</pubDate>
    <dc:creator>prasadmundewadi</dc:creator>
    <dc:date>2018-02-01T15:43:36Z</dc:date>
    <item>
      <title>Top n as a % of total</title>
      <link>https://community.qlik.com/t5/App-Development/Top-n-as-a-of-total/m-p/31647#M2132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="350" style="width: 339px; height: 355px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD colspan="4" height="20" width="256"&gt;I have data like shown in below table:&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20"&gt;Product&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;"&gt;Oppty&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;"&gt;Value&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;"&gt;SalesRep&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top: none;"&gt;A&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Op1&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;100&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Adam&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top: none;"&gt;A&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Op2&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;130&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Bill&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top: none;"&gt;A&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Op3&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;400&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Paul&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top: none;"&gt;B&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Op4&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;500&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Adam&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top: none;"&gt;B&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Op5&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;200&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Bill&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top: none;"&gt;B&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Op6&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;100&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Paul&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top: none;"&gt;B&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Op7&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;120&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Paul&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top: none;"&gt;C&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Op8&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;150&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Adam&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top: none;"&gt;C&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Op9&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;700&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Bill&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top: none;"&gt;C&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Op10&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;220&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Paul&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" colspan="3" height="20"&gt;Here Sum(value) = 2620&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;I want to get a Pivot table like below in Qlik.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="116" style="width: 422px; height: 75px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" width="64"&gt;Product&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="136"&gt;As % of top 2 of total&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;A&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;530/2620&lt;/TD&gt;&lt;TD&gt;--&amp;gt; derived as (400 + 130) since 400 and 130 are the top 2 values&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;B&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;700/2620&lt;/TD&gt;&lt;TD&gt;--&amp;gt; derived as (500+200)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;C&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;920/2620&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;--&amp;gt; derived as &lt;/SPAN&gt;(700+220)&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i do this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jan 2018 21:54:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Top-n-as-a-of-total/m-p/31647#M2132</guid>
      <dc:creator>prasadmundewadi</dc:creator>
      <dc:date>2018-01-31T21:54:50Z</dc:date>
    </item>
    <item>
      <title>Re: Top n as a % of total</title>
      <link>https://community.qlik.com/t5/App-Development/Top-n-as-a-of-total/m-p/31648#M2133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try these expressions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Text(&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;subfield(concat(total &amp;lt;Product&amp;gt;&amp;nbsp; Value, '-', -Value), '-', 1)+&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;subfield(concat(total &amp;lt;Product&amp;gt;&amp;nbsp; Value, '-', -Value), '-', 2)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;) &amp;amp; '/' &amp;amp; sum(TOTAL Value)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;subfield(concat(total &amp;lt;Product&amp;gt;&amp;nbsp; Value, '-', -Value), '-', 1)+&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;subfield(concat(total &amp;lt;Product&amp;gt;&amp;nbsp; Value, '-', -Value), '-', 2)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;/ sum(TOTAL Value)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/192075_1.png" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jan 2018 22:32:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Top-n-as-a-of-total/m-p/31648#M2133</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2018-01-31T22:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: Top n as a % of total</title>
      <link>https://community.qlik.com/t5/App-Development/Top-n-as-a-of-total/m-p/31649#M2134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks &lt;SPAN style="font-size: 13.3333px;"&gt;this worked for this example.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;(&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;subfield(concat(total &amp;lt;Product&amp;gt;&amp;nbsp; Value, '-', -Value), '-', 1)+&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;subfield(concat(total &amp;lt;Product&amp;gt;&amp;nbsp; Value, '-', -Value), '-', 2)&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;)&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;/ sum(TOTAL Value)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But what I have is: a data set which has about 20000 records and i want to be able to do it&amp;nbsp; for the top 10% of the data. Not top 2 records. So in that case the formula might get very lengthy. Is there a way to do this dynamically instead of adding multiple subfield expressions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Feb 2018 15:14:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Top-n-as-a-of-total/m-p/31649#M2134</guid>
      <dc:creator>prasadmundewadi</dc:creator>
      <dc:date>2018-02-01T15:14:27Z</dc:date>
    </item>
    <item>
      <title>Re: Top n as a % of total</title>
      <link>https://community.qlik.com/t5/App-Development/Top-n-as-a-of-total/m-p/31650#M2135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I really want the calculated %. e.g. not '530/2620' but 20.23%&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Feb 2018 15:43:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Top-n-as-a-of-total/m-p/31650#M2135</guid>
      <dc:creator>prasadmundewadi</dc:creator>
      <dc:date>2018-02-01T15:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: Top n as a % of total</title>
      <link>https://community.qlik.com/t5/App-Development/Top-n-as-a-of-total/m-p/31651#M2136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this is a percentage&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;/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;subfield(concat(total &amp;lt;Product&amp;gt;&amp;nbsp; Value, '-', -Value), '-', 1)+&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;subfield(concat(total &amp;lt;Product&amp;gt;&amp;nbsp; Value, '-', -Value), '-', 2)&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;/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;/ sum(TOTAL Value)&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;BR /&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;BR /&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;if you want to know which products contribute to the first % of the total maybe this can help you&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;A href="https://community.qlik.com/qlik-blogpost/5065"&gt;Recipe for a Pareto Analysis – Revisited&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Feb 2018 15:48:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Top-n-as-a-of-total/m-p/31651#M2136</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2018-02-01T15:48:16Z</dc:date>
    </item>
  </channel>
</rss>

