<?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: Create a formula to remove weekends dates in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Create-a-formula-to-remove-weekends-dates/m-p/600660#M13257</link>
    <description>&lt;P&gt;Hi!&lt;/P&gt;
&lt;P&gt;I mest you should add a FILTER, not to create a calculated item &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;But if you want that, just remove the ”&amp;lt;6” from your expression.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;//Fredrik&lt;/P&gt;</description>
    <pubDate>Thu, 31 Oct 2019 10:59:42 GMT</pubDate>
    <dc:creator>FredrikE</dc:creator>
    <dc:date>2019-10-31T10:59:42Z</dc:date>
    <item>
      <title>Create a formula to remove weekends dates</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Create-a-formula-to-remove-weekends-dates/m-p/600245#M13250</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a data set with a "Time" column. In this column, the data is saved in the DATETIME format (dd/mm/yyyy hh: mm). In VA, I managed to segregate the values into 2 new variables. The first being Date, the second being Time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I, however, would like to now modify the DATE variable to exclude dates that are on the weekends. Can i get some help on this matter&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2019 03:42:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Create-a-formula-to-remove-weekends-dates/m-p/600245#M13250</guid>
      <dc:creator>DandarahZ</dc:creator>
      <dc:date>2019-10-30T03:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: Create a formula to remove weekends dates</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Create-a-formula-to-remove-weekends-dates/m-p/600248#M13251</link>
      <description>&lt;P&gt;Please try, here the x represents 6=saturday and 7=sunday which we are excluding&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
set have;
x=weekday('16mar97'd);
if x not in (6,7);
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 30 Oct 2019 05:02:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Create-a-formula-to-remove-weekends-dates/m-p/600248#M13251</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2019-10-30T05:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: Create a formula to remove weekends dates</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Create-a-formula-to-remove-weekends-dates/m-p/600279#M13253</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;
&lt;P&gt;You can add a filter with the following expression:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DayOfWeek('Date'n) &amp;lt; 6&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;//Fredrik&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2019 07:29:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Create-a-formula-to-remove-weekends-dates/m-p/600279#M13253</guid>
      <dc:creator>FredrikE</dc:creator>
      <dc:date>2019-10-30T07:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: Create a formula to remove weekends dates</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Create-a-formula-to-remove-weekends-dates/m-p/600611#M13256</link>
      <description>&lt;P&gt;Hello Mr Fredrick,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I thank you for your reply. However, when trying to input the formula, an error gets thrown stating that it is unable to carry out the process due to a type error.&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="Capture4.JPG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/33500iF90D303E15EBD8A1/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture4.JPG" alt="Capture4.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2019 02:15:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Create-a-formula-to-remove-weekends-dates/m-p/600611#M13256</guid>
      <dc:creator>DandarahZ</dc:creator>
      <dc:date>2019-10-31T02:15:09Z</dc:date>
    </item>
    <item>
      <title>Re: Create a formula to remove weekends dates</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Create-a-formula-to-remove-weekends-dates/m-p/600660#M13257</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;
&lt;P&gt;I mest you should add a FILTER, not to create a calculated item &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;But if you want that, just remove the ”&amp;lt;6” from your expression.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;//Fredrik&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2019 10:59:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Create-a-formula-to-remove-weekends-dates/m-p/600660#M13257</guid>
      <dc:creator>FredrikE</dc:creator>
      <dc:date>2019-10-31T10:59:42Z</dc:date>
    </item>
  </channel>
</rss>

