<?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 YTD Calculation For Specific Date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/YTD-Calculation-For-Specific-Date/m-p/153082#M30271</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;Probably a simple question really but here goes. I have an application whereby I want to build a YTD, MTD and QTD sales total within a Straight Table. I want the user to be able to click on a specific date (e.g. 28/02/2008) and be able to get the sales totals up to that date.&lt;/P&gt;&lt;P&gt;So for example if the user selects 28/02/2008 as a date from a list box, then the YTD sales will consist of all sales values from 01/01/2008 up to and inclusive of 28/02/2008. I also need to create the same but for the previous year so that the sales total would show 01/01/2007 to 28/02/2007.&lt;/P&gt;&lt;P&gt;Not really sure how to go about this, i've tried playing with if statements but have failed in creating a solution.&lt;/P&gt;&lt;P&gt;Any ideas anyone?&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Aug 2009 18:42:36 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-08-10T18:42:36Z</dc:date>
    <item>
      <title>YTD Calculation For Specific Date</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-Calculation-For-Specific-Date/m-p/153082#M30271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;Probably a simple question really but here goes. I have an application whereby I want to build a YTD, MTD and QTD sales total within a Straight Table. I want the user to be able to click on a specific date (e.g. 28/02/2008) and be able to get the sales totals up to that date.&lt;/P&gt;&lt;P&gt;So for example if the user selects 28/02/2008 as a date from a list box, then the YTD sales will consist of all sales values from 01/01/2008 up to and inclusive of 28/02/2008. I also need to create the same but for the previous year so that the sales total would show 01/01/2007 to 28/02/2007.&lt;/P&gt;&lt;P&gt;Not really sure how to go about this, i've tried playing with if statements but have failed in creating a solution.&lt;/P&gt;&lt;P&gt;Any ideas anyone?&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2009 18:42:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-Calculation-For-Specific-Date/m-p/153082#M30271</guid>
      <dc:creator />
      <dc:date>2009-08-10T18:42:36Z</dc:date>
    </item>
    <item>
      <title>YTD Calculation For Specific Date</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-Calculation-For-Specific-Date/m-p/153083#M30272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again Guys,&lt;/P&gt;&lt;P&gt;Dont worry, cracked it, or at least I think so. For anyone interest this is the way I built the solution:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;YTD - sum({1 &amp;lt; Report_DATE = {'&amp;gt;=$(=date(yearstart(Report_DATE))) &amp;lt;=$(=date(Report_DATE))'} &amp;gt;} Calc_Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QTD - sum({1 &amp;lt; Report_DATE = {'&amp;gt;=$(=date(quarterstart(Report_DATE))) &amp;lt;=$(=date(Report_DATE))'} &amp;gt;} Calc_Sales)&lt;/P&gt;&lt;P&gt;MTD - sum({1 &amp;lt; Report_DATE = {'&amp;gt;=$(=date(monthstart(Report_DATE))) &amp;lt;=$(=date(Report_DATE))'} &amp;gt;} Calc_Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tryng to get the previous year ones working now, which should be fun.&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, 10 Aug 2009 20:37:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-Calculation-For-Specific-Date/m-p/153083#M30272</guid>
      <dc:creator />
      <dc:date>2009-08-10T20:37:05Z</dc:date>
    </item>
    <item>
      <title>YTD Calculation For Specific Date</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-Calculation-For-Specific-Date/m-p/153084#M30273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi paul,&lt;/P&gt;&lt;P&gt;I just go through your MTD solution . Exact similar type of expression i have written and it is working well but i want at this time MTD of prev month also. Can you give me any idea to solve ??? I treid with addmonth but it is giving 0.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Nov 2009 13:52:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-Calculation-For-Specific-Date/m-p/153084#M30273</guid>
      <dc:creator>qliksus</dc:creator>
      <dc:date>2009-11-26T13:52:46Z</dc:date>
    </item>
  </channel>
</rss>

