<?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 Cumulative categories in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Cumulative-categories/m-p/238984#M89717</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stephen&lt;/P&gt;&lt;P&gt;Thanks for the feedback. I would like this to be dynamic as I would like to see which products is category A,B or C depending on the date range I select.&lt;/P&gt;&lt;P&gt;I copied your dimension into my model. The result is that all my categories are category 3.&lt;/P&gt;&lt;P&gt;This is the expression I use to get TOTAL VOLUME:&lt;/P&gt;&lt;P style="font-style: italic"&gt;&lt;/P&gt;&lt;P style="font-style: italic"&gt;&lt;/P&gt;&lt;P style="font-style: italic"&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;({$&amp;lt;InvntItem = {&lt;B&gt;&lt;I&gt;$(='Y')&lt;/I&gt;&lt;/B&gt;}&amp;gt;}(INVQuantity*PackSize))&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;sum&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;({$&amp;lt;InvntItem = {&lt;B&gt;&lt;I&gt;$(='Y')&lt;/I&gt;&lt;/B&gt;}&amp;gt;}(CNQuantity*PackSize))&lt;/P&gt;&lt;P&gt;+&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;sum&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;({$&amp;lt;InvntItem = {&lt;B&gt;&lt;I&gt;$(='Y')&lt;/I&gt;&lt;/B&gt;}&amp;gt;}(DRUNINVQuantity*PackSize))&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;sum&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;({$&amp;lt;InvntItem = {&lt;B&gt;&lt;I&gt;$(='Y')&lt;/I&gt;&lt;/B&gt;}&amp;gt;}(DRUNCNQuantity*PackSize))&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;This is the ITEM CODE field name: ItemCode&lt;/P&gt;&lt;P&gt;Would you please help me how to incorporate this information into your solution given before?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Mar 2011 11:21:09 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-03-04T11:21:09Z</dc:date>
    <item>
      <title>Cumulative categories</title>
      <link>https://community.qlik.com/t5/QlikView/Cumulative-categories/m-p/238981#M89714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone&lt;/P&gt;&lt;P&gt;You will see attached that I have ItemCodes with a Volume Figure and a Relative %.&lt;/P&gt;&lt;P&gt;I want to place my ItemCodes into 3 categories based on their volumes.&lt;/P&gt;&lt;P&gt;I want the ItemCodes that contribute 70% to TOTAL VOLUME to be category A (0% - 70%).&lt;/P&gt;&lt;P&gt;I want the ItemCodes that contribute 20% to TOTAL VOLUME to be category B (70.1% - 90%).&lt;/P&gt;&lt;P&gt;I want the ItemCodes that contribute 10% to TOTAL VOLUME to be category B (90.1% - 100%).&lt;/P&gt;&lt;P&gt;Do anyone maybe have a way to do this.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2011 09:24:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cumulative-categories/m-p/238981#M89714</guid>
      <dc:creator />
      <dc:date>2011-03-04T09:24:13Z</dc:date>
    </item>
    <item>
      <title>Cumulative categories</title>
      <link>https://community.qlik.com/t5/QlikView/Cumulative-categories/m-p/238982#M89715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;PFA, You data doesnt satify the last two conditions. I hope the attach application is what you are looking for.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2011 10:26:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cumulative-categories/m-p/238982#M89715</guid>
      <dc:creator>deepakk</dc:creator>
      <dc:date>2011-03-04T10:26:33Z</dc:date>
    </item>
    <item>
      <title>Cumulative categories</title>
      <link>https://community.qlik.com/t5/QlikView/Cumulative-categories/m-p/238983#M89716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this something you want in the load script or to be dynamic?&lt;/P&gt;&lt;P&gt;You could try a calculated dimension:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(aggr(RangeSum(Above(Sum([TOTAL VOLUME]), 0, RowNo())) / Sum(total [TOTAL VOLUME]),[ITEM CODE]) &amp;lt;= .7, 'Category1', if(aggr(RangeSum(Above(Sum([TOTAL VOLUME]), 0, RowNo())) / Sum(total [TOTAL VOLUME]),[ITEM CODE]) &amp;lt;= .9, 'Category2', 'Category3'))&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;Stephen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2011 10:35:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cumulative-categories/m-p/238983#M89716</guid>
      <dc:creator>stephencredmond</dc:creator>
      <dc:date>2011-03-04T10:35:10Z</dc:date>
    </item>
    <item>
      <title>Cumulative categories</title>
      <link>https://community.qlik.com/t5/QlikView/Cumulative-categories/m-p/238984#M89717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stephen&lt;/P&gt;&lt;P&gt;Thanks for the feedback. I would like this to be dynamic as I would like to see which products is category A,B or C depending on the date range I select.&lt;/P&gt;&lt;P&gt;I copied your dimension into my model. The result is that all my categories are category 3.&lt;/P&gt;&lt;P&gt;This is the expression I use to get TOTAL VOLUME:&lt;/P&gt;&lt;P style="font-style: italic"&gt;&lt;/P&gt;&lt;P style="font-style: italic"&gt;&lt;/P&gt;&lt;P style="font-style: italic"&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;({$&amp;lt;InvntItem = {&lt;B&gt;&lt;I&gt;$(='Y')&lt;/I&gt;&lt;/B&gt;}&amp;gt;}(INVQuantity*PackSize))&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;sum&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;({$&amp;lt;InvntItem = {&lt;B&gt;&lt;I&gt;$(='Y')&lt;/I&gt;&lt;/B&gt;}&amp;gt;}(CNQuantity*PackSize))&lt;/P&gt;&lt;P&gt;+&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;sum&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;({$&amp;lt;InvntItem = {&lt;B&gt;&lt;I&gt;$(='Y')&lt;/I&gt;&lt;/B&gt;}&amp;gt;}(DRUNINVQuantity*PackSize))&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;sum&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;({$&amp;lt;InvntItem = {&lt;B&gt;&lt;I&gt;$(='Y')&lt;/I&gt;&lt;/B&gt;}&amp;gt;}(DRUNCNQuantity*PackSize))&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;This is the ITEM CODE field name: ItemCode&lt;/P&gt;&lt;P&gt;Would you please help me how to incorporate this information into your solution given before?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2011 11:21:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cumulative-categories/m-p/238984#M89717</guid>
      <dc:creator />
      <dc:date>2011-03-04T11:21:09Z</dc:date>
    </item>
  </channel>
</rss>

