<?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 addmonth query in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/YTD-addmonth-query/m-p/173729#M42813</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi There, i am so close to solving this, please can someone help me with this expression, i have a simple dashboard where i need to compare 2 years Year To Date, it is a count of members this time last year:&lt;/P&gt;&lt;P&gt;Count ({&amp;lt; TransactionDate={"&amp;gt;=$(=addmonths(today(),-12))"}&amp;gt;} distinct MemberNo)&lt;/P&gt;&lt;P&gt;TransactionDate = YYYYMMDD&lt;/P&gt;&lt;P&gt;It is bringing back all the values for last year instead of only this time last year.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Jun 2010 15:12:20 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-06-02T15:12:20Z</dc:date>
    <item>
      <title>YTD addmonth query</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-addmonth-query/m-p/173729#M42813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi There, i am so close to solving this, please can someone help me with this expression, i have a simple dashboard where i need to compare 2 years Year To Date, it is a count of members this time last year:&lt;/P&gt;&lt;P&gt;Count ({&amp;lt; TransactionDate={"&amp;gt;=$(=addmonths(today(),-12))"}&amp;gt;} distinct MemberNo)&lt;/P&gt;&lt;P&gt;TransactionDate = YYYYMMDD&lt;/P&gt;&lt;P&gt;It is bringing back all the values for last year instead of only this time last year.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jun 2010 15:12:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-addmonth-query/m-p/173729#M42813</guid>
      <dc:creator />
      <dc:date>2010-06-02T15:12:20Z</dc:date>
    </item>
    <item>
      <title>YTD addmonth query</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-addmonth-query/m-p/173730#M42814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For YTD, don't you want "&amp;lt;=" 12 months ago? And you might need to format the result for comparison. And you'll need to give it a starting date of the first of that year as well. So my first guess is this:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;count({&amp;lt;TransactionDate={"&amp;gt;=$(=date(yearstart(today(),-1),'YYYYMMDD')) &amp;lt;=$(=date(addmonths(today(),-12),'YYYYMMDD'))"}&amp;gt;} distinct MemberNo)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jun 2010 21:06:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-addmonth-query/m-p/173730#M42814</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-06-02T21:06:49Z</dc:date>
    </item>
    <item>
      <title>YTD addmonth query</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-addmonth-query/m-p/173731#M42815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John, Thanks, that worked perfectly, for some reason i had to change the -12 to -13 to get the exact YTD comparison for last year which gives me exactly what i need. Much appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jun 2010 08:29:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-addmonth-query/m-p/173731#M42815</guid>
      <dc:creator />
      <dc:date>2010-06-03T08:29:30Z</dc:date>
    </item>
  </channel>
</rss>

