<?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: Sum plus selection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-plus-selection/m-p/723296#M1054771</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;I'd use a set analysis syntax like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Year=&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;{"&amp;lt;$(=vMinYear)&lt;/SPAN&gt;"}&amp;gt;} Customers) + sum(Customers)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where vMinYear = Min(Year) as a Variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Oct 2014 13:35:09 GMT</pubDate>
    <dc:creator>thierrytt1102</dc:creator>
    <dc:date>2014-10-14T13:35:09Z</dc:date>
    <item>
      <title>Sum plus selection</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-plus-selection/m-p/723295#M1054770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI, i have a query which looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;DATE(c.date_register) AS DATECAST, &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;COUNT(c.id) AS customers&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;FROM customer c&lt;/P&gt;&lt;P&gt;GROUP BY DATE(c.date_register)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it gives me the number of new customers per date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i want&amp;nbsp; a chart, where i have on the left a selection of years, and in the graph the sum of the customers.&lt;/P&gt;&lt;P&gt;I managed to do this, but only i have 1 problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example: when i select the years 2013 and 2014 in a list, i want the graph to start with the sum of customers until 2013, and then add the sum of customers for the years i selected (2013 and 2014), per year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks!!!&lt;/P&gt;&lt;P&gt;&lt;IMG alt="customers.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/68865_customers.jpg" style="width: 620px; height: 248px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2014 13:18:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-plus-selection/m-p/723295#M1054770</guid>
      <dc:creator />
      <dc:date>2014-10-14T13:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: Sum plus selection</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-plus-selection/m-p/723296#M1054771</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;I'd use a set analysis syntax like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Year=&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;{"&amp;lt;$(=vMinYear)&lt;/SPAN&gt;"}&amp;gt;} Customers) + sum(Customers)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where vMinYear = Min(Year) as a Variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2014 13:35:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-plus-selection/m-p/723296#M1054771</guid>
      <dc:creator>thierrytt1102</dc:creator>
      <dc:date>2014-10-14T13:35:09Z</dc:date>
    </item>
  </channel>
</rss>

