<?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: Year to Date figure in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Year-to-Date-figure/m-p/1023297#M346022</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny for the quick feedback.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The table results are correct although when i do select a month, it's not working :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where it should looks like : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/114480_Capture.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;output table is shown as below :&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/114479_Capture.JPG" style="height: 395px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Guillaume&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Feb 2016 14:36:43 GMT</pubDate>
    <dc:creator>guillaume_gorli</dc:creator>
    <dc:date>2016-02-12T14:36:43Z</dc:date>
    <item>
      <title>Year to Date figure</title>
      <link>https://community.qlik.com/t5/QlikView/Year-to-Date-figure/m-p/1023295#M346020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to build a Yeart to date figure based on the user selection. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me explain :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using below test table with two colums : Date and Sales&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 160px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" width="80"&gt;Date&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="80"&gt;Sales&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;01/01/2015&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;15&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;03/01/2015&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;16/02/2015&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;17/02/2015&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;7&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;19/02/2015&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;12&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;01/03/2015&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;01/04/2015&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;28&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;25/05/2015&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;85&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;01/01/2016&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;10/01/2016&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;15&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;01/02/2016&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;10/02/2016&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;25/02/2016&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;35&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;01/03/2016&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;15&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;01/04/2016&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;17&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;01/05/2016&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;35&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;01/05/2016&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;40&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on the period selection i need to sum this up in a table showing sales by month, sales by month of the previous year, year to date sales and year to date sales of the previous year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No issue to get the sales per month as well as the sales for the period of the previous year...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/114468_Capture.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i can't manage to get the year to date results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If year 2016 is selected, final output should be like below table :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/114467_Capture.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Atteched is .qvw as well as excel database for the ones who want to help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Guillaume&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Feb 2016 14:19:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-to-Date-figure/m-p/1023295#M346020</guid>
      <dc:creator>guillaume_gorli</dc:creator>
      <dc:date>2016-02-12T14:19:04Z</dc:date>
    </item>
    <item>
      <title>Re: Year to Date figure</title>
      <link>https://community.qlik.com/t5/QlikView/Year-to-Date-figure/m-p/1023296#M346021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try these expressions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(Sum (Sales) &amp;gt; 0, RangeSum(Above(Sum(Sales), 0, RowNo())))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=If(Sum (Sales) &amp;gt; 0, RangeSum(Above(Sum({$&amp;lt;[Année]={$(=only(Année)-1)},Mois= {JAN,FEB,MAR,APR,MAY,JUN,JUL,AUG,SEP,OCT,NOV,DEC}&amp;gt;}Sales), 0, RowNo())))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/114473_Capture.PNG" style="height: 407px; width: 620px;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Feb 2016 14:22:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-to-Date-figure/m-p/1023296#M346021</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-02-12T14:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: Year to Date figure</title>
      <link>https://community.qlik.com/t5/QlikView/Year-to-Date-figure/m-p/1023297#M346022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny for the quick feedback.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The table results are correct although when i do select a month, it's not working :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where it should looks like : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/114480_Capture.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;output table is shown as below :&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/114479_Capture.JPG" style="height: 395px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Guillaume&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Feb 2016 14:36:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-to-Date-figure/m-p/1023297#M346022</guid>
      <dc:creator>guillaume_gorli</dc:creator>
      <dc:date>2016-02-12T14:36:43Z</dc:date>
    </item>
    <item>
      <title>Re: Year to Date figure</title>
      <link>https://community.qlik.com/t5/QlikView/Year-to-Date-figure/m-p/1023298#M346023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Change Sale Y-1 formula to this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=If(Sum (Sales)&amp;gt; 0,Sum({$&amp;lt;[Année]={$(=only(Année)-1)},Mois= {JAN,FEB,MAR,APR,MAY,JUN,JUL,AUG,SEP,OCT,NOV,DEC}&amp;gt;}(Sales)))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/114474_Capture.PNG" style="height: 335px; width: 620px;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Feb 2016 14:39:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-to-Date-figure/m-p/1023298#M346023</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-02-12T14:39:12Z</dc:date>
    </item>
    <item>
      <title>Re: Year to Date figure</title>
      <link>https://community.qlik.com/t5/QlikView/Year-to-Date-figure/m-p/1023299#M346024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny, it's perfect !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Feb 2016 14:46:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-to-Date-figure/m-p/1023299#M346024</guid>
      <dc:creator>guillaume_gorli</dc:creator>
      <dc:date>2016-02-12T14:46:54Z</dc:date>
    </item>
    <item>
      <title>Re: Year to Date figure</title>
      <link>https://community.qlik.com/t5/QlikView/Year-to-Date-figure/m-p/1023300#M346025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is another method:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Date,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sales&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[TEST YTD.xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Feuil1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff0000;"&gt;Join (Feuil1)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;LOAD Date(AddYears(Date, 1)) as Date,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;&amp;nbsp; Sales as Previous_Sales&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff0000;"&gt;Resident Feuil1;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;Expression1:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1) Sum (Sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2) Sum (Previous_Sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3) If(Sum (Sales) &amp;gt; 0, RangeSum(Above(Sum(Sales), 0, RowNo())))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;4) If(Sum (Sales) &amp;gt; 0, RangeSum(Above(Sum({&amp;lt;Mois&amp;gt;}Previous_Sales), 0, RowNo())))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output will still stay the same.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Feb 2016 14:54:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-to-Date-figure/m-p/1023300#M346025</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-02-12T14:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: Year to Date figure</title>
      <link>https://community.qlik.com/t5/QlikView/Year-to-Date-figure/m-p/1023301#M346026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear sunny, i am creating a new topic as i am still struggling with this app...I will define more precisely what are the final output needed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Feb 2016 14:41:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-to-Date-figure/m-p/1023301#M346026</guid>
      <dc:creator>guillaume_gorli</dc:creator>
      <dc:date>2016-02-18T14:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: Year to Date figure</title>
      <link>https://community.qlik.com/t5/QlikView/Year-to-Date-figure/m-p/1023302#M346027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sounds good &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Feb 2016 14:49:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-to-Date-figure/m-p/1023302#M346027</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-02-18T14:49:45Z</dc:date>
    </item>
  </channel>
</rss>

