<?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: Aggregate sum in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggregate-sum/m-p/672613#M475612</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another way of doing the same is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T1:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CLIENT, EMPLOYEE, HOURS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; A, Peter, 10&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; B, Bill, 12&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; B, Rick, 15&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; C, Judy, 32&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; C, Betty, 80&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; C, Betty, 77&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; C, Betty, 22&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; C, Bill, 90&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; D, Ana, 44&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; E, Ryan, 65&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Final:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;CLIENT, &lt;/P&gt;&lt;P&gt;Sum( if(CLIENT='A', HOURS)) as TotA,&lt;/P&gt;&lt;P&gt;Sum( if(CLIENT='B', HOURS)) as TotB,&lt;/P&gt;&lt;P&gt;Sum( if(CLIENT='C', HOURS)) as TotC,&lt;/P&gt;&lt;P&gt;Sum( if(CLIENT='D', HOURS)) as TotD,&lt;/P&gt;&lt;P&gt;Sum( if(CLIENT='E', HOURS)) as TotE&lt;/P&gt;&lt;P&gt;Resident T1&lt;/P&gt;&lt;P&gt;Group By CLIENT;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then plot values of the Final table as in any table box or straight tables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Jul 2014 19:03:24 GMT</pubDate>
    <dc:creator>its_anandrjs</dc:creator>
    <dc:date>2014-07-14T19:03:24Z</dc:date>
    <item>
      <title>Aggregate sum</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-sum/m-p/672610#M475609</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;Based on the attached table 1, I want to create table 2 in QlikView. Can any body give me a hint?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Wossen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two tables as it shown on the attachment (Plan Time.xls). One is for Actual time table that shows hours for different employee who spent their time on different clients. The second one is the Plan time table. I was trying to show on QlikView exactly what it has shown as Plan Vs. Actual table. I use the expression 'Aggr(Sum(Hours), Client='A' , Employee)' for Actual time and 'Aggr(Sum(A), Employee' for Plan time and this works well for&amp;nbsp; some of employee but not for all. For example for employee Peter I get 90 Hrs under the 'Actual A' column which is correct, but for the rest of employee it gives me the total value of 642 instead of zero. And the result is the same under 'Plan A' column as well. I get 100 Hrs for Peter and instead of zero for the rest of employees, it gives me the total value of 690. &lt;/P&gt;&lt;P&gt;I used Employee for Dimensions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody please advise me what I missed here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Wossen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jul 2014 18:26:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-sum/m-p/672610#M475609</guid>
      <dc:creator>wossenhh</dc:creator>
      <dc:date>2014-07-14T18:26:28Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate sum</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-sum/m-p/672611#M475610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi basically you look at a pivot table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;have a look at the attach example &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jul 2014 18:53:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-sum/m-p/672611#M475610</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2014-07-14T18:53:03Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate sum</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-sum/m-p/672612#M475611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a new Pivot Table chart. Use &lt;STRONG&gt;Employee&lt;/STRONG&gt; and &lt;STRONG&gt;Client&lt;/STRONG&gt; as your Dimensions (in that order). Use &lt;STRONG&gt;SUM(Hours)&lt;/STRONG&gt; as your expression. Then press OK. Expand the Client tab in your chart and drag the Client title so that it is shown horizontally. That should get you pretty close.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jul 2014 18:58:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-sum/m-p/672612#M475611</guid>
      <dc:creator>TKendrick20</dc:creator>
      <dc:date>2014-07-14T18:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate sum</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-sum/m-p/672613#M475612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another way of doing the same is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T1:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CLIENT, EMPLOYEE, HOURS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; A, Peter, 10&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; B, Bill, 12&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; B, Rick, 15&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; C, Judy, 32&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; C, Betty, 80&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; C, Betty, 77&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; C, Betty, 22&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; C, Bill, 90&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; D, Ana, 44&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; E, Ryan, 65&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Final:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;CLIENT, &lt;/P&gt;&lt;P&gt;Sum( if(CLIENT='A', HOURS)) as TotA,&lt;/P&gt;&lt;P&gt;Sum( if(CLIENT='B', HOURS)) as TotB,&lt;/P&gt;&lt;P&gt;Sum( if(CLIENT='C', HOURS)) as TotC,&lt;/P&gt;&lt;P&gt;Sum( if(CLIENT='D', HOURS)) as TotD,&lt;/P&gt;&lt;P&gt;Sum( if(CLIENT='E', HOURS)) as TotE&lt;/P&gt;&lt;P&gt;Resident T1&lt;/P&gt;&lt;P&gt;Group By CLIENT;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then plot values of the Final table as in any table box or straight tables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jul 2014 19:03:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-sum/m-p/672613#M475612</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-07-14T19:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate sum</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-sum/m-p/672614#M475613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Anand! It works&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jul 2014 17:51:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-sum/m-p/672614#M475613</guid>
      <dc:creator>wossenhh</dc:creator>
      <dc:date>2014-07-15T17:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate sum</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-sum/m-p/672615#M475614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply and I like the trick to drag the Client title to show horizontally, even though it is hard to get it easily &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;. It is great tips!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jul 2014 17:53:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-sum/m-p/672615#M475614</guid>
      <dc:creator>wossenhh</dc:creator>
      <dc:date>2014-07-15T17:53:47Z</dc:date>
    </item>
  </channel>
</rss>

