<?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: Sum the charge amount based on the class? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Sum-the-charge-amount-based-on-the-class/m-p/823376#M325098</link>
    <description>&lt;P&gt;If wanting a data set I would start with&lt;/P&gt;
&lt;PRE&gt;Proc summary data=have nway;
   class id charge_class;
   var charge_amount;
   output out=want Sum=;
run;&lt;/PRE&gt;
&lt;P&gt;Or if a report just to read&lt;/P&gt;
&lt;PRE&gt;proc tabulate data=have;
   class id charge_class;
   var charge_amount;
   table id*charge_class,
         charge_amount
   ;
run;&lt;/PRE&gt;</description>
    <pubDate>Thu, 14 Jul 2022 17:18:22 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2022-07-14T17:18:22Z</dc:date>
    <item>
      <title>Sum the charge amount based on the class?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sum-the-charge-amount-based-on-the-class/m-p/823372#M325094</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a sample dataset containing &lt;STRONG&gt;ID/Charge_class/Charge_amount&lt;/STRONG&gt;.&amp;nbsp; Could anyone let me know how to &lt;STRONG&gt;sum&lt;/STRONG&gt; up each &lt;STRONG&gt;ID&lt;/STRONG&gt;'s &lt;STRONG&gt;charge_amount&lt;/STRONG&gt; based on the &lt;STRONG&gt;charge_class&lt;/STRONG&gt;?&amp;nbsp; Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2022 17:12:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sum-the-charge-amount-based-on-the-class/m-p/823372#M325094</guid>
      <dc:creator>ybz12003</dc:creator>
      <dc:date>2022-07-14T17:12:02Z</dc:date>
    </item>
    <item>
      <title>Re: Sum the charge amount based on the class?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sum-the-charge-amount-based-on-the-class/m-p/823375#M325097</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/67134"&gt;@ybz12003&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a sample dataset containing &lt;STRONG&gt;ID/Charge_class/Charge_amount&lt;/STRONG&gt;.&amp;nbsp; Could anyone let me know how to &lt;STRONG&gt;sum&lt;/STRONG&gt; up each &lt;STRONG&gt;ID&lt;/STRONG&gt;'s &lt;STRONG&gt;charge_amount&lt;/STRONG&gt; based on the &lt;STRONG&gt;charge_class&lt;/STRONG&gt;?&amp;nbsp; Thanks.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Well, I find that sentence to be quite unclear. What does "based on the charge class" mean?&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2022 17:16:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sum-the-charge-amount-based-on-the-class/m-p/823375#M325097</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-07-14T17:16:51Z</dc:date>
    </item>
    <item>
      <title>Re: Sum the charge amount based on the class?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sum-the-charge-amount-based-on-the-class/m-p/823376#M325098</link>
      <description>&lt;P&gt;If wanting a data set I would start with&lt;/P&gt;
&lt;PRE&gt;Proc summary data=have nway;
   class id charge_class;
   var charge_amount;
   output out=want Sum=;
run;&lt;/PRE&gt;
&lt;P&gt;Or if a report just to read&lt;/P&gt;
&lt;PRE&gt;proc tabulate data=have;
   class id charge_class;
   var charge_amount;
   table id*charge_class,
         charge_amount
   ;
run;&lt;/PRE&gt;</description>
      <pubDate>Thu, 14 Jul 2022 17:18:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sum-the-charge-amount-based-on-the-class/m-p/823376#M325098</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-07-14T17:18:22Z</dc:date>
    </item>
  </channel>
</rss>

