<?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: MTD , YTD in Qliksense in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/MTD-YTD-in-Qliksense/m-p/1896939#M74020</link>
    <description>&lt;P&gt;Consider creating a master calendar where you define YTD and YTM as field based on the master date field.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;IF(NUM(NUM(Month(DateField),'00')&amp;amp;NUM(Day(DateField),'00'))
   &amp;lt;= NUM(Month(today()),'00')&amp;amp;NUM(Day(today()),'00'),1,0)  as Date_YTD,
NUM(NUM(Month(DateField),'00')&amp;amp;NUM(Day(DateField),'00'))
   &amp;gt;= NUM(Month(today()),'00')&amp;amp;NUM(1,'00') 
and NUM(NUM(Month(DateField),'00')&amp;amp;NUM(Day(DateField),'00'))
   &amp;lt;= NUM(Month(today()),'00')&amp;amp;NUM(Day(today()),'00'),1,0)  as Date_MTD &lt;/LI-CODE&gt;
&lt;P&gt;please check in script editor for missing ')' since i wrote this script from memory.&lt;BR /&gt;Then you can easily filter Date_YTD&amp;nbsp; = 1 or Date_YTM =1&lt;/P&gt;</description>
    <pubDate>Thu, 24 Feb 2022 08:08:41 GMT</pubDate>
    <dc:creator>chris_djih</dc:creator>
    <dc:date>2022-02-24T08:08:41Z</dc:date>
    <item>
      <title>MTD , YTD in Qliksense</title>
      <link>https://community.qlik.com/t5/App-Development/MTD-YTD-in-Qliksense/m-p/1896885#M74015</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;can someone please help me how to create YTD &amp;amp; MTD buttons in qliksense from script load.&lt;/P&gt;
&lt;P&gt;I have requirement where by clicking the YTD buttons all the data will be selected as per YTD.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;khadar&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 06:36:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/MTD-YTD-in-Qliksense/m-p/1896885#M74015</guid>
      <dc:creator>khadar</dc:creator>
      <dc:date>2022-02-24T06:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: MTD , YTD in Qliksense</title>
      <link>https://community.qlik.com/t5/App-Development/MTD-YTD-in-Qliksense/m-p/1896939#M74020</link>
      <description>&lt;P&gt;Consider creating a master calendar where you define YTD and YTM as field based on the master date field.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;IF(NUM(NUM(Month(DateField),'00')&amp;amp;NUM(Day(DateField),'00'))
   &amp;lt;= NUM(Month(today()),'00')&amp;amp;NUM(Day(today()),'00'),1,0)  as Date_YTD,
NUM(NUM(Month(DateField),'00')&amp;amp;NUM(Day(DateField),'00'))
   &amp;gt;= NUM(Month(today()),'00')&amp;amp;NUM(1,'00') 
and NUM(NUM(Month(DateField),'00')&amp;amp;NUM(Day(DateField),'00'))
   &amp;lt;= NUM(Month(today()),'00')&amp;amp;NUM(Day(today()),'00'),1,0)  as Date_MTD &lt;/LI-CODE&gt;
&lt;P&gt;please check in script editor for missing ')' since i wrote this script from memory.&lt;BR /&gt;Then you can easily filter Date_YTD&amp;nbsp; = 1 or Date_YTM =1&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 08:08:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/MTD-YTD-in-Qliksense/m-p/1896939#M74020</guid>
      <dc:creator>chris_djih</dc:creator>
      <dc:date>2022-02-24T08:08:41Z</dc:date>
    </item>
  </channel>
</rss>

