<?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 do I choose the order values appear as either rows or column headers in a SAS EG Summary Tab in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-do-I-choose-the-order-values-appear-as-either-rows-or-column/m-p/424606#M27358</link>
    <description>&lt;P&gt;Use formats.&amp;nbsp; So set a format to something like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc format;
  value fruit
    1="Mushroom" 
    2="Carrot"&lt;BR /&gt;    ...;
run;&lt;/PRE&gt;
&lt;P&gt;Then convert your data to be 1 2 3 etc. and apply the format to it:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;data want;
  set have;
  select(fruit);
    when ("Mushroom") fruit_code=1;
    when ("Carrot") fruit_code=2;
    ...;
  end;
  format fruit_code fruit.;
run;&lt;/PRE&gt;
&lt;P&gt;This way the text will be displayed, but the underlying sort would use the unformatted number.&amp;nbsp; As for "&lt;SPAN&gt;SAS EG Summary Tables wizard or Summary Tables function&lt;/SPAN&gt;" - no idea, I only work in code as its most flexible.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 03 Jan 2018 15:59:59 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2018-01-03T15:59:59Z</dc:date>
    <item>
      <title>How do I choose the order values appear as either rows or column headers in a SAS EG Summary Table</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-do-I-choose-the-order-values-appear-as-either-rows-or-column/m-p/424604#M27357</link>
      <description>&lt;P&gt;I'm using SAS EG Version 7.13. I have a field that contains nine values. When creating a summary table and using either the Summary Tables wizard or the Summary Tables function the order the values appear in rows or columns is always alphabetical. How can I select the order the values appear as either rows or columns instead of the alphabetical selection or the value with the largest value?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example if my field is FOOD and my values are Apple, Banana, Carrot, Eggplant and Mushroom I want the row order (or column order) to appear as the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mushroom&lt;/P&gt;&lt;P&gt;Carrot&lt;/P&gt;&lt;P&gt;Banana&lt;/P&gt;&lt;P&gt;Apple&lt;/P&gt;&lt;P&gt;Eggplant&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any guidance on how to do this in SAS EG Summary Tables wizard or Summary Tables function.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2018 15:53:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-do-I-choose-the-order-values-appear-as-either-rows-or-column/m-p/424604#M27357</guid>
      <dc:creator>runningjay</dc:creator>
      <dc:date>2018-01-03T15:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: How do I choose the order values appear as either rows or column headers in a SAS EG Summary Tab</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-do-I-choose-the-order-values-appear-as-either-rows-or-column/m-p/424606#M27358</link>
      <description>&lt;P&gt;Use formats.&amp;nbsp; So set a format to something like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc format;
  value fruit
    1="Mushroom" 
    2="Carrot"&lt;BR /&gt;    ...;
run;&lt;/PRE&gt;
&lt;P&gt;Then convert your data to be 1 2 3 etc. and apply the format to it:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;data want;
  set have;
  select(fruit);
    when ("Mushroom") fruit_code=1;
    when ("Carrot") fruit_code=2;
    ...;
  end;
  format fruit_code fruit.;
run;&lt;/PRE&gt;
&lt;P&gt;This way the text will be displayed, but the underlying sort would use the unformatted number.&amp;nbsp; As for "&lt;SPAN&gt;SAS EG Summary Tables wizard or Summary Tables function&lt;/SPAN&gt;" - no idea, I only work in code as its most flexible.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2018 15:59:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-do-I-choose-the-order-values-appear-as-either-rows-or-column/m-p/424606#M27358</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-01-03T15:59:59Z</dc:date>
    </item>
    <item>
      <title>Re: How do I choose the order values appear as either rows or column headers in a SAS EG Summary Tab</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-do-I-choose-the-order-values-appear-as-either-rows-or-column/m-p/424608#M27359</link>
      <description>&lt;P&gt;If your dataset is already sorted in the order you want (Mushroom, Carrot, etc.), then:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1.&amp;nbsp; Run Summary Tables (not wizard)&lt;/P&gt;
&lt;P&gt;2.&amp;nbsp; Add your classification variable&lt;/P&gt;
&lt;P&gt;3.&amp;nbsp; Under the options for that classification variable once added is "Sort by"; you can choose "Data Set Order"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then it will come out in the order that the classification variable is encountered in the dataset.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If that is not possible (if you don't have it sorted that way), you can do it with a custom format, but it's not doable directly in the task.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For reference, you have four options: Formatted, Unformatted, Dataset Order, or Descending, in that particular task.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2018 16:03:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-do-I-choose-the-order-values-appear-as-either-rows-or-column/m-p/424608#M27359</guid>
      <dc:creator>snoopy369</dc:creator>
      <dc:date>2018-01-03T16:03:54Z</dc:date>
    </item>
    <item>
      <title>Re: How do I choose the order values appear as either rows or column headers in a SAS EG Summary Tab</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-do-I-choose-the-order-values-appear-as-either-rows-or-column/m-p/435446#M28156</link>
      <description>&lt;P&gt;Thanks for the info. I was looking for a way to do this within SAS EG's wizards, but this is helpful.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Feb 2018 21:19:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-do-I-choose-the-order-values-appear-as-either-rows-or-column/m-p/435446#M28156</guid>
      <dc:creator>runningjay</dc:creator>
      <dc:date>2018-02-08T21:19:42Z</dc:date>
    </item>
  </channel>
</rss>

