<?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 Reg:Query on YTD in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Reg-Query-on-YTD/m-p/171235#M503742</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jai,&lt;/P&gt;&lt;P&gt;For what it's worth, it seems you don't really need an YTD analysis rather than a moving annual total or twelve months rolling date instead. YTD means (speaking with today's date) you want to analyze from "Ene 1 2009" to "Mar 8 2009" compared to "Ene 1 2010" to "Mar 8 2010" (today).&lt;/P&gt;&lt;P&gt;I'd use&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;AddMonths(DateField, -12)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;in your script and expressions so you can select the last 12 months (i.e: from today's date minus one year to today's date or selected 01/03/2009, sum sales from 01/03/2008 to 01/03/2009). Your expression then should look like &lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Sum({&amp;lt; Date = {"&amp;gt;=$(=AddMonths(Date, -12))&amp;lt;=$(VMax)"} &amp;gt;} Sales)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Mar 2010 13:17:01 GMT</pubDate>
    <dc:creator>Miguel_Angel_Baeyens</dc:creator>
    <dc:date>2010-03-08T13:17:01Z</dc:date>
    <item>
      <title>Reg:Query on YTD</title>
      <link>https://community.qlik.com/t5/QlikView/Reg-Query-on-YTD/m-p/171234#M503741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am having a typical scenario for YTD.In that I am having entry for 365 days.So when I click current day&lt;/P&gt;&lt;P&gt;i have to see the values for past one year.&lt;/P&gt;&lt;P&gt;For Ex:&lt;/P&gt;&lt;P&gt;if I clicked 1st May 2009 ,in that case I have to get values &lt;B&gt;from '5/01/2008' to '5/01/2009'&lt;BR /&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;For more clarity I have attached qvw with this query.&lt;/P&gt;&lt;P&gt;If any one of you having faced same kind of issue please let me know the way 4 solve.&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Jai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Mar 2010 12:56:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reg-Query-on-YTD/m-p/171234#M503741</guid>
      <dc:creator />
      <dc:date>2010-03-08T12:56:11Z</dc:date>
    </item>
    <item>
      <title>Reg:Query on YTD</title>
      <link>https://community.qlik.com/t5/QlikView/Reg-Query-on-YTD/m-p/171235#M503742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jai,&lt;/P&gt;&lt;P&gt;For what it's worth, it seems you don't really need an YTD analysis rather than a moving annual total or twelve months rolling date instead. YTD means (speaking with today's date) you want to analyze from "Ene 1 2009" to "Mar 8 2009" compared to "Ene 1 2010" to "Mar 8 2010" (today).&lt;/P&gt;&lt;P&gt;I'd use&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;AddMonths(DateField, -12)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;in your script and expressions so you can select the last 12 months (i.e: from today's date minus one year to today's date or selected 01/03/2009, sum sales from 01/03/2008 to 01/03/2009). Your expression then should look like &lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Sum({&amp;lt; Date = {"&amp;gt;=$(=AddMonths(Date, -12))&amp;lt;=$(VMax)"} &amp;gt;} Sales)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Mar 2010 13:17:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reg-Query-on-YTD/m-p/171235#M503742</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2010-03-08T13:17:01Z</dc:date>
    </item>
  </channel>
</rss>

