<?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 Total month sum in a pivot table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Total-month-sum-in-a-pivot-table/m-p/151872#M29527</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, if your Month values don't include the year in them (mine normally do), you'd need to do &amp;lt;Year, Month&amp;gt; instead of just &amp;lt;Month&amp;gt;. But that's probably not the problem, since you'd have smaller numbers than expected if that was the problem, not larger. With that corrected, I'm getting good numbers for the attached sample file.&lt;/P&gt;&lt;P&gt;(Edit: Ah, I missed that you have Branch in there as a dimension as well, and you called year FY. So I'd think you'd want &amp;lt;FY, Month, Branch&amp;gt; in the total expression.)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 08 Aug 2009 03:30:58 GMT</pubDate>
    <dc:creator>johnw</dc:creator>
    <dc:date>2009-08-08T03:30:58Z</dc:date>
    <item>
      <title>Total month sum in a pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Total-month-sum-in-a-pivot-table/m-p/151869#M29524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Friendlies,&lt;/P&gt;&lt;P&gt;I've tried many o things but I can't seem to get it to work. In the percent column I'm trying to do the following: the (amount for the day / total amount for the month). I'm having difficulties getting total month formula to work properly.&lt;/P&gt;&lt;P&gt;Here is my formula for the amount for that day:&lt;/P&gt;&lt;P&gt;sum( {$&amp;lt;OeTyp={"S","W"},OrdTyp-={"4"}&amp;gt; }Tot_Invoice - (TotFedTax-TotSalesTax))&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-363_sourceID:363" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Aug 2009 02:05:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-month-sum-in-a-pivot-table/m-p/151869#M29524</guid>
      <dc:creator />
      <dc:date>2009-08-08T02:05:16Z</dc:date>
    </item>
    <item>
      <title>Total month sum in a pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Total-month-sum-in-a-pivot-table/m-p/151870#M29525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, for simplicity, let's say your Amount expression was just sum(Amount). Then the percentage of the total for the month would be sum(Amount)/sum(total &amp;lt;Month&amp;gt; Amount).&lt;/P&gt;&lt;P&gt;So I THINK that for your actual case, you'd want this:&lt;/P&gt;&lt;P&gt;sum( {&amp;lt;OeTyp={"S","W"},OrdTyp-={"4"}&amp;gt; }Tot_Invoice - (TotFedTax-TotSalesTax))&lt;BR /&gt;/sum(total &amp;lt;Month&amp;gt; {&amp;lt;OeTyp={"S","W"},OrdTyp-={"4"}&amp;gt; }Tot_Invoice - (TotFedTax-TotSalesTax))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Aug 2009 02:21:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-month-sum-in-a-pivot-table/m-p/151870#M29525</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2009-08-08T02:21:45Z</dc:date>
    </item>
    <item>
      <title>Total month sum in a pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Total-month-sum-in-a-pivot-table/m-p/151871#M29526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply,&lt;/P&gt;&lt;P&gt;but that's giving a very large number for Total Month Amount and the amount is the same for every month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Aug 2009 03:10:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-month-sum-in-a-pivot-table/m-p/151871#M29526</guid>
      <dc:creator />
      <dc:date>2009-08-08T03:10:17Z</dc:date>
    </item>
    <item>
      <title>Total month sum in a pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Total-month-sum-in-a-pivot-table/m-p/151872#M29527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, if your Month values don't include the year in them (mine normally do), you'd need to do &amp;lt;Year, Month&amp;gt; instead of just &amp;lt;Month&amp;gt;. But that's probably not the problem, since you'd have smaller numbers than expected if that was the problem, not larger. With that corrected, I'm getting good numbers for the attached sample file.&lt;/P&gt;&lt;P&gt;(Edit: Ah, I missed that you have Branch in there as a dimension as well, and you called year FY. So I'd think you'd want &amp;lt;FY, Month, Branch&amp;gt; in the total expression.)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Aug 2009 03:30:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-month-sum-in-a-pivot-table/m-p/151872#M29527</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2009-08-08T03:30:58Z</dc:date>
    </item>
    <item>
      <title>Total month sum in a pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Total-month-sum-in-a-pivot-table/m-p/151873#M29528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;John,&lt;/P&gt;&lt;P&gt;that's beautiful! You were right on the money on that. I've never really use the SUM TOTAL expression before and I thought SUM would already take into the account the dimensions in the table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2009 21:54:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-month-sum-in-a-pivot-table/m-p/151873#M29528</guid>
      <dc:creator />
      <dc:date>2009-08-10T21:54:26Z</dc:date>
    </item>
    <item>
      <title>Total month sum in a pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Total-month-sum-in-a-pivot-table/m-p/151874#M29529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sum() DOES take into account ALL dimensions in the table. Sum(total ...) IGNORES all dimensions in the table. But in your situation, you wanted to take some dimensions into account, but not others. Fortunately, sum(total ...) lets you specify which dimensions you want to account for (something I kept forgetting for my first year or two of QlikView).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2009 23:46:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-month-sum-in-a-pivot-table/m-p/151874#M29529</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2009-08-10T23:46:54Z</dc:date>
    </item>
  </channel>
</rss>

