<?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: YTD last month in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/YTD-last-month/m-p/640692#M1088595</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the second part of your expression is ok, no?&lt;/P&gt;&lt;P&gt;I think you have only to modify the start date (first part) to set Jan the 1st&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Jun 2014 10:24:59 GMT</pubDate>
    <dc:creator>bbi_mba_76</dc:creator>
    <dc:date>2014-06-05T10:24:59Z</dc:date>
    <item>
      <title>YTD last month</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-last-month/m-p/640689#M1088592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've used this post to get Rolling 1 and 12 months calculation correct.&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-message-small" data-containerid="2051" data-containertype="14" data-objectid="243408" data-objecttype="2" href="http://community.qlik.com/message/243408#243408"&gt;http://community.qlik.com/message/243408&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I want to use the same technique to calculate last month YTD&lt;/P&gt;&lt;P&gt;Since I will load the data after turn of the month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the string I need to modify so that "-13" becomes more of a variable is there a way to use count?&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;Sum({&amp;lt;MonthYear ={"&amp;gt;=$(=Date(addmonths(Max(MonthYear), -13), 'MMM-YY')) &amp;lt;=$(=Date(addmonths(Max(MonthYear), -1),&amp;nbsp; 'MMM-YY'))"} &amp;gt;} STBEL)&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2014 09:53:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-last-month/m-p/640689#M1088592</guid>
      <dc:creator />
      <dc:date>2014-06-05T09:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: YTD last month</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-last-month/m-p/640690#M1088593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; if I understand well you don't need the rolling months, you need as min date Jan, 1st and then the year&lt;/P&gt;&lt;P&gt;something like makedate(year(Max(MonthYear)))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2014 10:04:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-last-month/m-p/640690#M1088593</guid>
      <dc:creator>bbi_mba_76</dc:creator>
      <dc:date>2014-06-05T10:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: YTD last month</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-last-month/m-p/640691#M1088594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But I don't want the current month to be calculated in the YTD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2014 10:17:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-last-month/m-p/640691#M1088594</guid>
      <dc:creator />
      <dc:date>2014-06-05T10:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: YTD last month</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-last-month/m-p/640692#M1088595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the second part of your expression is ok, no?&lt;/P&gt;&lt;P&gt;I think you have only to modify the start date (first part) to set Jan the 1st&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2014 10:24:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-last-month/m-p/640692#M1088595</guid>
      <dc:creator>bbi_mba_76</dc:creator>
      <dc:date>2014-06-05T10:24:59Z</dc:date>
    </item>
    <item>
      <title>Re: YTD last month</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-last-month/m-p/640693#M1088596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Johan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried the YearToDate() function? It returns a boolean value if the date matches with the date interval specified into the parameters. You can do a sum until date value is false. Use help to check the syntax details and parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2014 10:35:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-last-month/m-p/640693#M1088596</guid>
      <dc:creator />
      <dc:date>2014-06-05T10:35:14Z</dc:date>
    </item>
    <item>
      <title>Re: YTD last month</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-last-month/m-p/640694#M1088597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The second part is working fine.&lt;/P&gt;&lt;P&gt;Since I'm new to QV I'm having a hard time to get it to work. I'm not sure exactly how the make date function works and google isn't very helpful either &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2014 10:50:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-last-month/m-p/640694#M1088597</guid>
      <dc:creator />
      <dc:date>2014-06-05T10:50:52Z</dc:date>
    </item>
    <item>
      <title>Re: YTD last month</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-last-month/m-p/640695#M1088598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jesus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The thing is that I'm trying to do as much as possible within the expressions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll not set any specific parameters like month or year. If I choose to do so my expressions for last year ect stops working &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2014 10:53:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-last-month/m-p/640695#M1088598</guid>
      <dc:creator />
      <dc:date>2014-06-05T10:53:58Z</dc:date>
    </item>
    <item>
      <title>Re: YTD last month</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-last-month/m-p/640696#M1088599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this is not verified, I don't have a qvw...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;MonthYear ={"&amp;gt;=$(=date(makeDate(year(Max(MonthYear))), 'MMM-YY')) &amp;lt;=$(=Date(addmonths(Max(MonthYear), -1),&amp;nbsp; 'MMM-YY'))"} &amp;gt;} STBEL)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2014 10:57:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-last-month/m-p/640696#M1088599</guid>
      <dc:creator>bbi_mba_76</dc:creator>
      <dc:date>2014-06-05T10:57:03Z</dc:date>
    </item>
    <item>
      <title>Re: YTD last month</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-last-month/m-p/640697#M1088600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Michele, it works perfect....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2014 11:01:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-last-month/m-p/640697#M1088600</guid>
      <dc:creator />
      <dc:date>2014-06-05T11:01:28Z</dc:date>
    </item>
  </channel>
</rss>

