<?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: How to make a filter on Month in the load Script ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-make-a-filter-on-Month-in-the-load-Script/m-p/1406586#M612695</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Opps my mistake I'm suggesting &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;&lt;STRONG&gt;=&lt;/STRONG&gt; $(Variable)-1 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;because he wants only previous month data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Sep 2017 09:28:25 GMT</pubDate>
    <dc:creator>PrashantSangle</dc:creator>
    <dc:date>2017-09-25T09:28:25Z</dc:date>
    <item>
      <title>How to make a filter on Month in the load Script ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-make-a-filter-on-Month-in-the-load-Script/m-p/1406578#M612686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to make a filter on Month in the load Script ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Experts, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my data , i have four month , but i must make a filter in the load script to load only the month before the last (-1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Month:&lt;/P&gt;&lt;P&gt;Load Script:&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/177576_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-2" height="55" src="https://community.qlik.com/legacyfs/online/177577_pastedImage_1.png" style="width: 284.872px; height: 55px;" width="285" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Request:&amp;nbsp; I wanna load only the Month before the last (-1) each time in the load script, so the Month 8 in this case&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tell me how to do to make a filter on the field Month&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ali&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2017 08:27:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-make-a-filter-on-Month-in-the-load-Script/m-p/1406578#M612686</guid>
      <dc:creator>bouderbc</dc:creator>
      <dc:date>2017-09-25T08:27:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a filter on Month in the load Script ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-make-a-filter-on-Month-in-the-load-Script/m-p/1406579#M612687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, essentially you don't want to load any data for the max month? Is this for only the current year or all the years?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2017 08:32:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-make-a-filter-on-Month-in-the-load-Script/m-p/1406579#M612687</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-09-25T08:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a filter on Month in the load Script ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-make-a-filter-on-Month-in-the-load-Script/m-p/1406580#M612689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LOAD * FROM .... WHERE MONTH(MyDate) = MONTH(TODAY() -1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need a logic over the end of the year, you may convert the monthes into rolling monthes,&lt;/P&gt;&lt;P&gt;i.e.&lt;/P&gt;&lt;P&gt;LOAD * FROM .... WHERE YEAR(MyDate) * 12 + MONTH(MyDate) = YEAR(TODAY() * 12 + MONTH(TODAY() -1);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2017 08:35:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-make-a-filter-on-Month-in-the-load-Script/m-p/1406580#M612689</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2017-09-25T08:35:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a filter on Month in the load Script ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-make-a-filter-on-Month-in-the-load-Script/m-p/1406581#M612690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is only for the current Year , and in my Data i have always 4 months , and i have to load only the month before the last (Max)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in this case Max is 09 = September , i want to load only 08= August&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each time when i load the new Data , i want to have only the&amp;nbsp; month (-1) before the last one (Max)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2017 08:48:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-make-a-filter-on-Month-in-the-load-Script/m-p/1406581#M612690</guid>
      <dc:creator>bouderbc</dc:creator>
      <dc:date>2017-09-25T08:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a filter on Month in the load Script ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-make-a-filter-on-Month-in-the-load-Script/m-p/1406582#M612691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is only for the current Year , and in my Data i have always 4 months , and i have to load only the month before the last (Max)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in this case Max is 09 = September , i want to load only 08= August&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each time when i load the new Data , i want to have only the&amp;nbsp; month (-1) before the last one (Max)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2017 08:57:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-make-a-filter-on-Month-in-the-load-Script/m-p/1406582#M612691</guid>
      <dc:creator>bouderbc</dc:creator>
      <dc:date>2017-09-25T08:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a filter on Month in the load Script ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-make-a-filter-on-Month-in-the-load-Script/m-p/1406583#M612692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to create one variable to pick the Max Month value and then required to use Where condition using&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load * From Table Where Mois &amp;lt;= $(Variable)-1&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2017 09:00:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-make-a-filter-on-Month-in-the-load-Script/m-p/1406583#M612692</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-09-25T09:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a filter on Month in the load Script ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-make-a-filter-on-Month-in-the-load-Script/m-p/1406584#M612693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/218859"&gt;loveisfail&lt;/A&gt; I think you are suggesting &amp;gt;= $(Variable)-1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2017 09:11:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-make-a-filter-on-Month-in-the-load-Script/m-p/1406584#M612693</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2017-09-25T09:11:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a filter on Month in the load Script ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-make-a-filter-on-Month-in-the-load-Script/m-p/1406585#M612694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, Because he need till last month data. If we give &amp;gt;=$(Variable)-1 it loads only Current and Last months data i believe..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2017 09:14:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-make-a-filter-on-Month-in-the-load-Script/m-p/1406585#M612694</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-09-25T09:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a filter on Month in the load Script ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-make-a-filter-on-Month-in-the-load-Script/m-p/1406586#M612695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Opps my mistake I'm suggesting &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;&lt;STRONG&gt;=&lt;/STRONG&gt; $(Variable)-1 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;because he wants only previous month data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2017 09:28:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-make-a-filter-on-Month-in-the-load-Script/m-p/1406586#M612695</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2017-09-25T09:28:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a filter on Month in the load Script ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-make-a-filter-on-Month-in-the-load-Script/m-p/1406587#M612696</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;Can you tell me All&amp;nbsp; the steps to&amp;nbsp; make the variable and where to put it in the Load&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2017 09:36:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-make-a-filter-on-Month-in-the-load-Script/m-p/1406587#M612696</guid>
      <dc:creator>bouderbc</dc:creator>
      <dc:date>2017-09-25T09:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a filter on Month in the load Script ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-make-a-filter-on-Month-in-the-load-Script/m-p/1406588#M612697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am referring this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * Inline [&lt;/P&gt;&lt;P&gt;MonthField, SalesField&lt;/P&gt;&lt;P&gt;1, 10&lt;/P&gt;&lt;P&gt;2, 20&lt;/P&gt;&lt;P&gt;3, 30&lt;/P&gt;&lt;P&gt;4, 40&lt;/P&gt;&lt;P&gt;5, 50&lt;/P&gt;&lt;P&gt;6, 60&lt;/P&gt;&lt;P&gt;7, 70&lt;/P&gt;&lt;P&gt;8, 80&lt;/P&gt;&lt;P&gt;9, 90&lt;/P&gt;&lt;P&gt;10, 100&lt;/P&gt;&lt;P&gt;11, 110&lt;/P&gt;&lt;P&gt;12, 120&lt;/P&gt;&lt;P&gt;] &lt;STRONG&gt;Where MonthField = $(Variable)-1;&lt;/STRONG&gt; // You can change as your needed..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LET Variable = Peek('MonthField', -1);&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2017 09:41:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-make-a-filter-on-Month-in-the-load-Script/m-p/1406588#M612697</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-09-25T09:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a filter on Month in the load Script ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-make-a-filter-on-Month-in-the-load-Script/m-p/1406589#M612699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But then you may keep this variable:&lt;/P&gt;&lt;P&gt;Temp: LOAD MAX(MONTH(MyDate)) AS MaxMonth FROM ....;&lt;/P&gt;&lt;P&gt;LET vMaxMonth = PEEK('MaxMonth', 0, 'Temp');&lt;/P&gt;&lt;P&gt;DROP TABLE Month;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data: LOAD * FROM .... WHERE MONTH(MyDate) = $(vMaxMonth) -1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rolling month as before. You may need to cover for an error, if there is just one month ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2017 10:11:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-make-a-filter-on-Month-in-the-load-Script/m-p/1406589#M612699</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2017-09-25T10:11:26Z</dc:date>
    </item>
  </channel>
</rss>

