<?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: aggr total problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/aggr-total-problem/m-p/327533#M498551</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try attaching it to your initial post.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Jun 2011 12:36:13 GMT</pubDate>
    <dc:creator>danielrozental</dc:creator>
    <dc:date>2011-06-29T12:36:13Z</dc:date>
    <item>
      <title>aggr total problem</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-total-problem/m-p/327530#M498548</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;I have got a problem with the aggr function. What I need is the following:&lt;/P&gt;&lt;P&gt;I have got three tables as you can see in amge below: &lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;IMG __jive_id="5486" alt="tables.png" class="jive-image-thumbnail jive-image" src="https://community.qlik.com/legacyfs/online/5486_tables.png" width="450" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;When selecting a period from table movvalor1 (Month = January and Year = 2009) I need the following calculated:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;sum(cantidad facturada_MV) = Quantity invoiced ´&lt;UL&gt;&lt;LI&gt;expression 1&amp;nbsp; in simple table: sum([Cantidad facturada_MV])&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;Total cost related from table MOVVAOR2, which calculates the costs (field portes) related to those transactions which are selected. The costs however need to be calculated untill end of the period selected:&amp;nbsp; Sum (portes)&lt;UL&gt;&lt;LI&gt;expression 2&amp;nbsp; in simple table:sum({&amp;lt;[Nº mov_ producto2]=P([Nº mov_ producto]), NºAñoMesMV2= {'&amp;lt;=$(=(max(NºAñoMesMV)))'},NºAñoMesMV, AñoMesMV, AnoMV, MesMV&amp;nbsp; =&amp;gt;}Portes)&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;Total quantity checked related from table MOVVAOR2, which calculates values related to those transactions which are selected. The costs however need to be calculated untill end of the period selected. sum([Cdad_ valorada])&lt;UL&gt;&lt;LI&gt;expression 3&amp;nbsp; in simple table: sum({&amp;lt;Nº mov_ producto2]=P([Nº mov_ producto]), NºAñoMesMV2= {'&amp;lt;=$(=(max(NºAñoMesMV)))'},NºAñoMesMV, AñoMesMV, AnoMV, MesMV&amp;nbsp; =&amp;gt;}[Cdad_ valorada]&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Now the problems start: &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I then need to do the following calculation: (column(2) *column(1))/column(3). This gives me the required result for both lines and totals if I use sum of rows and if I put value entry as a dimension. I need these values as totals. See scrrenshot below. I have tried everything in order to get the totals but none work. &lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas on how to get the totals correct in the three charts??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Let me know if you need more info or if you need the QWV doc to investigate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2011 15:42:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-total-problem/m-p/327530#M498548</guid>
      <dc:creator />
      <dc:date>2011-06-28T15:42:11Z</dc:date>
    </item>
    <item>
      <title>aggr total problem</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-total-problem/m-p/327531#M498549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;QVW file is almost always useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your expression should look something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(Aggr(&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(cantidad facturada_MV)&lt;/P&gt;&lt;P&gt;* &lt;/P&gt;&lt;P&gt;sum({&amp;lt;[Nº mov_ producto2]=P([Nº mov_ producto]), NºAñoMesMV2= {'&amp;lt;=$(=(max(NºAñoMesMV)))'},NºAñoMesMV, AñoMesMV, AnoMV, MesMV&amp;nbsp; =&amp;gt;}Portes)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Nº mov_ producto2]=P([Nº mov_ producto]), NºAñoMesMV2= {'&amp;lt;=$(=(max(NºAñoMesMV)))'},NºAñoMesMV, AñoMesMV, AnoMV, MesMV&amp;nbsp; =&amp;gt;}[Cdad_ valorada])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;, ﻿﻿[N° Cliente], [N° producto])&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With this you force QlikView to do all calculations al product/customer lever and them add it up.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2011 02:09:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-total-problem/m-p/327531#M498549</guid>
      <dc:creator>danielrozental</dc:creator>
      <dc:date>2011-06-29T02:09:35Z</dc:date>
    </item>
    <item>
      <title>Re: aggr total problem</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-total-problem/m-p/327532#M498550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It still doesn´t work however. I had tried similar expressions without luck. Let me know how I can send you the example. &lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2011 07:51:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-total-problem/m-p/327532#M498550</guid>
      <dc:creator />
      <dc:date>2011-06-29T07:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: aggr total problem</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-total-problem/m-p/327533#M498551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try attaching it to your initial post.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2011 12:36:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-total-problem/m-p/327533#M498551</guid>
      <dc:creator>danielrozental</dc:creator>
      <dc:date>2011-06-29T12:36:13Z</dc:date>
    </item>
    <item>
      <title>Re: aggr total problem</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-total-problem/m-p/327534#M498552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here you go.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for the effort.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2011 14:02:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-total-problem/m-p/327534#M498552</guid>
      <dc:creator />
      <dc:date>2011-06-29T14:02:48Z</dc:date>
    </item>
    <item>
      <title>Re: aggr total problem</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-total-problem/m-p/327535#M498553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here you go.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW, just a recommendation, I would avoid using characters like "°" in names, also that many spaces, it makes writing expressions that much more difficult and is more error prone.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also you're using AnoMV as a field in some set analysis expressions while the correct field name is AñoMV.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2011 14:12:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-total-problem/m-p/327535#M498553</guid>
      <dc:creator>danielrozental</dc:creator>
      <dc:date>2011-06-29T14:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: aggr total problem</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-total-problem/m-p/327536#M498554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks Daniel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2011 14:27:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-total-problem/m-p/327536#M498554</guid>
      <dc:creator />
      <dc:date>2011-06-29T14:27:55Z</dc:date>
    </item>
  </channel>
</rss>

