<?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: How to plot sates as categorical by month? in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/How-to-plot-sates-as-categorical-by-month/m-p/586564#M14529</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data Example;
	Infile datalines dlm=',';
	input MonthOfService MonYY5. NumberOfYouth $ ProgramIndex $ Expenditure $;
	format MonthofService MonYY5.;
	datalines; 
JUL13,	6,	A1211,	57512.16
JUL13,	1,	A1236,	2867.5
JUL13,	2,	A1291,	8834
JUL13,	20,	A1292,	98601.88
JUL13,	3,	A1421,	410.98
JUL13,	7,	A1552,	21686.49
JUL13,	1,	A1841,	205.17
JUL13,	155,A1911,	179972.06
JUL13,	10,	A1912,	5253.34
JUL13,	44,	A1916,	17200.8
JUL13,	7,	A1917,	7545.48
JUL13,	8,	A1918,	4259.63
JUL13,	2,	A1957,	1249.02
JUL13,	3,	A1961,	3506.19
JUL13,	6,	A1962,	2617.05
JUL13,	2,	A1964,	1372.25
JUL13,	1,	A1971,	7.03
JUL13,	17,	A1975,	4398.16
JUL13,	23,	A1977,	4476.84
JUL13,	1,	A8811,	40
AUG13,	7,	A2111,	71842.76
AUG13,	2,	A2111,	8428.8
AUG13,	23,	A2111,	126240.33
AUG13,	1,	A2129,	1239
AUG13,	167,A2106,	191061.43
AUG13,	14,	A2106,	7061.28
AUG13,	46,	A2109,	18020.98
AUG13,	7,	A2124,	7711.68
AUG13,	5,	A2126,	903.72
AUG13,	1,	A2106,	1867.5
AUG13,	1,	A2129,	857.15
AUG13,	5,	A2115,	6404.33
AUG13,	10,	A2115, 3605.26
AUG13,	2,	A2114, 1372.25
AUG13,	16,	A2115,	3598.64
AUG13,	28,	A2115,	5182.93
SEP13,	7,	A2111,	71842.76
SEP13,	1,	A2111,	5232
SEP13,	23,	A2111,	119037.69
SEP13,	170,	A2106,	186012.25
SEP13,	19,	A2106,	10104.19
SEP13,	46,	A2109,	18979.5
SEP13,	7,	A2124,	6747.72
SEP13,	10,	A2126,	1856.67
SEP13,	1,	A2106,	2490
SEP13,	2,	A2129,	1463.45
SEP13,	10,	A2115,	8719.17
SEP13,	11,	A2115,	3119.92
SEP13,	2,	A2114,	951.2
SEP13,	12,	A2115,	2337.32
SEP13,	29,	A2115,	4405.32&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Sorry for the delay, I had to figure out how to even do it first. Here's an example of what 3 months would look like.&lt;/P&gt;</description>
    <pubDate>Thu, 05 Sep 2019 21:56:48 GMT</pubDate>
    <dc:creator>JDDowell</dc:creator>
    <dc:date>2019-09-05T21:56:48Z</dc:date>
    <item>
      <title>How to plot sates as categorical by month?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-plot-sates-as-categorical-by-month/m-p/586510#M14514</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to plot a series of the number of youth in a program over time. My dates are for a single month, but when I try to plot it my series keeps dropping down to zero for everyday after the 1st of the month, or at least that's what I think happening.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Proc sgplot data=work.efc_pi;
series y='Number Of Youth'n x='Month of Service'n;
run;&lt;/CODE&gt;&lt;/PRE&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="Series Problem.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/32232iED4449817BD8D447/image-size/large?v=v2&amp;amp;px=999" role="button" title="Series Problem.PNG" alt="Series Problem.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently the date is formatted as Monyy5. is there a different format I need to convert it to in order to solve this problem?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2019 18:29:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-plot-sates-as-categorical-by-month/m-p/586510#M14514</guid>
      <dc:creator>JDDowell</dc:creator>
      <dc:date>2019-09-05T18:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to plot sates as categorical by month?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-plot-sates-as-categorical-by-month/m-p/586513#M14517</link>
      <description>&lt;P&gt;Pseudo code because we don't know what variable names you are using or the exact structure of your data set&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=work.efc_pi(where=(day('Month of Service'n)=1));
    series y='Number Of Youth'n x='Month of Service'n;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2019 18:34:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-plot-sates-as-categorical-by-month/m-p/586513#M14517</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-09-05T18:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to plot sates as categorical by month?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-plot-sates-as-categorical-by-month/m-p/586515#M14519</link>
      <description>Maybe you want NEEDLE plot?</description>
      <pubDate>Thu, 05 Sep 2019 18:38:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-plot-sates-as-categorical-by-month/m-p/586515#M14519</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2019-09-05T18:38:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to plot sates as categorical by month?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-plot-sates-as-categorical-by-month/m-p/586525#M14521</link>
      <description>&lt;P&gt;I don't understand this reply, I'm sorry. Those are the names of my columns.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data EFC_PI;
	set work.'efc costing data as of 9_1_2019'n;
	'Month of Service'n=MonthOfService;
	format 'Month Of Service'n monyy5.;
	'Gross Payment'n=Am_gross_pay_sum;
	'Program Index'n=ProgramIndex;
	'Number of Youth'n=N_Youth;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I only changed the column names for the chart.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2019 18:47:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-plot-sates-as-categorical-by-month/m-p/586525#M14521</guid>
      <dc:creator>JDDowell</dc:creator>
      <dc:date>2019-09-05T18:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to plot sates as categorical by month?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-plot-sates-as-categorical-by-month/m-p/586527#M14522</link>
      <description>&lt;P&gt;Thank you, this will work!&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2019 18:48:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-plot-sates-as-categorical-by-month/m-p/586527#M14522</guid>
      <dc:creator>JDDowell</dc:creator>
      <dc:date>2019-09-05T18:48:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to plot sates as categorical by month?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-plot-sates-as-categorical-by-month/m-p/586529#M14524</link>
      <description>&lt;P&gt;Make sure to specify that your axis is a time axis otherwise it may be treating it as numeric and you're missing data so it drops to zero.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not 100% sure because no data to test. If you need further help, please post some example data and we can assist you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;xaxis type=time valuesformat=monyy5.;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Here are instructions on how to provide sample data as a data step:&lt;BR /&gt;&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;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/285214"&gt;@JDDowell&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm trying to plot a series of the number of youth in a program over time. My dates are for a single month, but when I try to plot it my series keeps dropping down to zero for everyday after the 1st of the month, or at least that's what I think happening.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Proc sgplot data=work.efc_pi;
