<?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: Pivot table column calculation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Pivot-table-column-calculation/m-p/719921#M1078470</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Portfolio is an expression. I will load the sample file. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Jul 2014 09:54:51 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-07-22T09:54:51Z</dc:date>
    <item>
      <title>Pivot table column calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-column-calculation/m-p/719914#M1078461</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 have a Pivot table that shows data as per attached. AAA, BBB, CCC are part of Portfolio column. The number of columns will vary, which means I can have something like AAA, BBB or AAA, BBB, CCC, DDD. Now AAA is my model column (Sequence is always 0). I want to colour code the cells BBB through CCC such that if BBB-AAA &amp;lt; 0 then colour Red else colour Blue, Same applies for CCC-AAA. Hope that makes sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Prasad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2014 15:23:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-column-calculation/m-p/719914#M1078461</guid>
      <dc:creator />
      <dc:date>2014-07-21T15:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table column calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-column-calculation/m-p/719915#M1078462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kindly provide sample data for this question. Easy to work..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2014 15:29:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-column-calculation/m-p/719915#M1078462</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-07-21T15:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table column calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-column-calculation/m-p/719916#M1078463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Expand on each Dimension and/or equation and double click the attribute such as Background Color.&amp;nbsp; Then put your conditional statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="62811" alt="2014-07-21_10-54-46.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/62811_2014-07-21_10-54-46.png" style="width: 620px; height: 546px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2014 15:35:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-column-calculation/m-p/719916#M1078463</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-21T15:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table column calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-column-calculation/m-p/719917#M1078465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Michael, I know the Background Color&amp;nbsp; property that's fine. What I am struggling with is the expression. So in a way I need to be able to use AAA as a base value for computation.&lt;/P&gt;&lt;P&gt;Manish do you want me to attach the QVW?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2014 15:55:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-column-calculation/m-p/719917#M1078465</guid>
      <dc:creator />
      <dc:date>2014-07-21T15:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table column calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-column-calculation/m-p/719918#M1078467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Kindly load your sample apps.....would love to work on the same...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2014 20:38:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-column-calculation/m-p/719918#M1078467</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-07-21T20:38:12Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table column calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-column-calculation/m-p/719919#M1078468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is Portfolio a dimenssion? If so you can code the expression to calculate the difference as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(Value) - sum({&amp;lt;Portfolio={AAA} TOTAL Value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then use that in an if() to set the color. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2014 22:56:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-column-calculation/m-p/719919#M1078468</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2014-07-21T22:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table column calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-column-calculation/m-p/719920#M1078469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you mean like this ?&lt;/P&gt;&lt;P&gt;I'm afraid you have to set it manually per column.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Q1 - Like This.png" class="jive-image" src="/legacyfs/online/62823_Q1 - Like This.png" style="max-width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2014 03:50:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-column-calculation/m-p/719920#M1078469</guid>
      <dc:creator />
      <dc:date>2014-07-22T03:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table column calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-column-calculation/m-p/719921#M1078470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Portfolio is an expression. I will load the sample file. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2014 09:54:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-column-calculation/m-p/719921#M1078470</guid>
      <dc:creator />
      <dc:date>2014-07-22T09:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table column calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-column-calculation/m-p/719922#M1078472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks all. I finally managed using the following expression in the Background Color property of the Portfolio expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;num&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;isequence&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &amp;lt;&amp;gt; 0 &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;max&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;isequence&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;min&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;isequence&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;), &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Round&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;((&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Column&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(1)-&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;First&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Column&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(1))),0.01)&amp;gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;vMax&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; , &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;rgb&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(170, 200, 225)&lt;BR /&gt; , (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Round&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;((&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Column&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(1)-&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;First&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Column&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(1))),0.01)&amp;lt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;vMin&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;rgb&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(255, 150, 100), &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;rgb&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(255, 255, 255))&lt;BR /&gt; )&lt;BR /&gt;) &lt;BR /&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;I first check that iSequence (order of the column that I have in my QVD) is not equal to 0, this is because I don't want to apply any color logic to the first column. Then I Subtract the 0th column value from every column and if it is greater than vMax (variable that stores max tolerance level) then color it cyan else if it is less than vMin(min tolerance level) then color it orange. &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2014 15:32:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-column-calculation/m-p/719922#M1078472</guid>
      <dc:creator />
      <dc:date>2014-07-22T15:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table column calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-column-calculation/m-p/719923#M1078473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Forgot to attach the how the output looks like. &lt;IMG alt="Final Output.jpg" class="jive-image" src="/legacyfs/online/62874_Final Output.jpg" style="width: 620px; height: 310px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2014 15:33:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-column-calculation/m-p/719923#M1078473</guid>
      <dc:creator />
      <dc:date>2014-07-22T15:33:57Z</dc:date>
    </item>
  </channel>
</rss>

