<?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 Convert multiple days (~3 months) into weekday averages in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Convert-multiple-days-3-months-into-weekday-averages/m-p/835974#M41490</link>
    <description>&lt;P&gt;Hi All,&amp;nbsp;&lt;/P&gt;&lt;P&gt;New to SAS here, so please bare with me if this is a simple fix.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is a screenshot of some of the data I am utilising.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SAS1.1.JPG" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/75727iB716BFCA3603C001/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SAS1.1.JPG" alt="SAS1.1.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Using the query builder, I converted the t1.date into weekays, ie. Monday, Tuesday using format DOWNAME.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SAS 1.2.JPG" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/75728i4E3F8C4705F19E34/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SAS 1.2.JPG" alt="SAS 1.2.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I am now trying to get an overall weekday average of the data. This should be in the form (as an example)&lt;/P&gt;&lt;P&gt;date&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Aluminium&lt;/P&gt;&lt;P&gt;Monday&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;16.6&lt;/P&gt;&lt;P&gt;Tuesday&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;7.8&lt;/P&gt;&lt;P&gt;etc until Sunday for all data points.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This data is tangible for the last 3 months, where I currently have the report running for today to 3 months ago.&lt;/P&gt;&lt;P&gt;Any help to get this output would be greatly appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 29 Sep 2022 23:25:27 GMT</pubDate>
    <dc:creator>kkashy</dc:creator>
    <dc:date>2022-09-29T23:25:27Z</dc:date>
    <item>
      <title>Convert multiple days (~3 months) into weekday averages</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Convert-multiple-days-3-months-into-weekday-averages/m-p/835974#M41490</link>
      <description>&lt;P&gt;Hi All,&amp;nbsp;&lt;/P&gt;&lt;P&gt;New to SAS here, so please bare with me if this is a simple fix.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is a screenshot of some of the data I am utilising.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SAS1.1.JPG" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/75727iB716BFCA3603C001/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SAS1.1.JPG" alt="SAS1.1.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Using the query builder, I converted the t1.date into weekays, ie. Monday, Tuesday using format DOWNAME.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SAS 1.2.JPG" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/75728i4E3F8C4705F19E34/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SAS 1.2.JPG" alt="SAS 1.2.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I am now trying to get an overall weekday average of the data. This should be in the form (as an example)&lt;/P&gt;&lt;P&gt;date&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Aluminium&lt;/P&gt;&lt;P&gt;Monday&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;16.6&lt;/P&gt;&lt;P&gt;Tuesday&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;7.8&lt;/P&gt;&lt;P&gt;etc until Sunday for all data points.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This data is tangible for the last 3 months, where I currently have the report running for today to 3 months ago.&lt;/P&gt;&lt;P&gt;Any help to get this output would be greatly appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2022 23:25:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Convert-multiple-days-3-months-into-weekday-averages/m-p/835974#M41490</guid>
      <dc:creator>kkashy</dc:creator>
      <dc:date>2022-09-29T23:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: Convert multiple days (~3 months) into weekday averages</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Convert-multiple-days-3-months-into-weekday-averages/m-p/835990#M41492</link>
      <description>&lt;P&gt;Try next code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc means data=have noprint;
   class date;
   format date downame;
   var Aluminium;
   output out=want mean=Average ;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 30 Sep 2022 04:32:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Convert-multiple-days-3-months-into-weekday-averages/m-p/835990#M41492</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2022-09-30T04:32:52Z</dc:date>
    </item>
  </channel>
</rss>

