<?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 on 12 whole months in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Filter-on-12-whole-months/m-p/721586#M38227</link>
    <description>OK. I will save my trials in the future, so I can display them here if needed.</description>
    <pubDate>Wed, 24 Feb 2021 14:58:41 GMT</pubDate>
    <dc:creator>Pontus_77</dc:creator>
    <dc:date>2021-02-24T14:58:41Z</dc:date>
    <item>
      <title>Filter on 12 whole months</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Filter-on-12-whole-months/m-p/721567#M38225</link>
      <description>&lt;P&gt;I want to create a dynamic filter, which always gives me the previous 12 months from a date variable.&lt;/P&gt;&lt;P&gt;For example, if I run the query today, on the 24th of February 2021, I want data between the 1st of February 2020 to the 31st of January 2021.&lt;/P&gt;&lt;P&gt;I have tried the INTNX function, but I can't get it to do what I want.&lt;/P&gt;&lt;P&gt;How do I do this?&lt;/P&gt;</description>
      <pubDate>Wed, 24 Feb 2021 14:00:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Filter-on-12-whole-months/m-p/721567#M38225</guid>
      <dc:creator>Pontus_77</dc:creator>
      <dc:date>2021-02-24T14:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: Filter on 12 whole months</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Filter-on-12-whole-months/m-p/721571#M38226</link>
      <description>&lt;P&gt;For your future benefit, saying "it didn't work" and not showing us what you did never helps. Show us what you did.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if intnx('month',today(),-12,'b')&amp;lt;=variable&amp;lt;=intnx('month',today(),-1,'e')&amp;nbsp;then&amp;nbsp;...&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Feb 2021 14:20:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Filter-on-12-whole-months/m-p/721571#M38226</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-02-24T14:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: Filter on 12 whole months</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Filter-on-12-whole-months/m-p/721586#M38227</link>
      <description>OK. I will save my trials in the future, so I can display them here if needed.</description>
      <pubDate>Wed, 24 Feb 2021 14:58:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Filter-on-12-whole-months/m-p/721586#M38227</guid>
      <dc:creator>Pontus_77</dc:creator>
      <dc:date>2021-02-24T14:58:41Z</dc:date>
    </item>
  </channel>
</rss>

