<?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: Incorrect total in pivot table. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Incorrect-total-in-pivot-table/m-p/710683#M1074075</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum(aggr(&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;SUM(AMOUNT)&lt;/SPAN&gt;*&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;IF([ABM Currency] = 'USD', AVG(CURRENCY_VALUE), 1)&lt;/SPAN&gt;, CostCenter, Year, Month,[ABM Currency]))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Aug 2014 14:30:40 GMT</pubDate>
    <dc:creator>simenkg</dc:creator>
    <dc:date>2014-08-04T14:30:40Z</dc:date>
    <item>
      <title>Incorrect total in pivot table.</title>
      <link>https://community.qlik.com/t5/QlikView/Incorrect-total-in-pivot-table/m-p/710680#M1074072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, everyone - This is my problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have three dimensions: &lt;/P&gt;&lt;P&gt;- CostCenter&lt;/P&gt;&lt;P&gt;- Year&lt;/P&gt;&lt;P&gt;- Month&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And four expressions:&lt;/P&gt;&lt;P&gt;- ABM Total (SUM(AMOUNT))&lt;/P&gt;&lt;P&gt;- ABM Currency (ABM_CURRENCY): USD / PES / -&lt;/P&gt;&lt;P&gt;- ABM Currency Value (IF([ABM Currency] = 'USD', AVG(CURRENCY_VALUE), 1))&lt;/P&gt;&lt;P&gt;- TOTAL ([ABM Total] * [ABM Currency Value])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="PRINT.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/63660_PRINT.jpg" /&gt;&lt;/P&gt;&lt;P&gt;(this is just part of the pivot table, of course)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The total from the TOTAL column does not work OK. It is as if it's just taking ABM TOTAL total and multipliying for ABM CURRENCY VALUE total, which, of course, is not what I want. I want the sum of its rows, instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have read about similar issues in this community and about AGGR function and I think the solution has to do with it, but I just can't manage to show the right total.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could anybody lend me a hand? Thank you very much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2014 13:57:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incorrect-total-in-pivot-table/m-p/710680#M1074072</guid>
      <dc:creator />
      <dc:date>2014-08-04T13:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect total in pivot table.</title>
      <link>https://community.qlik.com/t5/QlikView/Incorrect-total-in-pivot-table/m-p/710681#M1074073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(aggr(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;SUM(AMOUNT)&lt;/SPAN&gt;*&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;IF([ABM Currency] = 'USD', AVG(CURRENCY_VALUE), 1)&lt;/SPAN&gt;, CostCenter, Year, Month))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2014 14:02:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incorrect-total-in-pivot-table/m-p/710681#M1074073</guid>
      <dc:creator>jerem1234</dc:creator>
      <dc:date>2014-08-04T14:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect total in pivot table.</title>
      <link>https://community.qlik.com/t5/QlikView/Incorrect-total-in-pivot-table/m-p/710682#M1074074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried exactly that, Jeremiah, but it did not work. Now I have the same values on both ABM TOTAL and TOTAL columns : (&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks anyway!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2014 14:28:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incorrect-total-in-pivot-table/m-p/710682#M1074074</guid>
      <dc:creator />
      <dc:date>2014-08-04T14:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect total in pivot table.</title>
      <link>https://community.qlik.com/t5/QlikView/Incorrect-total-in-pivot-table/m-p/710683#M1074075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum(aggr(&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;SUM(AMOUNT)&lt;/SPAN&gt;*&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;IF([ABM Currency] = 'USD', AVG(CURRENCY_VALUE), 1)&lt;/SPAN&gt;, CostCenter, Year, Month,[ABM Currency]))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2014 14:30:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incorrect-total-in-pivot-table/m-p/710683#M1074075</guid>
      <dc:creator>simenkg</dc:creator>
      <dc:date>2014-08-04T14:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect total in pivot table.</title>
      <link>https://community.qlik.com/t5/QlikView/Incorrect-total-in-pivot-table/m-p/710684#M1074076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sum(aggr(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SUM(AMOUNT)&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;*&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;IF(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;ABM_CURRENCY&lt;/STRONG&gt;&lt;/SPAN&gt; = 'USD', AVG(CURRENCY_VALUE), 1)&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;, CostCenter, Year, Month))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;ABM_CURRENCY should be the field, not the expression label of another expression.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Hope this helps!&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2014 14:37:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incorrect-total-in-pivot-table/m-p/710684#M1074076</guid>
      <dc:creator>jerem1234</dc:creator>
      <dc:date>2014-08-04T14:37:05Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect total in pivot table.</title>
      <link>https://community.qlik.com/t5/QlikView/Incorrect-total-in-pivot-table/m-p/710685#M1074077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;does it not work as expected when you use Sum of rows (Expression tab)?&lt;/P&gt;&lt;P&gt;If it is not available in a pivot, try changing it to straight table, check Sum of rows and change it back to pivot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2014 14:39:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incorrect-total-in-pivot-table/m-p/710685#M1074077</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2014-08-04T14:39:17Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect total in pivot table.</title>
      <link>https://community.qlik.com/t5/QlikView/Incorrect-total-in-pivot-table/m-p/710686#M1074078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That didn't work for me, Simen. I'm not even seeing TOTAL values now. I didn't know you coud use expressions in AGGR functions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks anyway!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2014 14:40:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incorrect-total-in-pivot-table/m-p/710686#M1074078</guid>
      <dc:creator />
      <dc:date>2014-08-04T14:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect total in pivot table.</title>
      <link>https://community.qlik.com/t5/QlikView/Incorrect-total-in-pivot-table/m-p/710687#M1074079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You cant but how do you calculate the currency? You should use the dimension in your AGGR.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2014 14:41:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incorrect-total-in-pivot-table/m-p/710687#M1074079</guid>
      <dc:creator>simenkg</dc:creator>
      <dc:date>2014-08-04T14:41:36Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect total in pivot table.</title>
      <link>https://community.qlik.com/t5/QlikView/Incorrect-total-in-pivot-table/m-p/710688#M1074080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sum(aggr(&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SUM(AMOUNT)&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;*&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;IF(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;ABM_CURRENCY&lt;/SPAN&gt; = 'USD', AVG(CURRENCY_VALUE), 1)&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;, CostCenter, Year, Month,&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;ABM_CURRENCY&lt;/SPAN&gt;))&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2014 14:43:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incorrect-total-in-pivot-table/m-p/710688#M1074080</guid>
      <dc:creator>simenkg</dc:creator>
      <dc:date>2014-08-04T14:43:21Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect total in pivot table.</title>
      <link>https://community.qlik.com/t5/QlikView/Incorrect-total-in-pivot-table/m-p/710689#M1074081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good news is that now the total is the sum of rows. Bad news is that TOTAL is now not equal to ABM TOTAL * ABM CURRENCY VALUE. (Please, disregard the following print's language).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="PRINT.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/63661_PRINT.jpg" /&gt;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2014 14:50:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incorrect-total-in-pivot-table/m-p/710689#M1074081</guid>
      <dc:creator />
      <dc:date>2014-08-04T14:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect total in pivot table.</title>
      <link>https://community.qlik.com/t5/QlikView/Incorrect-total-in-pivot-table/m-p/710690#M1074082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's because when you drill-down in your CostCenter dimension, you have some values with ABM_CURRENCY equal to 'USD'. For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your previous post, CostCenter of 61, Year 2014, and Month of Feb, the ABM_CURRENCY is 'USD'. Therefore, the aggr would calculate this even when you are drilled up only at CostCenter. It will sum up the values within the dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So when you are looking at it drilled up to only CostCenter, it is calculating (from your previous post) 0+69.500+0+0+423.686,85+157.050,79+....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note this will not be the same value of TOTAL ABM when you are drilled up to only CostCenter. How do you know which values have 'USD' for ABM_CURRENCY and which don't?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How exactly do you want to calculate? Keep in mind when you are drilling down or when you are drilled up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2014 15:07:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incorrect-total-in-pivot-table/m-p/710690#M1074082</guid>
      <dc:creator>jerem1234</dc:creator>
      <dc:date>2014-08-04T15:07:28Z</dc:date>
    </item>
  </channel>
</rss>

