<?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 Graph comparison of current versus previous month for each day. in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Graph-comparison-of-current-versus-previous-month-for-each-day/m-p/386189#M13239</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm facing difficulty in generating a graph thru sas code.&amp;nbsp;Attached is the sample graph output expected.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Request if some can help me on the code that produces this output.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Rgds, Anil&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Data step code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data TEMP.DN;
  infile datalines dsd truncover;
  input log_date:DATE9. space_used:COMMA4. yy:32. mm:32. dd:32.;
datalines4;
01JUL2017,21,2017,7,1
02JUL2017,22,2017,7,2
03JUL2017,22,2017,7,3
04JUL2017,22,2017,7,4
05JUL2017,22,2017,7,5
06JUL2017,22,2017,7,6
07JUL2017,22,2017,7,7
08JUL2017,22,2017,7,8
09JUL2017,22,2017,7,9
10JUL2017,22,2017,7,10
11JUL2017,22,2017,7,11
12JUL2017,22,2017,7,12
13JUL2017,23,2017,7,13
14JUL2017,23,2017,7,14
15JUL2017,23,2017,7,15
16JUL2017,24,2017,7,16
17JUL2017,24,2017,7,17
18JUL2017,24,2017,7,18
19JUL2017,24,2017,7,19
20JUL2017,25,2017,7,20
21JUL2017,25,2017,7,21
22JUL2017,25,2017,7,22
23JUL2017,25,2017,7,23
24JUL2017,25,2017,7,24
25JUL2017,25,2017,7,25
26JUL2017,25,2017,7,26
27JUL2017,26,2017,7,27
28JUL2017,26,2017,7,28
29JUL2017,26,2017,7,29
30JUL2017,26,2017,7,30
31JUL2017,26,2017,7,31
01AUG2017,27,2017,8,1
02AUG2017,28,2017,8,2
03AUG2017,28,2017,8,3
04AUG2017,28,2017,8,4
05AUG2017,28,2017,8,5
06AUG2017,28,2017,8,6
07AUG2017,28,2017,8,7
08AUG2017,28,2017,8,8
;;;;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 08 Aug 2017 08:43:21 GMT</pubDate>
    <dc:creator>aj34321</dc:creator>
    <dc:date>2017-08-08T08:43:21Z</dc:date>
    <item>
      <title>Graph comparison of current versus previous month for each day.</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Graph-comparison-of-current-versus-previous-month-for-each-day/m-p/386189#M13239</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm facing difficulty in generating a graph thru sas code.&amp;nbsp;Attached is the sample graph output expected.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Request if some can help me on the code that produces this output.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Rgds, Anil&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Data step code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data TEMP.DN;
  infile datalines dsd truncover;
  input log_date:DATE9. space_used:COMMA4. yy:32. mm:32. dd:32.;
datalines4;
01JUL2017,21,2017,7,1
02JUL2017,22,2017,7,2
03JUL2017,22,2017,7,3
04JUL2017,22,2017,7,4
05JUL2017,22,2017,7,5
06JUL2017,22,2017,7,6
07JUL2017,22,2017,7,7
08JUL2017,22,2017,7,8
09JUL2017,22,2017,7,9
10JUL2017,22,2017,7,10
11JUL2017,22,2017,7,11
12JUL2017,22,2017,7,12
13JUL2017,23,2017,7,13
14JUL2017,23,2017,7,14
15JUL2017,23,2017,7,15
16JUL2017,24,2017,7,16
17JUL2017,24,2017,7,17
18JUL2017,24,2017,7,18
19JUL2017,24,2017,7,19
20JUL2017,25,2017,7,20
21JUL2017,25,2017,7,21
22JUL2017,25,2017,7,22
23JUL2017,25,2017,7,23
24JUL2017,25,2017,7,24
25JUL2017,25,2017,7,25
26JUL2017,25,2017,7,26
27JUL2017,26,2017,7,27
28JUL2017,26,2017,7,28
29JUL2017,26,2017,7,29
30JUL2017,26,2017,7,30
31JUL2017,26,2017,7,31
01AUG2017,27,2017,8,1
02AUG2017,28,2017,8,2
03AUG2017,28,2017,8,3
04AUG2017,28,2017,8,4
05AUG2017,28,2017,8,5
06AUG2017,28,2017,8,6
07AUG2017,28,2017,8,7
08AUG2017,28,2017,8,8
;;;;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2017 08:43:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Graph-comparison-of-current-versus-previous-month-for-each-day/m-p/386189#M13239</guid>
      <dc:creator>aj34321</dc:creator>
      <dc:date>2017-08-08T08:43:21Z</dc:date>
    </item>
    <item>
      <title>Re: Graph comparison of current versus previous month for each day.</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Graph-comparison-of-current-versus-previous-month-for-each-day/m-p/386191#M13240</link>
      <description>&lt;P&gt;Please use the macro provided in&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt; to convert your dataset to a data step and post that in a code box ({i} or "little running man" icon).&lt;/P&gt;
