<?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 Trying to get TOTAL SALES... in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Trying-to-get-TOTAL-SALES/m-p/247960#M1186459</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, thanks for your reply. &lt;/P&gt;&lt;P&gt;That expression only gave me the total sales if NO movement reason is selected. If i select Wastage, then it displays total sales of 7 which is the sales of the day the wastage was performed.&lt;/P&gt;&lt;P&gt;see below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; This is when i select a movement reason (Wastage)&lt;/P&gt;&lt;P&gt;&lt;IMG alt="waste1.JPG" class="jive-image-thumbnail jive-image" height="54" onclick="" src="https://community.qlik.com/legacyfs/online/7126_waste1.JPG" width="654" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is where no movement selections have been made..&lt;/P&gt;&lt;P&gt;&lt;IMG alt="waste2.JPG" class="jive-image-thumbnail jive-image" height="58" onclick="" src="https://community.qlik.com/legacyfs/online/7128_waste2.JPG" width="654" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the result i want is the 2nd pic but when i reason is selected. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Sep 2011 14:13:16 GMT</pubDate>
    <dc:creator>hopkinsc</dc:creator>
    <dc:date>2011-09-08T14:13:16Z</dc:date>
    <item>
      <title>Trying to get TOTAL SALES...</title>
      <link>https://community.qlik.com/t5/QlikView/Trying-to-get-TOTAL-SALES/m-p/247958#M1186457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, i have a Stock Movement app which i am having trouble displaying TOTAL SALES on. &lt;/P&gt;&lt;P&gt;In the app the user selects the 'Stock Movement' that they wish to view..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e. &lt;/P&gt;&lt;P&gt;Wastage&lt;/P&gt;&lt;P&gt;Reductions&lt;/P&gt;&lt;P&gt;Goods Received &lt;/P&gt;&lt;P&gt;etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am loading in a product sales table and movement table. &lt;/P&gt;&lt;P&gt;After the user selects a Movement Reason (lets say Wastage for this example), only the sales for the day of the wastage is displayed. &lt;/P&gt;&lt;P&gt;I want the app to display the TOTAL SALES for the product regardless of any other movement or not. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See example below of the WRONG result..&lt;/P&gt;&lt;P&gt;&lt;IMG alt="waste.JPG" class="jive-image-thumbnail jive-image" height="105" onclick="" src="https://community.qlik.com/legacyfs/online/7125_waste.JPG" width="846" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the result i want to see is 1 line (as its only the top line that has waste against it) but with the total sales of 44, not 7.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know how i can achieve this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2011 13:34:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trying-to-get-TOTAL-SALES/m-p/247958#M1186457</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2011-09-08T13:34:04Z</dc:date>
    </item>
    <item>
      <title>Trying to get TOTAL SALES...</title>
      <link>https://community.qlik.com/t5/QlikView/Trying-to-get-TOTAL-SALES/m-p/247959#M1186458</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;You should be able to get this with teh aggr function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aggr(NODISTINCT Sum(Total Sales Qty), Product Code)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2011 13:59:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trying-to-get-TOTAL-SALES/m-p/247959#M1186458</guid>
      <dc:creator />
      <dc:date>2011-09-08T13:59:07Z</dc:date>
    </item>
    <item>
      <title>Trying to get TOTAL SALES...</title>
      <link>https://community.qlik.com/t5/QlikView/Trying-to-get-TOTAL-SALES/m-p/247960#M1186459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, thanks for your reply. &lt;/P&gt;&lt;P&gt;That expression only gave me the total sales if NO movement reason is selected. If i select Wastage, then it displays total sales of 7 which is the sales of the day the wastage was performed.&lt;/P&gt;&lt;P&gt;see below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; This is when i select a movement reason (Wastage)&lt;/P&gt;&lt;P&gt;&lt;IMG alt="waste1.JPG" class="jive-image-thumbnail jive-image" height="54" onclick="" src="https://community.qlik.com/legacyfs/online/7126_waste1.JPG" width="654" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is where no movement selections have been made..&lt;/P&gt;&lt;P&gt;&lt;IMG alt="waste2.JPG" class="jive-image-thumbnail jive-image" height="58" onclick="" src="https://community.qlik.com/legacyfs/online/7128_waste2.JPG" width="654" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the result i want is the 2nd pic but when i reason is selected. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2011 14:13:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trying-to-get-TOTAL-SALES/m-p/247960#M1186459</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2011-09-08T14:13:16Z</dc:date>
    </item>
    <item>
      <title>Trying to get TOTAL SALES...</title>
      <link>https://community.qlik.com/t5/QlikView/Trying-to-get-TOTAL-SALES/m-p/247961#M1186460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; try changing the sum( to sum(TOTAL ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that does not work can you post me some sample data and i will work at it here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2011 15:31:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trying-to-get-TOTAL-SALES/m-p/247961#M1186460</guid>
      <dc:creator />
      <dc:date>2011-09-08T15:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to get TOTAL SALES...</title>
      <link>https://community.qlik.com/t5/QlikView/Trying-to-get-TOTAL-SALES/m-p/247962#M1186461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi mark, that didn't work either...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;attached is a sample.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you look at it as it is, the sales values are correct.&lt;/P&gt;&lt;P&gt;but if you select GFSU from the bottom left, the sales value changes to the sales where GFSU took place. I want the sales values to always display the sales correctly for the dates selected...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for looking..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2011 15:50:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trying-to-get-TOTAL-SALES/m-p/247962#M1186461</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2011-09-08T15:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to get TOTAL SALES...</title>
      <link>https://community.qlik.com/t5/QlikView/Trying-to-get-TOTAL-SALES/m-p/247963#M1186462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi, I am new to Qlikview myself but I know you can do this, I think it is via Set Analysis where you can set a value based on selections but ignoring the selections in a specific field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will work that through on your file and advise, sorry for delay !!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2011 15:52:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trying-to-get-TOTAL-SALES/m-p/247963#M1186462</guid>
      <dc:creator />
      <dc:date>2011-09-08T15:52:28Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to get TOTAL SALES...</title>
      <link>https://community.qlik.com/t5/QlikView/Trying-to-get-TOTAL-SALES/m-p/247964#M1186463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thats great, thanks mark. No rush, i am going home now, back in on Monday &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2011 15:55:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trying-to-get-TOTAL-SALES/m-p/247964#M1186463</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2011-09-08T15:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to get TOTAL SALES...</title>
      <link>https://community.qlik.com/t5/QlikView/Trying-to-get-TOTAL-SALES/m-p/247965#M1186464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; If i have got what you are after&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(TOTAL {$&amp;lt;[Stock Reason] = &amp;gt;} SalesQuantity)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will preserve all of your other selections, Dept etc but will ignore any selections made in the Stock Reason Field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2011 16:00:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trying-to-get-TOTAL-SALES/m-p/247965#M1186464</guid>
      <dc:creator />
      <dc:date>2011-09-08T16:00:40Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to get TOTAL SALES...</title>
      <link>https://community.qlik.com/t5/QlikView/Trying-to-get-TOTAL-SALES/m-p/247966#M1186465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Morning Mark, thanks for this expression.&lt;/P&gt;&lt;P&gt;It works as expected if i am only viewing 1 product. But if i am viewing multiple products then it sums up the complete sales for all products viewed. &lt;/P&gt;&lt;P&gt;I have attached another sample (as the first sample only had 1 product)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you look at the chart as it is, you will see that the sales on all prodycts are the same (161)&lt;/P&gt;&lt;P&gt;If you then select the first product (Product code ID8543) the sales drop to 10 (which is correct for this product) from this point on the expression works. But i would need it to work no matter how many products were being displayed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you help with this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2011 08:21:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trying-to-get-TOTAL-SALES/m-p/247966#M1186465</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2011-09-12T08:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to get TOTAL SALES...</title>
      <link>https://community.qlik.com/t5/QlikView/Trying-to-get-TOTAL-SALES/m-p/247967#M1186466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry Mark, ignore my last reply &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; i removed the TOTAL from the expression and it works as expected. Thanks for your help &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2011 08:37:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trying-to-get-TOTAL-SALES/m-p/247967#M1186466</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2011-09-12T08:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to get TOTAL SALES...</title>
      <link>https://community.qlik.com/t5/QlikView/Trying-to-get-TOTAL-SALES/m-p/247968#M1186468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Good show.&amp;nbsp; are you able to flag this as answered?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2011 14:39:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trying-to-get-TOTAL-SALES/m-p/247968#M1186468</guid>
      <dc:creator />
      <dc:date>2011-09-12T14:39:23Z</dc:date>
    </item>
  </channel>
</rss>

