<?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: SAS - Visual Data Builder - where dynamic date condition in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-Visual-Data-Builder-where-dynamic-date-condition/m-p/843238#M16660</link>
    <description>&lt;P&gt;The following is an example of the expression that you will need to use.&amp;nbsp; Note, in the example expression "date" is a data item.&amp;nbsp; You will have to have a value for your start_date.&amp;nbsp; I simply hard coded in may 30.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;intnx('week','30MAY1980'd,0,'B') &amp;lt;= 'date'n &amp;lt;= intnx('week','30MAY1980'd,0,'E')&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KeithM_0-1667940347455.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/77099iA32EAACC9C83525D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KeithM_0-1667940347455.png" alt="KeithM_0-1667940347455.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 08 Nov 2022 20:46:01 GMT</pubDate>
    <dc:creator>KeithM</dc:creator>
    <dc:date>2022-11-08T20:46:01Z</dc:date>
    <item>
      <title>SAS - Visual Data Builder - where dynamic date condition</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-Visual-Data-Builder-where-dynamic-date-condition/m-p/842539#M16649</link>
      <description>&lt;P&gt;In visual data builder expression date function while creating data query condition - where tab :&lt;/P&gt;
&lt;P&gt;I want place conditions like&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Where start_date between intnx(week,start_date, 0,'B') and&amp;nbsp; intnx(week,start_date, 0,'E')&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;having said - I want to see a list of only those records where startdate is within the current week's first date of week and last date of week.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2022 16:39:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-Visual-Data-Builder-where-dynamic-date-condition/m-p/842539#M16649</guid>
      <dc:creator>dhavalyparikh</dc:creator>
      <dc:date>2022-11-04T16:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: SAS - Visual Data Builder - where dynamic date condition</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-Visual-Data-Builder-where-dynamic-date-condition/m-p/843238#M16660</link>
      <description>&lt;P&gt;The following is an example of the expression that you will need to use.&amp;nbsp; Note, in the example expression "date" is a data item.&amp;nbsp; You will have to have a value for your start_date.&amp;nbsp; I simply hard coded in may 30.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;intnx('week','30MAY1980'd,0,'B') &amp;lt;= 'date'n &amp;lt;= intnx('week','30MAY1980'd,0,'E')&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KeithM_0-1667940347455.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/77099iA32EAACC9C83525D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KeithM_0-1667940347455.png" alt="KeithM_0-1667940347455.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 20:46:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-Visual-Data-Builder-where-dynamic-date-condition/m-p/843238#M16660</guid>
      <dc:creator>KeithM</dc:creator>
      <dc:date>2022-11-08T20:46:01Z</dc:date>
    </item>
    <item>
      <title>Re: SAS - Visual Data Builder - where dynamic date condition</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-Visual-Data-Builder-where-dynamic-date-condition/m-p/843275#M16661</link>
      <description>&lt;P&gt;That's great - I will try to implement it tomorrow and get back to you. Thank you very much.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 02:43:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-Visual-Data-Builder-where-dynamic-date-condition/m-p/843275#M16661</guid>
      <dc:creator>dhavalyparikh</dc:creator>
      <dc:date>2022-11-09T02:43:43Z</dc:date>
    </item>
    <item>
      <title>Re: SAS - Visual Data Builder - where dynamic date condition</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-Visual-Data-Builder-where-dynamic-date-condition/m-p/844158#M16675</link>
      <description>Instead of you hardcoded date as intnx('week','30MAY1980'd,0,'B') &amp;lt;= 'date'n &amp;lt;= intnx('week','30MAY1980'd,0,'E')&lt;BR /&gt;Is there way I can use the current date ? with my case statement &lt;BR /&gt;&lt;BR /&gt;Start_Date is : (TableDate Value Field) &lt;BR /&gt;In below statement&lt;BR /&gt;&lt;BR /&gt;select &lt;BR /&gt;ind_latest = &lt;BR /&gt;case when Freq="Weekly" and intnx ('Week',Today(),0'b') &amp;lt;= Start_Date&amp;lt;=intnx ('Week',Today(),0'E') &lt;BR /&gt;then 1 &lt;BR /&gt;else 0&lt;BR /&gt;run;</description>
      <pubDate>Mon, 14 Nov 2022 16:34:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-Visual-Data-Builder-where-dynamic-date-condition/m-p/844158#M16675</guid>
      <dc:creator>dhavalyparikh</dc:creator>
      <dc:date>2022-11-14T16:34:35Z</dc:date>
    </item>
  </channel>
</rss>

