<?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 Rangesum Issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Rangesum-Issue/m-p/242033#M92412</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;First, calculate the *** VOLUME % manually with&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;(sum({$}(INVQuantity*PackSize)) - sum({$}(CNQuantity*PackSize)) + sum({$}(DRUNINVQuantity*PackSize)) - sum({$}(DRUNCNQuantity*PackSize))) / (sum({$} TOTAL (INVQuantity*PackSize)) - sum({$} TOTAL (CNQuantity*PackSize)) + sum({$} TOTAL (DRUNINVQuantity*PackSize)) - sum({$} TOTAL (DRUNCNQuantity*PackSize)))&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Although you are using full accumulation, the expression will return a number, so something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;IF([*** VOLUME %] &amp;lt;= .007, 'C', IF([*** VOLUME %] &amp;lt;= .009, 'B', 'A'))&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Should work. That .007 should mean 70%, so you may need to accomodate the value to your needs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Mar 2011 12:40:20 GMT</pubDate>
    <dc:creator>Miguel_Angel_Baeyens</dc:creator>
    <dc:date>2011-03-09T12:40:20Z</dc:date>
    <item>
      <title>Rangesum Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Rangesum-Issue/m-p/242030#M92409</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;Hope you are doing well.&lt;/P&gt;&lt;P&gt;I would be very greatful if someone could help me.&lt;/P&gt;&lt;P&gt;Please see the image.&lt;/P&gt;&lt;P&gt;You will see that there is an [ITEM CODE] dimension and a [TOTAL VOLUME] expression.&lt;/P&gt;&lt;P&gt;The [TOTAL VOLUME %] is just a relative expression of [TOTAL VOLUME] and the [CUM VOLUME %] expression is just the cummulative of [TOTAL VOLUME %].&lt;/P&gt;&lt;P&gt;What I want to do is to place all Item Codes which relate to 70% of Total Volume in category A. All Item Codes which relate to the next 20% in category B and all the rest in category C. In other words, the cumulative % in [CUM VOLUME %] &amp;lt;= 0.7 must be category A, 0.71 - 0.90 must be category B and the rest category C.&lt;/P&gt;&lt;P&gt;Is there a way to do this?&lt;/P&gt;&lt;P&gt;The [TOTAL VOLUME] expression is calculated as follow:&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;BR /&gt;&lt;BR /&gt; &lt;P&gt;sum({$&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({$&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({$&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Mar 2011 10:28:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rangesum-Issue/m-p/242030#M92409</guid>
      <dc:creator />
      <dc:date>2011-03-09T10:28:10Z</dc:date>
    </item>
    <item>
      <title>Rangesum Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Rangesum-Issue/m-p/242031#M92410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Christo,&lt;/P&gt;&lt;P&gt;You can use the expressions you already have to get this done with a new expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;If([*** VOLUME %] &amp;lt;= 0.7, 'A', If([*** VOLUME %] &amp;lt;= 0.9, 'B', 'C'))&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Hope that helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Mar 2011 10:41:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rangesum-Issue/m-p/242031#M92410</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-03-09T10:41:09Z</dc:date>
    </item>
    <item>
      <title>Rangesum Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Rangesum-Issue/m-p/242032#M92411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Miguel&lt;/P&gt;&lt;P&gt;Thank you so much for the feedback.&lt;/P&gt;&lt;P&gt;But I am struggling to do this.&lt;/P&gt;&lt;P&gt;See attached file. Would you please show me how you would do this?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Mar 2011 12:07:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rangesum-Issue/m-p/242032#M92411</guid>
      <dc:creator />
      <dc:date>2011-03-09T12:07:01Z</dc:date>
    </item>
    <item>
      <title>Rangesum Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Rangesum-Issue/m-p/242033#M92412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;First, calculate the *** VOLUME % manually with&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;(sum({$}(INVQuantity*PackSize)) - sum({$}(CNQuantity*PackSize)) + sum({$}(DRUNINVQuantity*PackSize)) - sum({$}(DRUNCNQuantity*PackSize))) / (sum({$} TOTAL (INVQuantity*PackSize)) - sum({$} TOTAL (CNQuantity*PackSize)) + sum({$} TOTAL (DRUNINVQuantity*PackSize)) - sum({$} TOTAL (DRUNCNQuantity*PackSize)))&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Although you are using full accumulation, the expression will return a number, so something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;IF([*** VOLUME %] &amp;lt;= .007, 'C', IF([*** VOLUME %] &amp;lt;= .009, 'B', 'A'))&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Should work. That .007 should mean 70%, so you may need to accomodate the value to your needs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Mar 2011 12:40:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rangesum-Issue/m-p/242033#M92412</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-03-09T12:40:20Z</dc:date>
    </item>
  </channel>
</rss>

