<?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: Calculating total percentage when suppressing rows in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculating-total-percentage-when-suppressing-rows/m-p/593207#M219901</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See attached qvw.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Apr 2014 18:41:36 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2014-04-02T18:41:36Z</dc:date>
    <item>
      <title>Calculating total percentage when suppressing rows</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-total-percentage-when-suppressing-rows/m-p/593206#M219900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement to suppress all rows in a chart based on the value of one of the expressions.&amp;nbsp; A fairly standard request.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can suppress the rows using dimension limits or a hidden expression, however, I cannot seem to get the total correct for an expression that shows a percentage.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached a sample application to demonstrate the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The application has 4 charts:&lt;/P&gt;&lt;P&gt;Chart 1 - All rows displayed.&amp;nbsp; No condition to suppress rows.&lt;/P&gt;&lt;P&gt;Chart 2 - Rows suppressed using an expression.&amp;nbsp; Expression totals calculated using Sum of Rows.&lt;/P&gt;&lt;P&gt;Chart 3 - Rows suppressed using dimension limits.&amp;nbsp; Expression totals calculated using Expression Total.&lt;/P&gt;&lt;P&gt;Chart 4 - Rows suppressed using dimension limits.&amp;nbsp; Expression totals calculated using Sum of Rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When suppressing rows, I cannot get the Cost /&amp;nbsp; Sales expression to show the correct value.&amp;nbsp; The value should be 15 / 50 = 30%.&lt;/P&gt;&lt;P&gt;Also, when suppressing rows and using Total Mode Expresson Total, the totals for all columns are not correct.&amp;nbsp; Suppressed row values are included in the total.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The total I want in the chart should be:&amp;nbsp; Total Sales - 50, Total Cost - 15, Cost / Sales - 30%.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help with these two issues would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;John.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2014 17:58:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-total-percentage-when-suppressing-rows/m-p/593206#M219900</guid>
      <dc:creator>john_duffy</dc:creator>
      <dc:date>2014-04-02T17:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating total percentage when suppressing rows</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-total-percentage-when-suppressing-rows/m-p/593207#M219901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See attached qvw.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2014 18:41:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-total-percentage-when-suppressing-rows/m-p/593207#M219901</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-04-02T18:41:36Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating total percentage when suppressing rows</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-total-percentage-when-suppressing-rows/m-p/593208#M219902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the suggestion Gysbert.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will try it in my actual application to verify performance. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did try the following calculated dimension with the suppress when value is null option selected, however, it was too big of a hit on performance:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(aggr(sum(Field A) - sum(Field B),dim1,dim2,dim3,dim4) &amp;gt; 0,1,null())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will take a while to set up and reload.&amp;nbsp; I will get back to you with the results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2014 19:26:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-total-percentage-when-suppressing-rows/m-p/593208#M219902</guid>
      <dc:creator>john_duffy</dc:creator>
      <dc:date>2014-04-02T19:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating total percentage when suppressing rows</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-total-percentage-when-suppressing-rows/m-p/593209#M219903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gysbert.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The performance of your suggested code was great when I applied it to my application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for you help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2014 14:31:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-total-percentage-when-suppressing-rows/m-p/593209#M219903</guid>
      <dc:creator>john_duffy</dc:creator>
      <dc:date>2014-04-03T14:31:14Z</dc:date>
    </item>
  </channel>
</rss>

