<?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 Cumulative Value in a pivot in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Cumulative-Value-in-a-pivot/m-p/328976#M121109</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you consider having three dimensions (category, year, month) instead of two dimensions (category, year-month)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have three dimensions, the partial total for the year will give the total you want.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Jun 2011 10:58:56 GMT</pubDate>
    <dc:creator>nagaiank</dc:creator>
    <dc:date>2011-06-29T10:58:56Z</dc:date>
    <item>
      <title>Cumulative Value in a pivot</title>
      <link>https://community.qlik.com/t5/QlikView/Cumulative-Value-in-a-pivot/m-p/328975#M121108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An important issue tahat i have been encountered a lot of times during use of qlikview, and I cannot find any solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; my pivot table displays a financial report, with 2 dimensions: [category] and [month + year]. my expression shows the amount of a specific category per month.&lt;/P&gt;&lt;P&gt;i need to change my total column that should display the cumalative value from begining of the year (see table below).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i tried to use set analisys in my total formula, for example:&amp;nbsp; sum( {$&amp;lt;MonthYear = &amp;gt;} Sales ),&lt;/P&gt;&lt;P&gt;but this affects the whole pivot: all months will be shown on my pivot regardless the selections &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; if found 2 solutions but they are very complicated:&lt;/P&gt;&lt;P&gt;1. to remove the month dimension from the pivot, and use set analisys on all columns (on this way the user canot simply select which months to show)&lt;/P&gt;&lt;P&gt;2. to bring an open balance for each month, manipulated on the load script. that way I don’t need to use set analisys to lookup outside the pivot range.&lt;/P&gt;&lt;P&gt;But this is very complicated In some situations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;there is a better/simpler idea?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;thanks,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;shlomo&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" style="width: 100%; border: 1px solid #000000;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Category&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;03-2011&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;04-2011&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Cumulative value from begining of year&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A1&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;TD&gt;200&lt;/TD&gt;&lt;TD&gt;700 (this ammount is from begining of the year)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A2&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A3&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A4&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2011 10:41:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cumulative-Value-in-a-pivot/m-p/328975#M121108</guid>
      <dc:creator>m4u</dc:creator>
      <dc:date>2011-06-29T10:41:37Z</dc:date>
    </item>
    <item>
      <title>Cumulative Value in a pivot</title>
      <link>https://community.qlik.com/t5/QlikView/Cumulative-Value-in-a-pivot/m-p/328976#M121109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you consider having three dimensions (category, year, month) instead of two dimensions (category, year-month)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have three dimensions, the partial total for the year will give the total you want.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2011 10:58:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cumulative-Value-in-a-pivot/m-p/328976#M121109</guid>
      <dc:creator>nagaiank</dc:creator>
      <dc:date>2011-06-29T10:58:56Z</dc:date>
    </item>
    <item>
      <title>Cumulative Value in a pivot</title>
      <link>https://community.qlik.com/t5/QlikView/Cumulative-Value-in-a-pivot/m-p/328977#M121110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks,but this will not solve my problem becuase:&lt;/P&gt;&lt;P&gt;1. i need the a specific structure&lt;/P&gt;&lt;P&gt;2. even if i add the year dimension - if only 2 months will be selected, the year partial sum will include only the selected month's and not from beginging of the year&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2011 11:22:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cumulative-Value-in-a-pivot/m-p/328977#M121110</guid>
      <dc:creator>m4u</dc:creator>
      <dc:date>2011-06-29T11:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Value in a pivot</title>
      <link>https://community.qlik.com/t5/QlikView/Cumulative-Value-in-a-pivot/m-p/328978#M121111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you calcualte the cumulative total in the load script, the value will be independent of month selections. You can find a way to display that column always when two other months are selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An example is attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the amounts have to be sensitive to selections other than months, this method will not work, as the cumulative total is calculated in the load script for the {1} set, not taking into account the user selections in the applications.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2011 12:10:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cumulative-Value-in-a-pivot/m-p/328978#M121111</guid>
      <dc:creator>nagaiank</dc:creator>
      <dc:date>2011-06-29T12:10:34Z</dc:date>
    </item>
    <item>
      <title>Cumulative Value in a pivot</title>
      <link>https://community.qlik.com/t5/QlikView/Cumulative-Value-in-a-pivot/m-p/328979#M121112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your solution is good only if you always select until the last period, but if you select "02-2011"&amp;nbsp; the the total column shows the cumulative up to the end of year and not up to the end of the selected period.&lt;/P&gt;&lt;P&gt;what i did, i have generate another table on load script and get for each period, the cumulative balance for this period - this table is also attached to the period dimension so i can include it in the total fomula - but this is very complicated, and problematic in some cases, and i'm locking for a better way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;P&gt;shlomo &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2011 14:14:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cumulative-Value-in-a-pivot/m-p/328979#M121112</guid>
      <dc:creator>m4u</dc:creator>
      <dc:date>2011-06-29T14:14:54Z</dc:date>
    </item>
  </channel>
</rss>

