<?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 totals and column references in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Pivot-table-totals-and-column-references/m-p/181264#M47352</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;I have a simple requirement which i hope you can help me with. The application was developed by a client and i'm trying to find the simplest solution.&lt;/P&gt;&lt;P&gt;See the pivot table below:&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/-2250_sourceID:2250" /&gt;&lt;/P&gt;&lt;P&gt;In column 6, 'Est Cost to Complete', I want to show only the positive values from the formula Column(8) - Column(5).&lt;/P&gt;&lt;P&gt;The existing formula is:&lt;/P&gt;&lt;P&gt;if(Column(8) - Column(5) &amp;lt; 0,0,Column(8) - Column(5))&lt;/P&gt;&lt;P&gt;You can see the pivot totals do not show the total of the values in the column, rather the expression is also performed at the total level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have a solution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FYI&lt;/P&gt;&lt;P&gt;Column 8 formula is : sum(EHHBudget)&lt;/P&gt;&lt;P&gt;Column 5 formula is :&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;FinYear=, Month=&amp;gt;} if(ProjectTranDate &amp;gt;= '01/01/2010',ProjectTranAmount)) + Sum({$&amp;lt;FinYear=, Month=&amp;gt;} if(left(ProjectCode,4) = '70EH',POLineCommitmentAmount))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Aug 2010 04:55:47 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-08-31T04:55:47Z</dc:date>
    <item>
      <title>Pivot table totals and column references</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-totals-and-column-references/m-p/181264#M47352</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;I have a simple requirement which i hope you can help me with. The application was developed by a client and i'm trying to find the simplest solution.&lt;/P&gt;&lt;P&gt;See the pivot table below:&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/-2250_sourceID:2250" /&gt;&lt;/P&gt;&lt;P&gt;In column 6, 'Est Cost to Complete', I want to show only the positive values from the formula Column(8) - Column(5).&lt;/P&gt;&lt;P&gt;The existing formula is:&lt;/P&gt;&lt;P&gt;if(Column(8) - Column(5) &amp;lt; 0,0,Column(8) - Column(5))&lt;/P&gt;&lt;P&gt;You can see the pivot totals do not show the total of the values in the column, rather the expression is also performed at the total level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have a solution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FYI&lt;/P&gt;&lt;P&gt;Column 8 formula is : sum(EHHBudget)&lt;/P&gt;&lt;P&gt;Column 5 formula is :&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;FinYear=, Month=&amp;gt;} if(ProjectTranDate &amp;gt;= '01/01/2010',ProjectTranAmount)) + Sum({$&amp;lt;FinYear=, Month=&amp;gt;} if(left(ProjectCode,4) = '70EH',POLineCommitmentAmount))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Aug 2010 04:55:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-totals-and-column-references/m-p/181264#M47352</guid>
      <dc:creator />
      <dc:date>2010-08-31T04:55:47Z</dc:date>
    </item>
    <item>
      <title>Pivot table totals and column references</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-totals-and-column-references/m-p/181265#M47353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Matt,&lt;/P&gt;&lt;P&gt;As a quick suggestion I'd use for colum 6&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;If([Restart Budget] - [Total Costs to Date] &amp;lt; 0, 0, [Restart Budget] - [Total Costs to Date])&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;to refer the row rather than using the whole column.&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Aug 2010 05:05:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-totals-and-column-references/m-p/181265#M47353</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2010-08-31T05:05:44Z</dc:date>
    </item>
    <item>
      <title>Pivot table totals and column references</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-totals-and-column-references/m-p/181266#M47354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Miguel,&lt;/P&gt;&lt;P&gt;I tried the formula and found the same result as the screenshot attached in the original post.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Aug 2010 05:11:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-totals-and-column-references/m-p/181266#M47354</guid>
      <dc:creator />
      <dc:date>2010-08-31T05:11:17Z</dc:date>
    </item>
    <item>
      <title>Pivot table totals and column references</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-totals-and-column-references/m-p/181267#M47355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Matt,&lt;/P&gt;&lt;P&gt;I got you wrong, you will need to play with dimensionality() function in your expression to show the grand total with different sums. Something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;If(dimensionality() = 0, sum(something), If(Column(8) - Column(5) &amp;lt; 0, 0, Column(8) - Column(5))&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Dimensionality() allows you to write depending on the level of expressions.&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Aug 2010 06:08:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-totals-and-column-references/m-p/181267#M47355</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2010-08-31T06:08:29Z</dc:date>
    </item>
    <item>
      <title>Pivot table totals and column references</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-totals-and-column-references/m-p/181268#M47356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks as if i can achieve the same with the rowno() function in this instance as dimensionality(), however it looks like a powerful function.&lt;/P&gt;&lt;P&gt;I'm not sure how to use it to sum the ordinary lines and ignore the total line calculation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Sep 2010 02:37:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-totals-and-column-references/m-p/181268#M47356</guid>
      <dc:creator />
      <dc:date>2010-09-01T02:37:25Z</dc:date>
    </item>
    <item>
      <title>Pivot table totals and column references</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-totals-and-column-references/m-p/181269#M47357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matt,&lt;/P&gt;&lt;P&gt;As I suggested in the sample code above, you will have to use a conditional in each expression where the rows differ from the totals, as I'm guessing you want to keep totals, but to calculate them in a different way.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Sep 2010 08:21:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-totals-and-column-references/m-p/181269#M47357</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2010-09-01T08:21:24Z</dc:date>
    </item>
  </channel>
</rss>

