<?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 Custom row in a pivot table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Custom-row-in-a-pivot-table/m-p/270764#M587472</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you could write something like: ( I don't know the expression for Header2, I guess it is sum (Header2)) &lt;/P&gt;&lt;P&gt;if( Header1='r4', sum( {&amp;lt;Header2 = {r1,r2}&amp;gt;} total Header2)-sum( {&amp;lt;Header2 = {r3}&amp;gt;} total Header2)&lt;/P&gt;&lt;P&gt;, sum(Header2) ) &lt;/P&gt;&lt;P&gt;... but I think it may be difficult to write an expression to work in a more general situation..&lt;/P&gt;&lt;P&gt;Hope this helps for now, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Jun 2011 19:00:33 GMT</pubDate>
    <dc:creator>erichshiino</dc:creator>
    <dc:date>2011-06-07T19:00:33Z</dc:date>
    <item>
      <title>Custom row in a pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Custom-row-in-a-pivot-table/m-p/270763#M587471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;I have the following pivot table :&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" height="91" style="height: 2px; width: 446px; border-width: 1px; border-color: #000000; border-style: solid;"&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;Header 1&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;Header 2&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;r1&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;r2&lt;/TD&gt;&lt;TD&gt;30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;r3&lt;/TD&gt;&lt;TD&gt;50&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;r4&lt;/TD&gt;&lt;TD&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;r5&lt;/TD&gt;&lt;TD&gt;90&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to add in the pivot table a cell wich contain a custom expression where "Header 1=r4". the expression is in depending of other rows. for example : &lt;/P&gt;&lt;P&gt;r4 = r1 + r2 - r3. So my pivot table will be like this:&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: 50%; 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;Header 1&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;Header 2&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;r1&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;r2&lt;/TD&gt;&lt;TD&gt;30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;r3&lt;/TD&gt;&lt;TD&gt;50&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;r4&lt;/TD&gt;&lt;TD&gt;80&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;r5&lt;/TD&gt;&lt;TD&gt;90&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you help me please to find a solution.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Yacine&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2011 16:41:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Custom-row-in-a-pivot-table/m-p/270763#M587471</guid>
      <dc:creator />
      <dc:date>2011-06-07T16:41:14Z</dc:date>
    </item>
    <item>
      <title>Custom row in a pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Custom-row-in-a-pivot-table/m-p/270764#M587472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you could write something like: ( I don't know the expression for Header2, I guess it is sum (Header2)) &lt;/P&gt;&lt;P&gt;if( Header1='r4', sum( {&amp;lt;Header2 = {r1,r2}&amp;gt;} total Header2)-sum( {&amp;lt;Header2 = {r3}&amp;gt;} total Header2)&lt;/P&gt;&lt;P&gt;, sum(Header2) ) &lt;/P&gt;&lt;P&gt;... but I think it may be difficult to write an expression to work in a more general situation..&lt;/P&gt;&lt;P&gt;Hope this helps for now, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2011 19:00:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Custom-row-in-a-pivot-table/m-p/270764#M587472</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2011-06-07T19:00:33Z</dc:date>
    </item>
  </channel>
</rss>

