<?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: Filter qvd by previous month in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Filter-qvd-by-previous-month/m-p/1831993#M68628</link>
    <description>&lt;P&gt;Hi, in script you only need to add that row as it is in the tabe where data with dates is loaded, just change "DateField" by your current field storing the date.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;LOAD
  DateField,
  OtherFields,
  If(MonthName(DateField)=MonthName(AddMonths(Today(),-1)), 1, 0) as isLastMonth // this is the new row to add in script.
From/resident...&lt;/LI-CODE&gt;&lt;P&gt;In NPrinting go to connections and reload metadata to have the new isLastMonth field avaible.&lt;/P&gt;&lt;P&gt;Go to filters section and create a new filter, just select the connection, the field isLastMonth and select numeric value 1.&lt;/P&gt;&lt;P&gt;The apply this filter to the report in reports-&amp;gt;filters .&lt;/P&gt;</description>
    <pubDate>Sun, 29 Aug 2021 10:51:10 GMT</pubDate>
    <dc:creator>rubenmarin</dc:creator>
    <dc:date>2021-08-29T10:51:10Z</dc:date>
    <item>
      <title>Filter qvd by previous month</title>
      <link>https://community.qlik.com/t5/App-Development/Filter-qvd-by-previous-month/m-p/1831986#M68622</link>
      <description>&lt;P&gt;Hey All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to filter my data In the Load Editor to only get me the previous months Data, It's for an Nprinting Report and I would really appreciate your help.&lt;/P&gt;</description>
      <pubDate>Sun, 29 Aug 2021 09:52:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filter-qvd-by-previous-month/m-p/1831986#M68622</guid>
      <dc:creator>Fahad</dc:creator>
      <dc:date>2021-08-29T09:52:04Z</dc:date>
    </item>
    <item>
      <title>Re: Filter qvd by previous month</title>
      <link>https://community.qlik.com/t5/App-Development/Filter-qvd-by-previous-month/m-p/1831987#M68623</link>
      <description>&lt;P&gt;Hi, when loading data you can create a flag like:&lt;/P&gt;&lt;P&gt;If(MonthName(DateField)=MonthName(AddMonths(Today(),-1)), 1, 0) as isLastMonth&lt;/P&gt;&lt;P&gt;Then you only need to apply the filter in NPrinting so isLastMonth=1.&lt;/P&gt;&lt;P&gt;Or if you want to filter data directly while loading the app just apply this logic on the where caluse when loading data.&lt;/P&gt;</description>
      <pubDate>Sun, 29 Aug 2021 10:23:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filter-qvd-by-previous-month/m-p/1831987#M68623</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2021-08-29T10:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: Filter qvd by previous month</title>
      <link>https://community.qlik.com/t5/App-Development/Filter-qvd-by-previous-month/m-p/1831989#M68625</link>
      <description>&lt;P&gt;Hey&amp;nbsp;R&lt;SPAN&gt;ubenmarin,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks for the help Am Kind of&amp;nbsp;New to both&amp;nbsp;Nprinting and Qlik sense In general&amp;nbsp; If it's Possible of you to show the Script of How I can Apply the filter In the Load Editor, And dose the filed have to be month or it's ok to be date or date time.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks and I appreciate&amp;nbsp;your Support&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 29 Aug 2021 10:37:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filter-qvd-by-previous-month/m-p/1831989#M68625</guid>
      <dc:creator>Fahad</dc:creator>
      <dc:date>2021-08-29T10:37:25Z</dc:date>
    </item>
    <item>
      <title>Re: Filter qvd by previous month</title>
      <link>https://community.qlik.com/t5/App-Development/Filter-qvd-by-previous-month/m-p/1831993#M68628</link>
      <description>&lt;P&gt;Hi, in script you only need to add that row as it is in the tabe where data with dates is loaded, just change "DateField" by your current field storing the date.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;LOAD
  DateField,
  OtherFields,
  If(MonthName(DateField)=MonthName(AddMonths(Today(),-1)), 1, 0) as isLastMonth // this is the new row to add in script.
From/resident...&lt;/LI-CODE&gt;&lt;P&gt;In NPrinting go to connections and reload metadata to have the new isLastMonth field avaible.&lt;/P&gt;&lt;P&gt;Go to filters section and create a new filter, just select the connection, the field isLastMonth and select numeric value 1.&lt;/P&gt;&lt;P&gt;The apply this filter to the report in reports-&amp;gt;filters .&lt;/P&gt;</description>
      <pubDate>Sun, 29 Aug 2021 10:51:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filter-qvd-by-previous-month/m-p/1831993#M68628</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2021-08-29T10:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: Filter qvd by previous month</title>
      <link>https://community.qlik.com/t5/App-Development/Filter-qvd-by-previous-month/m-p/1831994#M68629</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;SPAN&gt;Rubenmarin,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I meant for the where Statement&amp;nbsp; after the from but It works now thanks &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;where MonthName(DateField)= MonthName(AddMonths(Today(),-1))&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 29 Aug 2021 10:59:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filter-qvd-by-previous-month/m-p/1831994#M68629</guid>
      <dc:creator>Fahad</dc:creator>
      <dc:date>2021-08-29T10:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: Filter qvd by previous month</title>
      <link>https://community.qlik.com/t5/App-Development/Filter-qvd-by-previous-month/m-p/1832101#M68654</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22593"&gt;@rubenmarin&lt;/a&gt;&amp;nbsp;Hey,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the previous answer,&lt;/P&gt;&lt;P&gt;If you can Help me filter the same Info from Before for a previous week filter,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;similar to this but for Previous week:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;where MonthName(DateField)= MonthName(AddMonths(Today(),-1))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks And I appreciate&amp;nbsp;your&amp;nbsp;&lt;/SPAN&gt;support&lt;/P&gt;</description>
      <pubDate>Mon, 30 Aug 2021 09:37:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filter-qvd-by-previous-month/m-p/1832101#M68654</guid>
      <dc:creator>Fahad</dc:creator>
      <dc:date>2021-08-30T09:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: Filter qvd by previous month</title>
      <link>https://community.qlik.com/t5/App-Development/Filter-qvd-by-previous-month/m-p/1832155#M68664</link>
      <description>&lt;P&gt;Hi, It could be something like:&lt;/P&gt;&lt;P&gt;where DateField&amp;gt;=WeekStart(Today()-7) and DateField&amp;lt;=WeekEnd(Today()-7)&lt;/P&gt;&lt;P&gt;Here is when flags makes sense, because you can have one document with all data needed for your reports and then in nprinting apply the filter for last month or last week as need: for each report or even each object inside the same report.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Aug 2021 12:39:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filter-qvd-by-previous-month/m-p/1832155#M68664</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2021-08-30T12:39:28Z</dc:date>
    </item>
    <item>
      <title>Re: Filter qvd by previous month</title>
      <link>https://community.qlik.com/t5/App-Development/Filter-qvd-by-previous-month/m-p/1832389#M68688</link>
      <description>&lt;P&gt;Thank you Very much for your Support&lt;/P&gt;</description>
      <pubDate>Tue, 31 Aug 2021 07:20:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filter-qvd-by-previous-month/m-p/1832389#M68688</guid>
      <dc:creator>Fahad</dc:creator>
      <dc:date>2021-08-31T07:20:27Z</dc:date>
    </item>
  </channel>
</rss>

