<?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: MonthStart &amp; Today() - Substracting days in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/MonthStart-Today-Substracting-days/m-p/1447360#M808038</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __default_attr="php" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_15078827908485306 jive_text_macro" jivemacro_uid="_15078827908485306"&gt;&lt;SPAN style="color: #800000; font-family: 'Courier New'; font-size: 12px;"&gt;MonthStart(TODAY() - 16)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-family: 'Courier New'; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;will do just that, give you the MonthStart for the date 16 days ago (so for the first 16 days of the month, the monthstart of the previous month, and from the 17th of each month, just the montstart of the current one).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you want here is:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-family: 'Courier New'; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE __default_attr="php" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_1507882801826773 jive_text_macro" jivemacro_uid="_1507882801826773"&gt;&lt;SPAN style="color: #800000; font-family: 'Courier New'; font-size: 12px;"&gt;MonthStart(Today())-16&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Oct 2017 08:19:20 GMT</pubDate>
    <dc:creator>RonaldDoes</dc:creator>
    <dc:date>2017-10-13T08:19:20Z</dc:date>
    <item>
      <title>MonthStart &amp; Today() - Substracting days</title>
      <link>https://community.qlik.com/t5/QlikView/MonthStart-Today-Substracting-days/m-p/1447358#M808036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope someone can help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have below expression, where I'm trying to substract XX numbers of days from MonthStart of Today().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However it doesn't return the correct amount. It seems like it's including to many days.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;BOOKING_DATE&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; = {&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;"&amp;gt;=$(=MonthStart(TODAY() - 16)) &amp;lt;=$(=MonthStart(TODAY())))"&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;}&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&amp;gt;} &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;NET&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;) &lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;So basically I'm trying to get this date range e.x [15-09-2017] - [01-10-2017].&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;Stefan&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MonthStart-Today-Substracting-days/m-p/1447358#M808036</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: MonthStart &amp; Today() - Substracting days</title>
      <link>https://community.qlik.com/t5/QlikView/MonthStart-Today-Substracting-days/m-p/1447359#M808037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does this works?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;BOOKING_DATE = {"=BOOKING_DATE &amp;gt;= MonthStart(Today())-16 AND BOOKING_DATE &amp;lt;= MonthStart(Today())"}&amp;gt;} NET)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note - &lt;/STRONG&gt;Make sure about Date format for BOOKING_DATE and Today(). Try to check using text box..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Oct 2017 08:15:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MonthStart-Today-Substracting-days/m-p/1447359#M808037</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-10-13T08:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: MonthStart &amp; Today() - Substracting days</title>
      <link>https://community.qlik.com/t5/QlikView/MonthStart-Today-Substracting-days/m-p/1447360#M808038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __default_attr="php" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_15078827908485306 jive_text_macro" jivemacro_uid="_15078827908485306"&gt;&lt;SPAN style="color: #800000; font-family: 'Courier New'; font-size: 12px;"&gt;MonthStart(TODAY() - 16)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-family: 'Courier New'; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;will do just that, give you the MonthStart for the date 16 days ago (so for the first 16 days of the month, the monthstart of the previous month, and from the 17th of each month, just the montstart of the current one).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you want here is:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-family: 'Courier New'; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE __default_attr="php" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_1507882801826773 jive_text_macro" jivemacro_uid="_1507882801826773"&gt;&lt;SPAN style="color: #800000; font-family: 'Courier New'; font-size: 12px;"&gt;MonthStart(Today())-16&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Oct 2017 08:19:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MonthStart-Today-Substracting-days/m-p/1447360#M808038</guid>
      <dc:creator>RonaldDoes</dc:creator>
      <dc:date>2017-10-13T08:19:20Z</dc:date>
    </item>
    <item>
      <title>Re: MonthStart &amp; Today() - Substracting days</title>
      <link>https://community.qlik.com/t5/QlikView/MonthStart-Today-Substracting-days/m-p/1447361#M808039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anil&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That was "easy".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And yes it works perfectly. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Oct 2017 08:50:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MonthStart-Today-Substracting-days/m-p/1447361#M808039</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-13T08:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: MonthStart &amp; Today() - Substracting days</title>
      <link>https://community.qlik.com/t5/QlikView/MonthStart-Today-Substracting-days/m-p/1447362#M808040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ronald&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes of course. That makes sense. It's all about the parenthesis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the answer. I will keep that in mind. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Oct 2017 08:51:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MonthStart-Today-Substracting-days/m-p/1447362#M808040</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-13T08:51:53Z</dc:date>
    </item>
  </channel>
</rss>

