<?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 vs Previous month to date same date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/MTD-vs-Previous-month-to-date-same-date/m-p/1884300#M1217000</link>
    <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628"&gt;@sunny_talwar&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please assist with below&lt;/P&gt;
&lt;P&gt;I have created a filter: [LoadDate]&amp;gt;=Monthstart(Today())&lt;BR /&gt;&lt;BR /&gt;this filter only provide current month to date data. I would like use same type of formula, but want to add the whole of previous month as well as current month data. e.g From 2021/12/01 to Date (2022/01/24).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance&lt;/P&gt;
&lt;P&gt;Kind Regards&lt;/P&gt;</description>
    <pubDate>Mon, 24 Jan 2022 07:59:31 GMT</pubDate>
    <dc:creator>HereWeGoAgain</dc:creator>
    <dc:date>2022-01-24T07:59:31Z</dc:date>
    <item>
      <title>MTD vs Previous month to date same date</title>
      <link>https://community.qlik.com/t5/QlikView/MTD-vs-Previous-month-to-date-same-date/m-p/1330030#M410965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So i want to calculate Previous month to date only for the dates available for the current month. Ex if my last date in my data is 2017-07-28 i want to calculate the rev for the same period last month, meaning 2017-06-01 to 2017-06-28.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently i am using this expression: num(Sum({$&amp;lt;DATE_KEY={"$(='&amp;gt;=' &amp;amp; MonthStart(Max(DATE_KEY),-1) &amp;amp; '&amp;lt;=' &amp;amp; AddMonths(Max(DATE_KEY),-1))"}&amp;gt;} TOTAL_REV_CALC) ,'R # ##0;R-# ##0')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is seems to bring the full amount and not for same date range. I understand tat the second part of the expression adds the amount for the max month -1 meaning previous month. Where would i specify to only bring the same dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not a newbie but haven't worked on qlikview for a while now and only getting back into it now. What am i missing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards STM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2017 12:54:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MTD-vs-Previous-month-to-date-same-date/m-p/1330030#M410965</guid>
      <dc:creator>stevietm</dc:creator>
      <dc:date>2017-08-01T12:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: MTD vs Previous month to date same date</title>
      <link>https://community.qlik.com/t5/QlikView/MTD-vs-Previous-month-to-date-same-date/m-p/1330031#M410966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be you need the Date function....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Num(Sum({$&amp;lt;DATE_KEY={"$(='&amp;gt;=' &amp;amp; &lt;SPAN style="color: #ff0000;"&gt;Date(&lt;/SPAN&gt;MonthStart(Max(DATE_KEY),-1)&lt;SPAN style="color: #ff0000;"&gt;, 'YYYY-MM-DD')&lt;/SPAN&gt; &amp;amp; '&amp;lt;=' &amp;amp; &lt;STRONG style="color: #ff0000; font-size: 13.3333px;"&gt;Date(&lt;/STRONG&gt;AddMonths(Max(DATE_KEY),-1)&lt;STRONG style="color: #ff0000; font-size: 13.3333px;"&gt;, 'YYYY-MM-DD')&lt;/STRONG&gt;)"}&amp;gt;} TOTAL_REV_CALC) ,'R # ##0;R-# ##0')&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2017 12:58:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MTD-vs-Previous-month-to-date-same-date/m-p/1330031#M410966</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-08-01T12:58:37Z</dc:date>
    </item>
    <item>
      <title>Re: MTD vs Previous month to date same date</title>
      <link>https://community.qlik.com/t5/QlikView/MTD-vs-Previous-month-to-date-same-date/m-p/1330032#M410967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;try this&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;num(Sum({$&amp;lt;DATE_KEY={"&amp;gt;=$(=&lt;STRONG&gt;MonthStart&lt;/STRONG&gt;(&lt;STRONG&gt;addmonths&lt;/STRONG&gt;(Max(DATE_KEY),-1))) &amp;lt;=$(=&lt;STRONG&gt;Monthend&lt;/STRONG&gt;(&lt;STRONG&gt;AddMonths&lt;/STRONG&gt;(Max(DATE_KEY),-1)))"}&amp;gt;} TOTAL_REV_CALC) ,'R # ##0;R-# ##0')&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2017 12:59:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MTD-vs-Previous-month-to-date-same-date/m-p/1330032#M410967</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2017-08-01T12:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: MTD vs Previous month to date same date</title>
      <link>https://community.qlik.com/t5/QlikView/MTD-vs-Previous-month-to-date-same-date/m-p/1330033#M410968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_1501592529143634 jive_text_macro" jivemacro_uid="_1501592529143634" modifiedtitle="true"&gt;
&lt;P&gt;Num(Sum({$&amp;lt;DATE_KEY={"&amp;gt;= $(=MonthStart(Max(DATE_KEY),-1)) &amp;lt;= $(=AddMonths(Max(DATE_KEY),-1))"}&amp;gt;} TOTAL_REV_CALC) ,'R # ##0;R-# ##0')&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;Rahul Pawar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2017 13:02:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MTD-vs-Previous-month-to-date-same-date/m-p/1330033#M410968</guid>
      <dc:creator>rahulpawarb</dc:creator>
      <dc:date>2017-08-01T13:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: MTD vs Previous month to date same date</title>
      <link>https://community.qlik.com/t5/QlikView/MTD-vs-Previous-month-to-date-same-date/m-p/1884300#M1217000</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628"&gt;@sunny_talwar&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please assist with below&lt;/P&gt;
&lt;P&gt;I have created a filter: [LoadDate]&amp;gt;=Monthstart(Today())&lt;BR /&gt;&lt;BR /&gt;this filter only provide current month to date data. I would like use same type of formula, but want to add the whole of previous month as well as current month data. e.g From 2021/12/01 to Date (2022/01/24).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance&lt;/P&gt;
&lt;P&gt;Kind Regards&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jan 2022 07:59:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MTD-vs-Previous-month-to-date-same-date/m-p/1884300#M1217000</guid>
      <dc:creator>HereWeGoAgain</dc:creator>
      <dc:date>2022-01-24T07:59:31Z</dc:date>
    </item>
  </channel>
</rss>