series y='Number Of Youth'n x='Month of Service'n;
run;&lt;/CODE&gt;&lt;/PRE&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="Series Problem.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/32232iED4449817BD8D447/image-size/large?v=v2&amp;amp;px=999" role="button" title="Series Problem.PNG" alt="Series Problem.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Currently the date is formatted as Monyy5. is there a different format I need to convert it to in order to solve this problem?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2019 18:54:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-plot-sates-as-categorical-by-month/m-p/586529#M14524</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-09-05T18:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to plot sates as categorical by month?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-plot-sates-as-categorical-by-month/m-p/586534#M14527</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/285214"&gt;@JDDowell&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I don't understand this reply, I'm sorry. Those are the names of my columns.&lt;CODE class=" language-sas"&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;I only changed the column names for the chart.&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;We really need to see a portion of the actual data set you are using, so we can both be working from the exact same starting point, using the method referred to by&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With regards to needle plots, if you want a series plot, a needle plot isn't really a replacement for a series plot.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2019 19:05:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-plot-sates-as-categorical-by-month/m-p/586534#M14527</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-09-05T19:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to plot sates as categorical by month?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-plot-sates-as-categorical-by-month/m-p/586564#M14529</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data Example;
	Infile datalines dlm=',';
	input MonthOfService MonYY5. NumberOfYouth $ ProgramIndex $ Expenditure $;
	format MonthofService MonYY5.;
	datalines; 
JUL13,	6,	A1211,	57512.16
JUL13,	1,	A1236,	2867.5
JUL13,	2,	A1291,	8834
JUL13,	20,	A1292,	98601.88
JUL13,	3,	A1421,	410.98
JUL13,	7,	A1552,	21686.49
JUL13,	1,	A1841,	205.17
JUL13,	155,A1911,	179972.06
JUL13,	10,	A1912,	5253.34
JUL13,	44,	A1916,	17200.8
JUL13,	7,	A1917,	7545.48
JUL13,	8,	A1918,	4259.63
JUL13,	2,	A1957,	1249.02
JUL13,	3,	A1961,	3506.19
JUL13,	6,	A1962,	2617.05
JUL13,	2,	A1964,	1372.25
JUL13,	1,	A1971,	7.03
JUL13,	17,	A1975,	4398.16
JUL13,	23,	A1977,	4476.84
JUL13,	1,	A8811,	40
AUG13,	7,	A2111,	71842.76
AUG13,	2,	A2111,	8428.8
AUG13,	23,	A2111,	126240.33
AUG13,	1,	A2129,	1239
AUG13,	167,A2106,	191061.43
AUG13,	14,	A2106,	7061.28
AUG13,	46,	A2109,	18020.98
AUG13,	7,	A2124,	7711.68
AUG13,	5,	A2126,	903.72
AUG13,	1,	A2106,	1867.5
AUG13,	1,	A2129,	857.15
AUG13,	5,	A2115,	6404.33
AUG13,	10,	A2115, 3605.26
AUG13,	2,	A2114, 1372.25
AUG13,	16,	A2115,	3598.64
AUG13,	28,	A2115,	5182.93
SEP13,	7,	A2111,	71842.76
SEP13,	1,	A2111,	5232
SEP13,	23,	A2111,	119037.69
SEP13,	170,	A2106,	186012.25
SEP13,	19,	A2106,	10104.19
SEP13,	46,	A2109,	18979.5
SEP13,	7,	A2124,	6747.72
SEP13,	10,	A2126,	1856.67
SEP13,	1,	A2106,	2490
SEP13,	2,	A2129,	1463.45
SEP13,	10,	A2115,	8719.17
SEP13,	11,	A2115,	3119.92
SEP13,	2,	A2114,	951.2
SEP13,	12,	A2115,	2337.32
SEP13,	29,	A2115,	4405.32&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Sorry for the delay, I had to figure out how to even do it first. Here's an example of what 3 months would look like.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2019 21:56:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-plot-sates-as-categorical-by-month/m-p/586564#M14529</guid>
      <dc:creator>JDDowell</dc:creator>
      <dc:date>2019-09-05T21:56:48Z</dc:date>
    </item>
  </channel>
</rss>

