<?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: Transposition in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Transposition/m-p/668908#M79163</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This worked in terms of the chart! When I try to make the graph, it labels the left and right sides of the graph (y-axis) as total_people (on the left) and total_trees (on the right). Is there a way to put: a graph title and add correct labels just on the vertical and horizontal axes? I really appreciate your help!&lt;/P&gt;</description>
    <pubDate>Mon, 13 Jul 2020 18:29:34 GMT</pubDate>
    <dc:creator>strugglingwsas</dc:creator>
    <dc:date>2020-07-13T18:29:34Z</dc:date>
    <item>
      <title>Transposition</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Transposition/m-p/668226#M79096</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to do a short time trend analysis for multiple categories over time. My data is not sorted properly within the excel and it is not possible to do so manually. Is there a way to do the time trend analysis as the given screenshot using the sample data (also given)? I really appreciate the help! This should answer all my questions!&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jul 2020 00:27:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Transposition/m-p/668226#M79096</guid>
      <dc:creator>strugglingwsas</dc:creator>
      <dc:date>2020-07-10T00:27:34Z</dc:date>
    </item>
    <item>
      <title>Re: Transposition</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Transposition/m-p/668352#M79124</link>
      <description>&lt;P&gt;See this for starters:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc import
  datafile="/folders/myfolders/sample_data_1.xlsx"
  out=have
  dbms=xlsx
  replace
;
run;

/* create a transposed dataset */
proc transpose data=have out=trans (drop=_label_ rename=(_name_=stat)) prefix=year;
var total:;
id year;
run;

/* create a transposed report */
proc tabulate data=have;
var total:;
class year;
table total:,year;
run;

/* create a multi-line plot */
proc sgplot data=have;
x2axis max=1700;
xaxis max=45;
vline year / response = total_people;
vline year / response = total_shops;
vline year / response = total_schools;
vline year / response = total_trees y2axis;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 10 Jul 2020 12:38:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Transposition/m-p/668352#M79124</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-07-10T12:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: Transposition</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Transposition/m-p/668908#M79163</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This worked in terms of the chart! When I try to make the graph, it labels the left and right sides of the graph (y-axis) as total_people (on the left) and total_trees (on the right). Is there a way to put: a graph title and add correct labels just on the vertical and horizontal axes? I really appreciate your help!&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jul 2020 18:29:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Transposition/m-p/668908#M79163</guid>
      <dc:creator>strugglingwsas</dc:creator>
      <dc:date>2020-07-13T18:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: Transposition</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Transposition/m-p/669105#M79173</link>
      <description>&lt;P&gt;Maxim 1: Read the &lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=grstatproc&amp;amp;docsetTarget=n0yjdd910dh59zn1toodgupaj4v9.htm&amp;amp;locale=de" target="_blank" rel="noopener"&gt;Documentation&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;You can add options to the AXIS statements, and use a TITLE:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;title "My Graph";
/* create a multi-line plot */
proc sgplot data=have;
xaxis label="Years";
yaxis max=45 label="People, Shops and Schools";
y2axis max=1700 label="Trees";
vline year / response = total_people;
vline year / response = total_shops;
vline year / response = total_schools;
vline year / response = total_trees y2axis;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 14 Jul 2020 07:19:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Transposition/m-p/669105#M79173</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-07-14T07:19:40Z</dc:date>
    </item>
  </channel>
</rss>

