<?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: previous month filter date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/previous-month-filter-date/m-p/114377#M17669</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tks for attention Jonathan.&lt;/P&gt;&lt;P&gt;Got it worked.&lt;/P&gt;&lt;P&gt;Gonna create variables to be faster.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Oct 2018 23:31:17 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-10-18T23:31:17Z</dc:date>
    <item>
      <title>previous month filter date</title>
      <link>https://community.qlik.com/t5/QlikView/previous-month-filter-date/m-p/114373#M17665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to set an expression like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One is: if the user filter from aug 21º to sep 10º,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the other expresison needs to have the result of the same days but from the last month: jul 21º to aug 10º.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How could I do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;Diesel consumption: &lt;/P&gt;&lt;P&gt;from aug 21º to sep 10º = 21,2&lt;/P&gt;&lt;P&gt;set expression: jul 21º to aug 10º = 19,6&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2018 04:24:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/previous-month-filter-date/m-p/114373#M17665</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-18T04:24:05Z</dc:date>
    </item>
    <item>
      <title>Re: previous month filter date</title>
      <link>https://community.qlik.com/t5/QlikView/previous-month-filter-date/m-p/114374#M17666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, Samuel!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In set expression you can use Addmonths() function with Max() or Min() for indicating a range of output dates.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="prev_mnt_selection.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/216177_prev_mnt_selection.png" style="height: 248px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2018 05:14:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/previous-month-filter-date/m-p/114374#M17666</guid>
      <dc:creator>Sergey_Shuklin</dc:creator>
      <dc:date>2018-10-18T05:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: previous month filter date</title>
      <link>https://community.qlik.com/t5/QlikView/previous-month-filter-date/m-p/114375#M17667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something along this pattern:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Sum{&amp;lt;Date = {"&amp;gt;=$(vMinDate) &amp;lt;=$(vMaxDate)"}&amp;gt;} Amount)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Sum{&amp;lt;Date = {"&amp;gt;=$(=AddMonths(vMinDate, -1)) &amp;lt;=$(=AddMonths(vMaxDate, -1))"}, Month, Year&amp;gt;} Amount)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Assumes that the min and max are defined in the correct date format, that the fact table date field is called Date. I have also added overrides so that the date selection does not interfere with the second expression. If this does not work you will need more information to give more specific help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2018 05:29:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/previous-month-filter-date/m-p/114375#M17667</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2018-10-18T05:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: previous month filter date</title>
      <link>https://community.qlik.com/t5/QlikView/previous-month-filter-date/m-p/114376#M17668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Got it with this:&lt;/P&gt;&lt;P&gt;S_Date={'&amp;gt;=$(=addmonths(min(S_Date),-1))&amp;lt;=$(=addmonths(max(S_Date),-1))'}&lt;/P&gt;&lt;P&gt;Tks a lot,.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2018 23:29:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/previous-month-filter-date/m-p/114376#M17668</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-18T23:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: previous month filter date</title>
      <link>https://community.qlik.com/t5/QlikView/previous-month-filter-date/m-p/114377#M17669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tks for attention Jonathan.&lt;/P&gt;&lt;P&gt;Got it worked.&lt;/P&gt;&lt;P&gt;Gonna create variables to be faster.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2018 23:31:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/previous-month-filter-date/m-p/114377#M17669</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-18T23:31:17Z</dc:date>
    </item>
  </channel>
</rss>

