<?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: Getting a column total in a pivot table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Getting-a-column-total-in-a-pivot-table/m-p/381645#M142385</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi on the % told&amp;nbsp; KPI go to the background and write an if statement&lt;/P&gt;&lt;P&gt;if( %sold &amp;lt;'40 %' red(), green())&lt;/P&gt;&lt;P&gt;hope this helps .if not&amp;nbsp; attach an qvw file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Aug 2012 16:32:10 GMT</pubDate>
    <dc:creator>shree909</dc:creator>
    <dc:date>2012-08-28T16:32:10Z</dc:date>
    <item>
      <title>Getting a column total in a pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-a-column-total-in-a-pivot-table/m-p/381644#M142384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 429px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" width="64"&gt;Kind&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="64"&gt;Inv Name&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="173"&gt;Created&lt;/TD&gt;&lt;TD class="xl69" width="64"&gt;Sold&lt;/TD&gt;&lt;TD class="xl69" width="64"&gt;% Sold&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="40" rowspan="2" style="border-top: none;" width="64"&gt;Grant&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;" width="64"&gt;part1&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;" width="173"&gt;5&lt;/TD&gt;&lt;TD class="xl69"&gt;2&lt;/TD&gt;&lt;TD class="xl70"&gt;40%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="20" style="border-top: none; border-left: none;" width="64"&gt;part2&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;" width="173"&gt;2&lt;/TD&gt;&lt;TD class="xl69"&gt;1&lt;/TD&gt;&lt;TD class="xl71"&gt;50%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="20" width="64"&gt;Total &lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="64"&gt; &lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;" width="173"&gt;7&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="64"&gt;3&lt;/TD&gt;&lt;TD class="xl72"&gt;43%&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know I've seen this before but I'm struggling to find it.&amp;nbsp; Is it possible to get the column total and use it in an expression to set a background color.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've done this in the past but I had to recreate the expression.&amp;nbsp; This is a very simple example, my actual example is much more difficult.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want to do is use the number 7 (total for created) in the Background Color for % Sold.&amp;nbsp; So, for example, I'll color 40% red since it's under the %Sold Total of 43%.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I somehow just get the column(1) total somehow?&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2012 16:19:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-a-column-total-in-a-pivot-table/m-p/381644#M142384</guid>
      <dc:creator />
      <dc:date>2012-08-28T16:19:37Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a column total in a pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-a-column-total-in-a-pivot-table/m-p/381645#M142385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi on the % told&amp;nbsp; KPI go to the background and write an if statement&lt;/P&gt;&lt;P&gt;if( %sold &amp;lt;'40 %' red(), green())&lt;/P&gt;&lt;P&gt;hope this helps .if not&amp;nbsp; attach an qvw file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2012 16:32:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-a-column-total-in-a-pivot-table/m-p/381645#M142385</guid>
      <dc:creator>shree909</dc:creator>
      <dc:date>2012-08-28T16:32:10Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a column total in a pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-a-column-total-in-a-pivot-table/m-p/381646#M142386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Shree,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your expression will change backgroung for the entire entire column. To have background color for the total line you should add dimensionality:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(dimensionality()=0 and %sold &amp;lt;'40 %' red(), green())&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2012 16:39:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-a-column-total-in-a-pivot-table/m-p/381646#M142386</guid>
      <dc:creator>bgerchikov</dc:creator>
      <dc:date>2012-08-28T16:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a column total in a pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-a-column-total-in-a-pivot-table/m-p/381647#M142387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Expand the %Sold expression in the chart properties.&lt;/P&gt;&lt;P&gt;For Backgroud Color use something like this&lt;/P&gt;&lt;P&gt;=if([%sold expression] &amp;lt;&amp;nbsp; [%sold expression with total], lightred(), lightgreen())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[%sold expression] - is your expression for&amp;nbsp; %Sold&lt;/P&gt;&lt;P&gt;[%sold expression with total] - is your expression for&amp;nbsp; %Sold &lt;SPAN style="text-decoration: underline;"&gt;with total modifier&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example: Sum(value), Sum(total value) - with total modifier.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2012 16:40:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-a-column-total-in-a-pivot-table/m-p/381647#M142387</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2012-08-28T16:40:14Z</dc:date>
    </item>
  </channel>
</rss>

