<?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: two decimals in percentages in proc tabulate in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/two-decimals-in-percentages-in-proc-tabulate/m-p/753565#M29883</link>
    <description>thank you &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;</description>
    <pubDate>Mon, 12 Jul 2021 17:41:00 GMT</pubDate>
    <dc:creator>dustychair</dc:creator>
    <dc:date>2021-07-12T17:41:00Z</dc:date>
    <item>
      <title>two decimals in percentages in proc tabulate</title>
      <link>https://communities.sas.com/t5/New-SAS-User/two-decimals-in-percentages-in-proc-tabulate/m-p/753541#M29880</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I have a question. I am using the below code to format the total. By using this I am getting percentages with no decimals. However, I want the N counts to have no decimals but the percentages have two decimals. How can I modify it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc tabulate data=alt501_main out=gender_grade;&lt;BR /&gt;class gender grade /missing;&lt;BR /&gt;table grade (all= 'Total'* format=comma16.) ,&lt;BR /&gt;gender *(N*format=comma16. Rowpctn)(all= 'Total'* format=comma16.);&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jul 2021 15:57:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/two-decimals-in-percentages-in-proc-tabulate/m-p/753541#M29880</guid>
      <dc:creator>dustychair</dc:creator>
      <dc:date>2021-07-12T15:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: two decimals in percentages in proc tabulate</title>
      <link>https://communities.sas.com/t5/New-SAS-User/two-decimals-in-percentages-in-proc-tabulate/m-p/753557#M29881</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/22174"&gt;@dustychair&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I have a question. I am using the below code to format the total. By using this I am getting percentages with no decimals. However, I want the N counts to have no decimals but the percentages have two decimals. How can I modify it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc tabulate data=alt501_main out=gender_grade;&lt;BR /&gt;class gender grade /missing;&lt;BR /&gt;table grade (all= 'Total'* format=comma16.) ,&lt;BR /&gt;gender *(N*format=comma16. Rowpctn)(all= 'Total'* format=comma16.);&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;gender *(N*format=comma16. Rowpctn*f=6.2)(all= 'Total'* format=comma16.);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Should work. If you want different behavior for values like 100 or 0 you could create a custom format.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jul 2021 17:19:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/two-decimals-in-percentages-in-proc-tabulate/m-p/753557#M29881</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-07-12T17:19:27Z</dc:date>
    </item>
    <item>
      <title>Re: two decimals in percentages in proc tabulate</title>
      <link>https://communities.sas.com/t5/New-SAS-User/two-decimals-in-percentages-in-proc-tabulate/m-p/753561#M29882</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Rowpctn*format=comma18.2&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I guess your decimals will be .00 as otherwise 2 decimals would have been displayed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jul 2021 17:24:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/two-decimals-in-percentages-in-proc-tabulate/m-p/753561#M29882</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2021-07-12T17:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: two decimals in percentages in proc tabulate</title>
      <link>https://communities.sas.com/t5/New-SAS-User/two-decimals-in-percentages-in-proc-tabulate/m-p/753565#M29883</link>
      <description>thank you &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;</description>
      <pubDate>Mon, 12 Jul 2021 17:41:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/two-decimals-in-percentages-in-proc-tabulate/m-p/753565#M29883</guid>
      <dc:creator>dustychair</dc:creator>
      <dc:date>2021-07-12T17:41:00Z</dc:date>
    </item>
  </channel>
</rss>

