<?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 Calculate number of weekdays between two days in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Calculate-number-of-weekdays-between-two-days/m-p/481061#M10717</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking for a way to find the number of weekdays between the first day of the month and a given date.&lt;/P&gt;&lt;P&gt;I've calculated the number of days like in the screenshot, but I can't find a way to take only weekdays into account.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2018-07-25 11_07_23-Rapport 1 - Internet Explorer.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/21990iBE4374ABD08C81FE/image-size/large?v=v2&amp;amp;px=999" role="button" title="2018-07-25 11_07_23-Rapport 1 - Internet Explorer.png" alt="2018-07-25 11_07_23-Rapport 1 - Internet Explorer.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I know I can find the day of the week via the DayOfWeek function, but couldn't find a way to incorporate this in the formula above.&lt;/P&gt;&lt;P&gt;Basically I need to see the number of weekdays elapsed on a given date compared to the start of that month.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd appreciate it if anyone could help me with this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Bas&lt;/P&gt;</description>
    <pubDate>Wed, 25 Jul 2018 09:21:43 GMT</pubDate>
    <dc:creator>Basl</dc:creator>
    <dc:date>2018-07-25T09:21:43Z</dc:date>
    <item>
      <title>Calculate number of weekdays between two days</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Calculate-number-of-weekdays-between-two-days/m-p/481061#M10717</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking for a way to find the number of weekdays between the first day of the month and a given date.&lt;/P&gt;&lt;P&gt;I've calculated the number of days like in the screenshot, but I can't find a way to take only weekdays into account.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2018-07-25 11_07_23-Rapport 1 - Internet Explorer.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/21990iBE4374ABD08C81FE/image-size/large?v=v2&amp;amp;px=999" role="button" title="2018-07-25 11_07_23-Rapport 1 - Internet Explorer.png" alt="2018-07-25 11_07_23-Rapport 1 - Internet Explorer.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I know I can find the day of the week via the DayOfWeek function, but couldn't find a way to incorporate this in the formula above.&lt;/P&gt;&lt;P&gt;Basically I need to see the number of weekdays elapsed on a given date compared to the start of that month.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd appreciate it if anyone could help me with this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Bas&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jul 2018 09:21:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Calculate-number-of-weekdays-between-two-days/m-p/481061#M10717</guid>
      <dc:creator>Basl</dc:creator>
      <dc:date>2018-07-25T09:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate number of weekdays between two days</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Calculate-number-of-weekdays-between-two-days/m-p/481068#M10718</link>
      <description>&lt;P&gt;Are you looking for a Point&amp;amp;Click answer in VA or a simple code answer?&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jul 2018 09:56:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Calculate-number-of-weekdays-between-two-days/m-p/481068#M10718</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2018-07-25T09:56:21Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate number of weekdays between two days</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Calculate-number-of-weekdays-between-two-days/m-p/481072#M10719</link>
      <description>&lt;P&gt;One or the other. That doesn't really matter. I am somewhat familiar with the coding used in VA.&lt;/P&gt;&lt;P&gt;I have only got access to VA 7.4, so if it works there, that would be great.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jul 2018 09:59:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Calculate-number-of-weekdays-between-two-days/m-p/481072#M10719</guid>
      <dc:creator>Basl</dc:creator>
      <dc:date>2018-07-25T09:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate number of weekdays between two days</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Calculate-number-of-weekdays-between-two-days/m-p/481150#M10721</link>
      <description>&lt;P&gt;The INTNX function is available in CAS.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In Base SAS that would be:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;intnx('weekday', date1, date2)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 25 Jul 2018 14:55:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Calculate-number-of-weekdays-between-two-days/m-p/481150#M10721</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-07-25T14:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate number of weekdays between two days</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Calculate-number-of-weekdays-between-two-days/m-p/481258#M10722</link>
      <description>&lt;P&gt;You can use SAS code in VA 7.4, but only in SAS Studio, the web-basing coding interface packaged with VA. I think it would be easier to add this as a new column to your data before loading into VA LASR memory using&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;'s approach.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jul 2018 20:37:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Calculate-number-of-weekdays-between-two-days/m-p/481258#M10722</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2018-07-25T20:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate number of weekdays between two days</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Calculate-number-of-weekdays-between-two-days/m-p/481383#M10725</link>
      <description>&lt;P&gt;Thank you all for your replies. I think the suggestion given by SASKiwi should be the&amp;nbsp;easiest way&amp;nbsp;for us.&lt;/P&gt;&lt;P&gt;We'll add the extra column to the data, so we can use it for our calculations instead of trying to build it all in the VA interface.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jul 2018 08:28:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Calculate-number-of-weekdays-between-two-days/m-p/481383#M10725</guid>
      <dc:creator>Basl</dc:creator>
      <dc:date>2018-07-26T08:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate number of weekdays between two days</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Calculate-number-of-weekdays-between-two-days/m-p/481627#M10743</link>
      <description>&lt;P&gt;Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/222878"&gt;@Basl&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm glad you found some useful info! If &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13976"&gt;@SASKiwi&lt;/a&gt;'s reply was the exact solution to your problem, can you "Accept it as a solution"? Or if&amp;nbsp;it was particularly helpful, feel free to "Like" it. This will help other community members who may run into the same issue know what worked.&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;BR /&gt;Anna&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jul 2018 18:05:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Calculate-number-of-weekdays-between-two-days/m-p/481627#M10743</guid>
      <dc:creator>AnnaBrown</dc:creator>
      <dc:date>2018-07-26T18:05:39Z</dc:date>
    </item>
  </channel>
</rss>

