<?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: Hide columns in pivot table based on sum in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Hide-columns-in-pivot-table-based-on-sum/m-p/1029454#M939975</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could try it with a condition on this column like: sum(TOTAL [After sales]) and/or a calculated dimension like: aggr(if(sum([After sales])&amp;gt;0, Item), Item) and/or a condition within the expression itself like: if(sum([After sales])=0, null(), sum([After sales])) and using the suppress zero-option but not each view-combination will be (practically) possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Feb 2016 12:07:54 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2016-02-02T12:07:54Z</dc:date>
    <item>
      <title>Hide columns in pivot table based on sum</title>
      <link>https://community.qlik.com/t5/QlikView/Hide-columns-in-pivot-table-based-on-sum/m-p/1029453#M939974</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've encountered a problem with a pivot chart where I would like to hide columns (dimensions) that only contains null values or zero values (i.e only show columns where the total column sum &amp;gt; 0) Closest I've got is simply to suppress zero-values which works as I want it to for the columns, problem is it also hide the rows that are zero as well. Is per the table below, I would like to hide the column "After sales" since it only contain blank values but keep the Item2 row visible even though it would also sum 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="168" style="width: 650px; height: 173px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl69" height="15" width="72"&gt; &lt;/TD&gt;&lt;TD class="xl69" width="72"&gt; &lt;/TD&gt;&lt;TD class="xl68" width="72"&gt;Stock profile&lt;/TD&gt;&lt;TD class="xl67" width="72"&gt;10&lt;/TD&gt;&lt;TD class="xl67" width="72"&gt;&lt;/TD&gt;&lt;TD class="xl67" width="72"&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="15"&gt; &lt;/TD&gt;&lt;TD class="xl69"&gt; &lt;/TD&gt;&lt;TD class="xl68"&gt;Stock profile name&lt;/TD&gt;&lt;TD class="xl67"&gt;ten&lt;/TD&gt;&lt;TD class="xl67"&gt;&lt;/TD&gt;&lt;TD class="xl67"&gt;twenty&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="15"&gt;Item&lt;/TD&gt;&lt;TD class="xl68"&gt;Description&lt;/TD&gt;&lt;TD class="xl68"&gt;Stock name&lt;/TD&gt;&lt;TD class="xl67"&gt;After sales&lt;/TD&gt;&lt;TD class="xl67"&gt;Main stock&lt;/TD&gt;&lt;TD class="xl67"&gt;Consignment&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="15"&gt;Item1&lt;/TD&gt;&lt;TD&gt;aa&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD class="xl67"&gt;-&lt;/TD&gt;&lt;TD class="xl67"&gt;1&lt;/TD&gt;&lt;TD class="xl67"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="15"&gt;Item2&lt;/TD&gt;&lt;TD&gt;bb&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD class="xl67"&gt;0&lt;/TD&gt;&lt;TD class="xl67"&gt;0&lt;/TD&gt;&lt;TD class="xl67"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="15"&gt;Item3&lt;/TD&gt;&lt;TD&gt;cc&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD class="xl67"&gt;-&lt;/TD&gt;&lt;TD class="xl67"&gt;0&lt;/TD&gt;&lt;TD class="xl67"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="15"&gt;Item..n&lt;/TD&gt;&lt;TD&gt;dd&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD class="xl67"&gt;0&lt;/TD&gt;&lt;TD class="xl67"&gt;1&lt;/TD&gt;&lt;TD class="xl67"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank in advance&lt;/P&gt;&lt;P&gt;Finn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Feb 2016 10:27:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hide-columns-in-pivot-table-based-on-sum/m-p/1029453#M939974</guid>
      <dc:creator />
      <dc:date>2016-02-02T10:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: Hide columns in pivot table based on sum</title>
      <link>https://community.qlik.com/t5/QlikView/Hide-columns-in-pivot-table-based-on-sum/m-p/1029454#M939975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could try it with a condition on this column like: sum(TOTAL [After sales]) and/or a calculated dimension like: aggr(if(sum([After sales])&amp;gt;0, Item), Item) and/or a condition within the expression itself like: if(sum([After sales])=0, null(), sum([After sales])) and using the suppress zero-option but not each view-combination will be (practically) possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Feb 2016 12:07:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hide-columns-in-pivot-table-based-on-sum/m-p/1029454#M939975</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-02-02T12:07:54Z</dc:date>
    </item>
    <item>
      <title>Re: Hide columns in pivot table based on sum</title>
      <link>https://community.qlik.com/t5/QlikView/Hide-columns-in-pivot-table-based-on-sum/m-p/1029455#M939976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcus and thanks for your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think placing a condition on the "Stock name" Dimension will work since this will hide either all or none of the stock places (After sales, Main stock, Cons)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Neither do I think suppress zero-values will work regardless of the expression since I want the pivot to suppress zeroes on columns but now rows, and there is no such distinction in the chart options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your suggestion to add a calculated dimension got me thinking and I ended up making a calculated dimension that summarized the total "stock name" balance and display it pivoted "below" "stock name". By placing a condition on the summary where it returns null() if the sum is 0 I could use suppress if value is null on the dimension and almost achieve what I wanted. The only flaw is that it will still remove rows (items) with 0 stock balance where the column summary is 0 (null), though this is pretty rare.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Feb 2016 14:04:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hide-columns-in-pivot-table-based-on-sum/m-p/1029455#M939976</guid>
      <dc:creator />
      <dc:date>2016-02-02T14:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: Hide columns in pivot table based on sum</title>
      <link>https://community.qlik.com/t5/QlikView/Hide-columns-in-pivot-table-based-on-sum/m-p/1029456#M939977</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;To achieve this, we can use set analysis in the expressions and remove null from the expression only. By doing this, the field values in the dimension where there is a null will automatically get removed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The set could be like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Stock&lt;/SPAN&gt;={"=sum(Sales)&amp;gt;=0"}&amp;gt;}Stock)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Feb 2016 08:22:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hide-columns-in-pivot-table-based-on-sum/m-p/1029456#M939977</guid>
      <dc:creator>aapurva09</dc:creator>
      <dc:date>2016-02-03T08:22:26Z</dc:date>
    </item>
  </channel>
</rss>