&lt;P&gt;Excel files cannot convey the structure of a dataset, can pose a security risk, and are therefore blocked from downloading at many corporate sites (which give employment to the majority of posters here).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For the wanted result, attach a screenshot.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2017 08:29:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Graph-comparison-of-current-versus-previous-month-for-each-day/m-p/386191#M13240</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-08-08T08:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: Graph comparison of current versus previous month for each day.</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Graph-comparison-of-current-versus-previous-month-for-each-day/m-p/386194#M13242</link>
      <description>&lt;P&gt;What do you want your graph to look like? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2017 08:41:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Graph-comparison-of-current-versus-previous-month-for-each-day/m-p/386194#M13242</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2017-08-08T08:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: Graph comparison of current versus previous month for each day.</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Graph-comparison-of-current-versus-previous-month-for-each-day/m-p/386195#M13243</link>
      <description>&lt;P&gt;Attached zip file has the expected look.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2017 08:44:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Graph-comparison-of-current-versus-previous-month-for-each-day/m-p/386195#M13243</guid>
      <dc:creator>aj34321</dc:creator>
      <dc:date>2017-08-08T08:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: Graph comparison of current versus previous month for each day.</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Graph-comparison-of-current-versus-previous-month-for-each-day/m-p/386196#M13244</link>
      <description>&lt;P&gt;This is the code I got from EG with point-and-click (I'm no GRAPH expert):&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Axis1
  STYLE=1
  WIDTH=1
  MINOR=NONE
;
Axis2
  STYLE=1
  WIDTH=1
  VALUE=NONE
;

PROC GCHART DATA=WORK.DN
;
  VBAR 
   mm
 /
  SUMVAR=space_used
  GROUP=dd
  CLIPREF
FRAME  TYPE=SUM
  NOLEGEND
  COUTLINE=BLACK
  RAXIS=AXIS1
  MAXIS=AXIS2
PATTERNID=MIDPOINT
;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 08 Aug 2017 09:17:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Graph-comparison-of-current-versus-previous-month-for-each-day/m-p/386196#M13244</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-08-08T09:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: Graph comparison of current versus previous month for each day.</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Graph-comparison-of-current-versus-previous-month-for-each-day/m-p/386200#M13245</link>
      <description>&lt;P&gt;NOT TESTED, but something like this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=DN;
	vbar dd / response=space_used group=mm groupdisplay=cluster;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 08 Aug 2017 09:40:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Graph-comparison-of-current-versus-previous-month-for-each-day/m-p/386200#M13245</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2017-08-08T09:40:33Z</dc:date>
    </item>
    <item>
      <title>Re: Graph comparison of current versus previous month for each day.</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Graph-comparison-of-current-versus-previous-month-for-each-day/m-p/386201#M13246</link>
      <description>&lt;P&gt;Consult the PROC SGPLOT documentation to adjust the axes and so on to your liking&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/grstatproc/62603/HTML/default/viewer.htm#sgplot-stmt.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/grstatproc/62603/HTML/default/viewer.htm#sgplot-stmt.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2017 09:44:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Graph-comparison-of-current-versus-previous-month-for-each-day/m-p/386201#M13246</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2017-08-08T09:44:09Z</dc:date>
    </item>
    <item>
      <title>Re: Graph comparison of current versus previous month for each day.</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Graph-comparison-of-current-versus-previous-month-for-each-day/m-p/388672#M13320</link>
      <description>&lt;P&gt;Thank you guys.. All of your codes in portions helped me&amp;nbsp;build my graph.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This community is awesome...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks, Anil&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2017 01:48:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Graph-comparison-of-current-versus-previous-month-for-each-day/m-p/388672#M13320</guid>
      <dc:creator>aj34321</dc:creator>
      <dc:date>2017-08-17T01:48:33Z</dc:date>
    </item>
  </channel>
</rss>

