<?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: Calculate % Change on Pivot Table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculate-Change-on-Pivot-Table/m-p/315622#M497087</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;An expression comparing min and max years for % change would be possible but simpler if rows were added for those years without any orders (see attached).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The idea of using the ColumnNo() to change the expression in the total of a pivot table would also be handy - as shown in this thread &lt;A _jive_internal="true" href="https://community.qlik.com/thread/11316"&gt;http://community.qlik.com/thread/11316&lt;/A&gt;. by Daniel Rozental.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your Change % represents a kind of fact, like Revenue Change %, that you'd want to see if you only selected a single year, you could get the script to work out the change by using Peek() in the load, maybe to a summary table (see second attached for the basic idea).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A cumulative script using Peek() is shown here &lt;A _jive_internal="true" href="https://community.qlik.com/thread/31436"&gt;http://community.qlik.com/thread/31436&lt;/A&gt; by swuehl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Oct 2011 07:14:09 GMT</pubDate>
    <dc:creator>hdonald</dc:creator>
    <dc:date>2011-10-11T07:14:09Z</dc:date>
    <item>
      <title>Calculate % Change on Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-Change-on-Pivot-Table/m-p/315621#M497086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've got a flat-file structured set of data that shows a bunch of orders, the year the order was placed, and the product type. I've provided an example below. Simplified for sake of discussion.&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;TD&gt;&lt;STRONG&gt;Order ID&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Year&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Type&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;34216&lt;/TD&gt;&lt;TD&gt;2008&lt;/TD&gt;&lt;TD&gt;Red&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;98432&lt;/TD&gt;&lt;TD&gt;2010&lt;/TD&gt;&lt;TD&gt;Brown&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;10293&lt;/TD&gt;&lt;TD&gt;2009&lt;/TD&gt;&lt;TD&gt;Brown&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;12345&lt;/TD&gt;&lt;TD&gt;2010&lt;/TD&gt;&lt;TD&gt;Red&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;67890&lt;/TD&gt;&lt;TD&gt;2009&lt;/TD&gt;&lt;TD&gt;Yellow&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;54321&lt;/TD&gt;&lt;TD&gt;2010&lt;/TD&gt;&lt;TD&gt;Brown&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the table I want QlikView to produce. I've been able to accomplish this with a Pivot table except for the % change. How would I go about calculating the % change? I'm looking for solutions that either include an expression or hopefully without the pivot table altogether. Using something other than the flatfile with one single year column is not an option. Thank you in advance for your thoughts!&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;TD&gt;&lt;STRONG&gt;Type&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;2008&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;2009&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;2010&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;% Change&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Red&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;0%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Brown&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;200%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Yellow&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0%&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2011 18:43:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-Change-on-Pivot-Table/m-p/315621#M497086</guid>
      <dc:creator />
      <dc:date>2011-10-05T18:43:34Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate % Change on Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-Change-on-Pivot-Table/m-p/315622#M497087</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;An expression comparing min and max years for % change would be possible but simpler if rows were added for those years without any orders (see attached).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The idea of using the ColumnNo() to change the expression in the total of a pivot table would also be handy - as shown in this thread &lt;A _jive_internal="true" href="https://community.qlik.com/thread/11316"&gt;http://community.qlik.com/thread/11316&lt;/A&gt;. by Daniel Rozental.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your Change % represents a kind of fact, like Revenue Change %, that you'd want to see if you only selected a single year, you could get the script to work out the change by using Peek() in the load, maybe to a summary table (see second attached for the basic idea).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A cumulative script using Peek() is shown here &lt;A _jive_internal="true" href="https://community.qlik.com/thread/31436"&gt;http://community.qlik.com/thread/31436&lt;/A&gt; by swuehl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Oct 2011 07:14:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-Change-on-Pivot-Table/m-p/315622#M497087</guid>
      <dc:creator>hdonald</dc:creator>
      <dc:date>2011-10-11T07:14:09Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate % Change on Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-Change-on-Pivot-Table/m-p/315623#M497088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;see the attached file &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Oct 2011 07:33:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-Change-on-Pivot-Table/m-p/315623#M497088</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2011-10-11T07:33:40Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate % Change on Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-Change-on-Pivot-Table/m-p/315624#M497089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;As u have 3 years(2008,09,10),with respect to which year u want the % change&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;opt1 2008 vs 2010&lt;/P&gt;&lt;P&gt;opt2&amp;nbsp;&amp;nbsp; 2009 vs 2010&lt;/P&gt;&lt;P&gt;opt3&amp;nbsp;&amp;nbsp; 2008 vs 2009&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;vivek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Oct 2011 07:59:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-Change-on-Pivot-Table/m-p/315624#M497089</guid>
      <dc:creator />
      <dc:date>2011-10-11T07:59:02Z</dc:date>
    </item>
  </channel>
</rss>

