<?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: Problems with my sum(AGGR functions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problems-with-my-sum-AGGR-functions/m-p/82079#M13495</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, so now to take this one step further : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of saying Big clients &amp;gt;=200, Small clients are &amp;lt;50 kg.&amp;nbsp; How can I make it so that Big clients are the top 20% of the total volume, the small clients are the bottom 50% and the medium clients are everyone else in the middle ?&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I make an aggr statement with this ?&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should I try with dimension limits (but then do I need to create three identical dimensions where I set one limit as top 20%, one limit as bottom 50% and then the rest ?&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Feb 2018 10:37:53 GMT</pubDate>
    <dc:creator>leenlart</dc:creator>
    <dc:date>2018-02-12T10:37:53Z</dc:date>
    <item>
      <title>Problems with my sum(AGGR functions</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-my-sum-AGGR-functions/m-p/82076#M13492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table in my app that calculates the Constant Clients (ordered last year and this year), the Gained clients (No order last year) and the Lost Clients (No order this year).&amp;nbsp; I am trying to create a summary table of the number of clients and the volume for each client type. &lt;/P&gt;&lt;P&gt;Then I need a summary table for each client type that breaks it down into : Big Clients (&amp;gt;= 200 kg ordered), Medium clients (&amp;gt;=50 and &amp;lt;200) and Small clients (&amp;lt;50).&amp;nbsp; In the second summary table, I need to show Volume and count for Big, Medium and Small for Constants, Gained and Lost clients. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven't figured out a way to create a table to do this summary table, so I've been working on text boxes for each value. &lt;/P&gt;&lt;P&gt;I seem to have some sort of problem with the calculation of the Big Volume for each client type.&amp;nbsp; This comes out bigger than what I find when I use the table with all the clients and a column per expression. &lt;/P&gt;&lt;P&gt;Attached is a sample of my qdw. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have any ideas that could help with this? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Feb 2018 16:59:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-my-sum-AGGR-functions/m-p/82076#M13492</guid>
      <dc:creator>leenlart</dc:creator>
      <dc:date>2018-02-09T16:59:08Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with my sum(AGGR functions</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-my-sum-AGGR-functions/m-p/82077#M13493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried creating calculated dimensions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Category = &lt;/P&gt;&lt;P&gt;=Aggr(if ( (Sum({&amp;lt;TYPE_CALENDRIER={'YTD CAL'}&amp;gt;}fp_poids) &amp;gt; 0 and Sum({&amp;lt;TYPE_CALENDRIER={'YTD CAL N-1'}&amp;gt;}fp_poids) = 0),'Conquetes',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (if ( (Sum({&amp;lt;TYPE_CALENDRIER={'YTD CAL'}&amp;gt;}fp_poids) &amp;gt; 0 and Sum({&amp;lt;TYPE_CALENDRIER={'YTD CAL N-1'}&amp;gt;}fp_poids) &amp;gt; 0),&amp;nbsp; 'Constants',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Perdus'))),fp_poids)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Size = &lt;/P&gt;&lt;P&gt;=Aggr(if(sum({&amp;lt;TYPE_CALENDRIER={'YTD CAL','YTD CAL N-1'}&amp;gt;} fp_poids) &amp;gt;= 200,'Large',&lt;/P&gt;&lt;P&gt;If (sum({&amp;lt;TYPE_CALENDRIER={'YTD CAL','YTD CAL N-1'}&amp;gt;} fp_poids) &amp;gt;= 50 and sum({&amp;lt;TYPE_CALENDRIER={'YTD CAL','YTD CAL N-1'}&amp;gt;} fp_poids) &amp;lt; 200,'Medium','Small')),fp_poids)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Groups.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/193022_Groups.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Feb 2018 22:12:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-my-sum-AGGR-functions/m-p/82077#M13493</guid>
      <dc:creator>jwjackso</dc:creator>
      <dc:date>2018-02-09T22:12:02Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with my sum(AGGR functions</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-my-sum-AGGR-functions/m-p/82078#M13494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah ha!!&amp;nbsp; &lt;/P&gt;&lt;P&gt;I had tried but not gotten the syntaxe correct I guess.&amp;nbsp; But your solution really helps!&amp;nbsp; &lt;/P&gt;&lt;P&gt;Thanks!!&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2018 09:09:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-my-sum-AGGR-functions/m-p/82078#M13494</guid>
      <dc:creator>leenlart</dc:creator>
      <dc:date>2018-02-12T09:09:58Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with my sum(AGGR functions</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-my-sum-AGGR-functions/m-p/82079#M13495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, so now to take this one step further : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of saying Big clients &amp;gt;=200, Small clients are &amp;lt;50 kg.&amp;nbsp; How can I make it so that Big clients are the top 20% of the total volume, the small clients are the bottom 50% and the medium clients are everyone else in the middle ?&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I make an aggr statement with this ?&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should I try with dimension limits (but then do I need to create three identical dimensions where I set one limit as top 20%, one limit as bottom 50% and then the rest ?&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2018 10:37:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-my-sum-AGGR-functions/m-p/82079#M13495</guid>
      <dc:creator>leenlart</dc:creator>
      <dc:date>2018-02-12T10:37:53Z</dc:date>
    </item>
  </channel>
</rss>

