<?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 Help with displaying total sales qty in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-with-displaying-total-sales-qty/m-p/287574#M1204190</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When suppressing the null values, the expression total will ignore the values returned by the null dimensions so you have to do something like below where you have one formula for the total and another for the rest of the table. We recognize the total row because it has dimensionality() equal to 0.&lt;/P&gt;&lt;P&gt;if(dimensionality()=0,sum({$&amp;lt;LineType -= {V}&amp;gt;} Total SalesQuantity ),sum({$&amp;lt;LineType -= {V}&amp;gt;} SalesQuantity ))&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Nov 2010 15:45:02 GMT</pubDate>
    <dc:creator>pover</dc:creator>
    <dc:date>2010-11-10T15:45:02Z</dc:date>
    <item>
      <title>Help with displaying total sales qty</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-displaying-total-sales-qty/m-p/287573#M1204188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to get a total of sales qty.&lt;/P&gt;&lt;P&gt;Here is what i need...&lt;/P&gt;&lt;P&gt;I am displaying all products that have been sold as 'Reduced to Clear', but i also want to display a column showing ALL sales (at reduced or normal price)&lt;/P&gt;&lt;P&gt;There is a field called 'PriceOverride' which states 'yes' or 'no' if the product was sold reduced to clear or not. I have added a calculated dimension to only display PriceOverride=yes and to hide null values. but when i do that the total sales only show reduced sales.&lt;/P&gt;&lt;P&gt;here are screenshots of what i have done&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-2799_sourceID:2799" /&gt;&lt;/P&gt;&lt;P&gt;Above shows 'hide null values' unticked but the sales quantity is correct. i.e. sales value =3, reduced sales QTY=1&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-2800_sourceID:2800" /&gt;&lt;/P&gt;&lt;P&gt;Above shows 'hide null values' ticked, so it only displays reduced to clear sales, but the sales value =1 when i want this to display total sales which is 3.&lt;/P&gt;&lt;P&gt;the expession i am using for Total Sales is: sum( {$&amp;lt;LineType -= {V}, PriceOverride = {"*"}&amp;gt;} SalesQuantity )&lt;/P&gt;&lt;P&gt;which i believe means sum sales quantity but deduct LineType V and include ALL PriceOverrides (yes and no).&lt;/P&gt;&lt;P&gt;Can anyone help please?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Nov 2010 15:07:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-displaying-total-sales-qty/m-p/287573#M1204188</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2010-11-10T15:07:33Z</dc:date>
    </item>
    <item>
      <title>Help with displaying total sales qty</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-displaying-total-sales-qty/m-p/287574#M1204190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When suppressing the null values, the expression total will ignore the values returned by the null dimensions so you have to do something like below where you have one formula for the total and another for the rest of the table. We recognize the total row because it has dimensionality() equal to 0.&lt;/P&gt;&lt;P&gt;if(dimensionality()=0,sum({$&amp;lt;LineType -= {V}&amp;gt;} Total SalesQuantity ),sum({$&amp;lt;LineType -= {V}&amp;gt;} SalesQuantity ))&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Nov 2010 15:45:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-displaying-total-sales-qty/m-p/287574#M1204190</guid>
      <dc:creator>pover</dc:creator>
      <dc:date>2010-11-10T15:45:02Z</dc:date>
    </item>
    <item>
      <title>Help with displaying total sales qty</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-displaying-total-sales-qty/m-p/287575#M1204192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Karl, thanks for your reply..&lt;/P&gt;&lt;P&gt;That worked, but i have just realised that the user would be looking at more than one product at a time, so i would want to 'No Totals' selected on the expression otherwise it would display total sales for all products displayed.&lt;/P&gt;&lt;P&gt;Instead i would want the 'Total sales' to be on the same line as the product.&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/674/8512.PriceOver3.JPG"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/674/8512.PriceOver3.JPG" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So above, i waould want the 'Sales Quantity' to display 3 not 1 instead of a total on top.&lt;/P&gt;&lt;P&gt;Is this possible please?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Nov 2010 15:54:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-displaying-total-sales-qty/m-p/287575#M1204192</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2010-11-10T15:54:38Z</dc:date>
    </item>
    <item>
      <title>Help with displaying total sales qty</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-displaying-total-sales-qty/m-p/287576#M1204194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Any more help with this anyone?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Nov 2010 16:23:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-displaying-total-sales-qty/m-p/287576#M1204194</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2010-11-10T16:23:40Z</dc:date>
    </item>
    <item>
      <title>Help with displaying total sales qty</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-displaying-total-sales-qty/m-p/287577#M1204195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try the following expression&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;LineType -= {V}&amp;gt;} Total &amp;lt;[Prod Desc]&amp;gt; SalesQuantity ))&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Nov 2010 17:33:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-displaying-total-sales-qty/m-p/287577#M1204195</guid>
      <dc:creator>pover</dc:creator>
      <dc:date>2010-11-10T17:33:29Z</dc:date>
    </item>
    <item>
      <title>Help with displaying total sales qty</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-displaying-total-sales-qty/m-p/287578#M1204196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, that didn't work either.&lt;/P&gt;&lt;P&gt;I have tried&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;LineType -= {V}&amp;gt;} Total SalesQuantity ))&lt;/P&gt;&lt;P&gt;which works if i am only looking at ONE product, but if i there is more than one product displayed, the expression totals up ALL sales for ALL products displayed.&lt;/P&gt;&lt;P&gt;see my example below..&lt;/P&gt;&lt;P&gt;Can anyone tell me how to display the total sales per product?&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/674/7607.PriceOver1.JPG"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/674/7607.PriceOver1.JPG" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/674/5875.PriceOver2.JPG"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/674/5875.PriceOver2.JPG" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Nov 2010 10:32:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-displaying-total-sales-qty/m-p/287578#M1204196</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2010-11-11T10:32:31Z</dc:date>
    </item>
    <item>
      <title>Help with displaying total sales qty</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-displaying-total-sales-qty/m-p/287579#M1204197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can anyone help with this please?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Nov 2010 11:16:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-displaying-total-sales-qty/m-p/287579#M1204197</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2010-11-11T11:16:42Z</dc:date>
    </item>
    <item>
      <title>Help with displaying total sales qty</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-displaying-total-sales-qty/m-p/287580#M1204198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But don't just use Total. Notice the example I put has another field after Total &amp;lt;[Prod Desc]&amp;gt;, which is the field you are going to limit your total to. In your case, you can also try Total &amp;lt;[Product Code]&amp;gt;. In that way it won't give you the grand total when nothing is selected.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Nov 2010 14:15:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-displaying-total-sales-qty/m-p/287580#M1204198</guid>
      <dc:creator>pover</dc:creator>
      <dc:date>2010-11-11T14:15:52Z</dc:date>
    </item>
    <item>
      <title>Help with displaying total sales qty</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-displaying-total-sales-qty/m-p/287581#M1204199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help Karl, I did try that but it still didn't work when i have mutiple products shown.&lt;/P&gt;&lt;P&gt;I have managed to do it now though by using the expression:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;sum(aggr(sum({$&amp;lt;LineType -= {V}&amp;gt;} total &amp;lt;EAN&amp;gt; SalesQuantity),[Cust Name],[Product Code],[Prod Desc],EAN,Size,PriceOverride))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Nov 2010 14:21:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-displaying-total-sales-qty/m-p/287581#M1204199</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2010-11-11T14:21:48Z</dc:date>
    </item>
  </channel>
</rss>

