<?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 and MTD in Qlik Learning Discussions</title>
    <link>https://community.qlik.com/t5/Qlik-Learning-Discussions/YTD-and-MTD/m-p/805804#M2602</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sadeep&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also find the YTD and MTD flag fields as part of your MasterCalendar script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case, we use the inyeartodate() and inmonthtodate() to calculate them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The inyeartodate function will return true(-1) when your date from the dataset belongs to the period from the beginning of this year (01/01) until today.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Respectively, the inmonthtodate function will return true(-1) when your date from the dataset belongs to the period from the beginning of this month until today.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Agis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Nov 2014 11:12:36 GMT</pubDate>
    <dc:creator>Agis-Kalogiannis</dc:creator>
    <dc:date>2014-11-11T11:12:36Z</dc:date>
    <item>
      <title>YTD and MTD</title>
      <link>https://community.qlik.com/t5/Qlik-Learning-Discussions/YTD-and-MTD/m-p/805800#M2598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can anyone explain me How does Year to date(YTD) and Month to Date(MTD) works?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2014 08:50:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Learning-Discussions/YTD-and-MTD/m-p/805800#M2598</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-11-11T08:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: YTD and MTD</title>
      <link>https://community.qlik.com/t5/Qlik-Learning-Discussions/YTD-and-MTD/m-p/805801#M2599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See e.g. &lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2014/03/03/ytd" title="http://community.qlik.com/blogs/qlikviewdesignblog/2014/03/03/ytd"&gt;http://community.qlik.com/blogs/qlikviewdesignblog/2014/03/03/ytd&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2014 08:55:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Learning-Discussions/YTD-and-MTD/m-p/805801#M2599</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2014-11-11T08:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: YTD and MTD</title>
      <link>https://community.qlik.com/t5/Qlik-Learning-Discussions/YTD-and-MTD/m-p/805802#M2600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Generlly you start from a date on which you build a master calendar (look in the community, you will find several examples)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The calendar contains even week, month and year fields, I prefer to work with 201409 as month field or 201427 as week field because sorting and selection is easier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need YTD just write in your expression a condition myDateField &amp;lt;= today() even with set analysis or not.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2014 08:58:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Learning-Discussions/YTD-and-MTD/m-p/805802#M2600</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2014-11-11T08:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: YTD and MTD</title>
      <link>https://community.qlik.com/t5/Qlik-Learning-Discussions/YTD-and-MTD/m-p/805803#M2601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are many post related to the YTD and MTD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;YTD :- this stands for Year to date means any metric value from Start of year and till date means today date and with help of SET expression we find&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({$&amp;lt;Date = {'&amp;gt;$(=Max((YearStart(Date)))) &amp;lt;=$(=Max(Today()))'}&amp;gt;} Metrics )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MTD:- This stands for Month to date means Start of month which is current month to till date today date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({$&amp;lt;Date = {'&amp;gt;=$(=Max((MonthStart(Date)))) &amp;lt;=$(=Max(Datefield))'}&amp;gt;} Metrics)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2014 09:21:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Learning-Discussions/YTD-and-MTD/m-p/805803#M2601</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-11-11T09:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: YTD and MTD</title>
      <link>https://community.qlik.com/t5/Qlik-Learning-Discussions/YTD-and-MTD/m-p/805804#M2602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sadeep&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also find the YTD and MTD flag fields as part of your MasterCalendar script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case, we use the inyeartodate() and inmonthtodate() to calculate them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The inyeartodate function will return true(-1) when your date from the dataset belongs to the period from the beginning of this year (01/01) until today.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Respectively, the inmonthtodate function will return true(-1) when your date from the dataset belongs to the period from the beginning of this month until today.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Agis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2014 11:12:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Learning-Discussions/YTD-and-MTD/m-p/805804#M2602</guid>
      <dc:creator>Agis-Kalogiannis</dc:creator>
      <dc:date>2014-11-11T11:12:36Z</dc:date>
    </item>
  </channel>
</rss>

