<?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 Pivot Table and calculated fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Pivot-Table-and-calculated-fields/m-p/305159#M112706</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi, can't get it done this way. This would give me an additional row below the values of the already existing expressions. I need a column to compare the individual expressions from projectreport X with projectreport Y. And then again between projectreport Y and projectreport W. Etc... But I'd be happy with a comparing column between the two first columns only. Any ideas? Thx, Sander&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 28 Aug 2011 14:35:23 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-08-28T14:35:23Z</dc:date>
    <item>
      <title>Pivot Table and calculated fields</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-and-calculated-fields/m-p/305157#M112704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I have a Pivot Table with two dimensions (projectname and projectreport) and about thirty expressions (single fields containing separate project costs values). I dragged the dimensions to the top and the expressions are placed to the left. Example:&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;Pivot Table&lt;/TD&gt;&lt;TH align="center" colspan="2" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;+ Projectname Z&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD style="text-align: center;"&gt;Projectreport X&lt;/TD&gt;&lt;TD style="text-align: center;"&gt;Projectreport Y&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Project costs field 1&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Project costs field ...&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Project costs field 30&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I want to add a calculated column (for instance containing column(1) - column(2), percentages, ...).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Glad to get some advice on the best/easiest way to achieve this.&lt;/P&gt;&lt;P&gt;Regards, Sander.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Aug 2011 20:51:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-and-calculated-fields/m-p/305157#M112704</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-08-27T20:51:38Z</dc:date>
    </item>
    <item>
      <title>Pivot Table and calculated fields</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-and-calculated-fields/m-p/305158#M112705</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 think a solution for what you need was developed by John Witherspoon and posted here:&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://community.qlik.com/message/35586#35586"&gt;http://community.qlik.com/message/35586#35586&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Aug 2011 22:36:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-and-calculated-fields/m-p/305158#M112705</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-08-27T22:36:49Z</dc:date>
    </item>
    <item>
      <title>Pivot Table and calculated fields</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-and-calculated-fields/m-p/305159#M112706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi, can't get it done this way. This would give me an additional row below the values of the already existing expressions. I need a column to compare the individual expressions from projectreport X with projectreport Y. And then again between projectreport Y and projectreport W. Etc... But I'd be happy with a comparing column between the two first columns only. Any ideas? Thx, Sander&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Aug 2011 14:35:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-and-calculated-fields/m-p/305159#M112706</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-08-28T14:35:23Z</dc:date>
    </item>
    <item>
      <title>Pivot Table and calculated fields</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-and-calculated-fields/m-p/305160#M112707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I understood your problem and John's solution correctly, the solution will add values to a dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since you pivot your dimensions to the top, in horizontal orientation, it should give you additional columns, not adding rows (In John's example, he has not pivoted the dimensions, the dimensions are to the left, in vertical orientation, giving additional rows).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In&amp;nbsp; your expression, you will need to check the dimension value and pick an appropriate expression then, like in John's solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I still think this could fit your needs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Aug 2011 14:52:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-and-calculated-fields/m-p/305160#M112707</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-08-28T14:52:09Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table and calculated fields</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-and-calculated-fields/m-p/305161#M112708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI, still could not get it done. Can you show me in attached qvw? Thx, Sander&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Aug 2011 16:37:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-and-calculated-fields/m-p/305161#M112708</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-08-28T16:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table and calculated fields</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-and-calculated-fields/m-p/305162#M112709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sander,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;have a look at attached example. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Compared to John's example, using two dimension levels make things a little more complicated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I added a custom dimension field within projects that calculates the difference between second&amp;nbsp; and first Project2 in each report.&lt;/P&gt;&lt;P&gt;I also tried to add a custom dimension field at the report level, but don't have a clue what to use here. It might also be difficult accessing the values from here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It might also be an idea to add the calculations for the custom dimensions in script level, i.e. adding them to your fact table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Aug 2011 21:13:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-and-calculated-fields/m-p/305162#M112709</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-08-28T21:13:48Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table and calculated fields</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-and-calculated-fields/m-p/305163#M112710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi Stefan,&lt;/P&gt;&lt;P&gt;Many thanks for your efforts! I think I'll have to solve this on script level indeed. Regards, Sander&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Aug 2011 21:46:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-and-calculated-fields/m-p/305163#M112710</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-08-28T21:46:55Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table and calculated fields</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-and-calculated-fields/m-p/305164#M112711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, stumbled upon another interesting (partial) solution here:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/message/67136#67136"&gt;http://community.qlik.com/message/67136#67136&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still, I would think there must be an easier and more flexible way to add calculated columns to pivot tables?? Compare more than two columns, add %, ...&lt;/P&gt;&lt;P&gt;Attached editted qvw file as basic case again, with it's limitations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other tricks out there? Gr., Sander&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2011 20:12:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-and-calculated-fields/m-p/305164#M112711</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-08-29T20:12:54Z</dc:date>
    </item>
  </channel>
</rss>

