<?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: Why No Totals? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Why-No-Totals/m-p/932462#M322214</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you seen on the bottom of the table?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Sep 2015 08:50:56 GMT</pubDate>
    <dc:creator>alexandros17</dc:creator>
    <dc:date>2015-09-11T08:50:56Z</dc:date>
    <item>
      <title>Why No Totals?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-No-Totals/m-p/932461#M322213</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;&lt;/P&gt;&lt;P&gt;I have the following formula in my Pivot Table to calculate Excess Stock Value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&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;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;pro_FamilyCode&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {01, 02}&amp;gt; } &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;inm_OnHandCostQty&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) - &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;pro_FamilyCode&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {01, 02}&amp;gt; } &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;con_CostQuantity&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &amp;gt; 0, &lt;BR /&gt; &lt;BR /&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;pro_FamilyCode&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {01, 02}&amp;gt; } &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;inm_OnHandValue&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) / &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;pro_FamilyCode&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {01, 02}&amp;gt; } &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;inm_OnHandCostQty&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) * &lt;BR /&gt; &lt;BR /&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;pro_FamilyCode&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {01, 02}&amp;gt; } &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;inm_OnHandCostQty&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) - &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;pro_FamilyCode&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {01, 02}&amp;gt; } &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;con_CostQuantity&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)),&lt;BR /&gt; &lt;BR /&gt; 0) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;This is calculating our excess stock value on a line by line basis.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;I have click "Show Partial Sums" but none are being displayed.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Any ideas?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Paul&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2015 08:46:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-No-Totals/m-p/932461#M322213</guid>
      <dc:creator>pkelly</dc:creator>
      <dc:date>2015-09-11T08:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: Why No Totals?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-No-Totals/m-p/932462#M322214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you seen on the bottom of the table?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2015 08:50:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-No-Totals/m-p/932462#M322214</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2015-09-11T08:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: Why No Totals?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-No-Totals/m-p/932463#M322215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I expect that the conditional is returning false when it is being evaluated at the partial sum level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can test this by adding the test expression:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;pro_FamilyCode&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; = {01, 02}&amp;gt; } &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;inm_OnHandCostQty&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;) - &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;pro_FamilyCode&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; = {01, 02}&amp;gt; } &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;con_CostQuantity&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this evaluate to &amp;gt;0? If not, your main expression will return 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;You could try an expression that use Dimensionality() to make the expression depending on the level at which it is being evaluated.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2015 08:52:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-No-Totals/m-p/932463#M322215</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-09-11T08:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: Why No Totals?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-No-Totals/m-p/932464#M322216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You will need to use &lt;STRONG&gt;Sum(Aggr(YourCurrentExpression, YourDimensions))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2015 09:01:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-No-Totals/m-p/932464#M322216</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-09-11T09:01:19Z</dc:date>
    </item>
    <item>
      <title>Re: Why No Totals?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-No-Totals/m-p/932465#M322217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, have scrolled down to the bottom and no totals are there.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2015 09:02:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-No-Totals/m-p/932465#M322217</guid>
      <dc:creator>pkelly</dc:creator>
      <dc:date>2015-09-11T09:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: Why No Totals?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-No-Totals/m-p/932466#M322218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am giving the user the ability to hide / display dimensions - how would this work with that i.e. if I include a dimension in the aggregation but they have chosen not to display it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2015 09:04:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-No-Totals/m-p/932466#M322218</guid>
      <dc:creator>pkelly</dc:creator>
      <dc:date>2015-09-11T09:04:16Z</dc:date>
    </item>
    <item>
      <title>Re: Why No Totals?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-No-Totals/m-p/932467#M322219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am getting both positive and negative results - only want to see the positive results.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2015 09:06:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-No-Totals/m-p/932467#M322219</guid>
      <dc:creator>pkelly</dc:creator>
      <dc:date>2015-09-11T09:06:13Z</dc:date>
    </item>
    <item>
      <title>Re: Why No Totals?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-No-Totals/m-p/932468#M322220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;Paul Kelly wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I am getting both positive and negative results - only want to see the positive results.&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;In the partial totals as well? Do you get a value when the test expression is positive in the partial total lines?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2015 09:10:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-No-Totals/m-p/932468#M322220</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-09-11T09:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: Why No Totals?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-No-Totals/m-p/932469#M322221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes I do...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2015 09:11:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-No-Totals/m-p/932469#M322221</guid>
      <dc:creator>pkelly</dc:creator>
      <dc:date>2015-09-11T09:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: Why No Totals?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-No-Totals/m-p/932470#M322222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But then I am not sure if I understand your problem. You say you don't want the values when they (test expression values) are negative and you are getting values when they are positive; so what is missing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or do you want the partial total to add the details having a positive test expression value and not the negatives? Then you need&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(Aggr(&lt;/P&gt;&lt;P&gt;&amp;nbsp; If((Sum({&amp;lt;pro_FamilyCode = {01, 02}&amp;gt; } inm_OnHandCostQty) - Sum({&amp;lt;pro_FamilyCode = {01, 02}&amp;gt; } con_CostQuantity)) &amp;gt; 0,&lt;/P&gt;&lt;P&gt;&amp;nbsp; (Sum({&amp;lt;pro_FamilyCode = {01, 02}&amp;gt; } inm_OnHandValue) / Sum({&amp;lt;pro_FamilyCode = {01, 02}&amp;gt; } inm_OnHandCostQty)) *&lt;/P&gt;&lt;P&gt;&amp;nbsp; (Sum({&amp;lt;pro_FamilyCode = {01, 02}&amp;gt; } inm_OnHandCostQty) - Sum({&amp;lt;pro_FamilyCode = {01, 02}&amp;gt; } con_CostQuantity)), 0)&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; , &amp;lt;dim1&amp;gt;, &amp;lt;dim2&amp;gt;, ....&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Replace &lt;EM style="font-size: 13.3333px;"&gt;&amp;lt;dim1&amp;gt;, &amp;lt;dim2&amp;gt;, ....&lt;/EM&gt;with a comma separated list of your table dimensions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2015 09:22:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-No-Totals/m-p/932470#M322222</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-09-11T09:22:02Z</dc:date>
    </item>
    <item>
      <title>Re: Why No Totals?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-No-Totals/m-p/932471#M322223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Apologies if I am causing confusion...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I tried the test that you suggested, my detail lines are showing positive and negative values and I am receiving totals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue I have is that, when I exclude the negative values, the total's disappear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will try your suggestion above.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2015 09:37:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-No-Totals/m-p/932471#M322223</guid>
      <dc:creator>pkelly</dc:creator>
      <dc:date>2015-09-11T09:37:34Z</dc:date>
    </item>
  </channel>
</rss>

