<?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 Set Analysis Doubling YTD Numbers in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Doubling-YTD-Numbers/m-p/583725#M216721</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a Container that has a "Comparative Sales Analysis By Customer and Item" straight table that shows a Month sales column and a YTD sales column for the year.&amp;nbsp; The issue is the Month and YTD columns are doubling up.&amp;nbsp; For example, when I filter on the list box Year = 2013 and list box Month = Jan, the Month sales amount equals the YTD amount, but the amounts are doubling.&amp;nbsp; The month sales amount should be $400 and the same for the YTD column.&amp;nbsp; The proof is on the Salesperson Analysis sheet on the straight table called "Sales Rep Orders" I added a Bookmark called "M303-128" as the controlled filter.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My set expression is the issue, but I'm not sure what the problem is.&amp;nbsp; I attached the qvw for reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance for any assistance.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Apr 2014 01:46:10 GMT</pubDate>
    <dc:creator>asmithids</dc:creator>
    <dc:date>2014-04-01T01:46:10Z</dc:date>
    <item>
      <title>Set Analysis Doubling YTD Numbers</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Doubling-YTD-Numbers/m-p/583725#M216721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a Container that has a "Comparative Sales Analysis By Customer and Item" straight table that shows a Month sales column and a YTD sales column for the year.&amp;nbsp; The issue is the Month and YTD columns are doubling up.&amp;nbsp; For example, when I filter on the list box Year = 2013 and list box Month = Jan, the Month sales amount equals the YTD amount, but the amounts are doubling.&amp;nbsp; The month sales amount should be $400 and the same for the YTD column.&amp;nbsp; The proof is on the Salesperson Analysis sheet on the straight table called "Sales Rep Orders" I added a Bookmark called "M303-128" as the controlled filter.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My set expression is the issue, but I'm not sure what the problem is.&amp;nbsp; I attached the qvw for reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance for any assistance.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Apr 2014 01:46:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Doubling-YTD-Numbers/m-p/583725#M216721</guid>
      <dc:creator>asmithids</dc:creator>
      <dc:date>2014-04-01T01:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Doubling YTD Numbers</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Doubling-YTD-Numbers/m-p/583726#M216722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure which is right but if you sum quantity in your second table as well it will match your set analysis.&amp;nbsp; If you don't want that the below equation should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;count(&lt;/STRONG&gt;&lt;/SPAN&gt;{$&amp;lt;Year = {$(=max(Year))}, Month = {"&amp;lt;=$(=max({&amp;lt;Year={$(=max(Year))}&amp;gt;} Month))"}&amp;gt;} &lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;distinct&lt;/STRONG&gt;&lt;/SPAN&gt; Quantity) * UnitCost&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Apr 2014 02:23:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Doubling-YTD-Numbers/m-p/583726#M216722</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-01T02:23:25Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Doubling YTD Numbers</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Doubling-YTD-Numbers/m-p/583727#M216723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for responding.&amp;nbsp; The sum on the second table (i.e. &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Sales Rep Orders&lt;/SPAN&gt;) is the correct amount.&amp;nbsp; The issue is I can't get the &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;"Comparative Sales Analysis By Customer and Item" current monthly sales to sum the total sales for the month.&amp;nbsp; When I include the Reference (i.e. invoice number) in the &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Comparative Sales Analysis By Customer and Item table I do get the correct monthly sales amount.&amp;nbsp; However, I don't want to include that level of detail on that table.&amp;nbsp; I can't get it to sum all of the invoices to a total.&amp;nbsp; It is just summing the first invoice is finds per customer and is ignoring the other invoices for that customer.&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I even tried a simple Sum(Quantity * UnitCost) as the monthly sales calculation, but that expression doubles the current sales amount to $800 when it should be $400 when filtering for 2013, Jan as shown on the &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Sales Rep Orders&lt;/SPAN&gt; table. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2014 12:34:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Doubling-YTD-Numbers/m-p/583727#M216723</guid>
      <dc:creator>asmithids</dc:creator>
      <dc:date>2014-04-02T12:34:07Z</dc:date>
    </item>
  </channel>
</rss>

