<?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 SAS Proc Report- Group subtotal and total in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/SAS-Proc-Report-Group-subtotal-and-total/m-p/585329#M14312</link>
    <description>&lt;P&gt;data sample;&lt;BR /&gt;input state$ city$ product$ selling_price revenue;&lt;BR /&gt;datalines;&lt;BR /&gt;Maharashtra Mumbai Soap 100 10&lt;BR /&gt;Maharashtra Mumbai Shampoo 200 20&lt;BR /&gt;Maharashtra Pune Soap 100 10&lt;BR /&gt;Maharashtra Pune Shampoo 200 20&lt;BR /&gt;Gujrat Baroda Come 100 2&lt;BR /&gt;Gujrat Baroda Pin 300 40&lt;BR /&gt;Gujrat Surat Come 100 2&lt;BR /&gt;Gujrat Surat Pin 400 10&lt;BR /&gt;Punjab Amritsar Pencil 200 3&lt;BR /&gt;Punjab Chandigarh Rubber 20 3&lt;BR /&gt;;&lt;BR /&gt;run;&lt;BR /&gt;proc print data=sample;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc report data=sample;&lt;BR /&gt;column state city product showall showcity selling_price revenue;&lt;BR /&gt;define state/group;&lt;BR /&gt;define city/group;&lt;BR /&gt;define product/group;&lt;BR /&gt;define selling_price/analysis;&lt;BR /&gt;define revenue/analysis;&lt;BR /&gt;compute before state;&lt;BR /&gt;length Indian_state $25;&lt;BR /&gt;Indian_state = state;&lt;BR /&gt;endcomp;&lt;BR /&gt;compute before city;&lt;BR /&gt;length indian_City $25;&lt;BR /&gt;Indian_city = city;&lt;BR /&gt;endcomp;&lt;BR /&gt;;&lt;BR /&gt;compute showall / character length=25;&lt;BR /&gt;showall = Indian_state;&lt;BR /&gt;endcomp;&lt;BR /&gt;compute showcity / character length=25;&lt;BR /&gt;showcity = Indian_city;&lt;BR /&gt;endcomp;&lt;/P&gt;&lt;P&gt;break after state / summarize style=Header{background=lightyellow};&lt;BR /&gt;break after city / summarize ;&lt;BR /&gt;rbreak after / summarize style=Header{background=lightgreen};&lt;BR /&gt;compute after state;&lt;BR /&gt;showall = catx(' ','Total',Indian_state);&lt;BR /&gt;showcity = 'All city';&lt;BR /&gt;** how to simulate a SKIP in ODS output;&lt;BR /&gt;line ' ';&lt;BR /&gt;endcomp;&lt;BR /&gt;compute after city;&lt;BR /&gt;showcity = 'SubTotal';&lt;BR /&gt;endcomp;&lt;BR /&gt;compute after;&lt;BR /&gt;showall = 'Grand Total';&lt;BR /&gt;showcity = 'All Regions';&lt;BR /&gt;endcomp;&lt;BR /&gt;run;&lt;/P&gt;</description>
    <pubDate>Fri, 30 Aug 2019 18:59:22 GMT</pubDate>
    <dc:creator>sameer112217</dc:creator>
    <dc:date>2019-08-30T18:59:22Z</dc:date>
    <item>
      <title>SAS Proc Report- Group subtotal and total</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-Proc-Report-Group-subtotal-and-total/m-p/585329#M14312</link>
      <description>&lt;P&gt;data sample;&lt;BR /&gt;input state$ city$ product$ selling_price revenue;&lt;BR /&gt;datalines;&lt;BR /&gt;Maharashtra Mumbai Soap 100 10&lt;BR /&gt;Maharashtra Mumbai Shampoo 200 20&lt;BR /&gt;Maharashtra Pune Soap 100 10&lt;BR /&gt;Maharashtra Pune Shampoo 200 20&lt;BR /&gt;Gujrat Baroda Come 100 2&lt;BR /&gt;Gujrat Baroda Pin 300 40&lt;BR /&gt;Gujrat Surat Come 100 2&lt;BR /&gt;Gujrat Surat Pin 400 10&lt;BR /&gt;Punjab Amritsar Pencil 200 3&lt;BR /&gt;Punjab Chandigarh Rubber 20 3&lt;BR /&gt;;&lt;BR /&gt;run;&lt;BR /&gt;proc print data=sample;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc report data=sample;&lt;BR /&gt;column state city product showall showcity selling_price revenue;&lt;BR /&gt;define state/group;&lt;BR /&gt;define city/group;&lt;BR /&gt;define product/group;&lt;BR /&gt;define selling_price/analysis;&lt;BR /&gt;define revenue/analysis;&lt;BR /&gt;compute before state;&lt;BR /&gt;length Indian_state $25;&lt;BR /&gt;Indian_state = state;&lt;BR /&gt;endcomp;&lt;BR /&gt;compute before city;&lt;BR /&gt;length indian_City $25;&lt;BR /&gt;Indian_city = city;&lt;BR /&gt;endcomp;&lt;BR /&gt;;&lt;BR /&gt;compute showall / character length=25;&lt;BR /&gt;showall = Indian_state;&lt;BR /&gt;endcomp;&lt;BR /&gt;compute showcity / character length=25;&lt;BR /&gt;showcity = Indian_city;&lt;BR /&gt;endcomp;&lt;/P&gt;&lt;P&gt;break after state / summarize style=Header{background=lightyellow};&lt;BR /&gt;break after city / summarize ;&lt;BR /&gt;rbreak after / summarize style=Header{background=lightgreen};&lt;BR /&gt;compute after state;&lt;BR /&gt;showall = catx(' ','Total',Indian_state);&lt;BR /&gt;showcity = 'All city';&lt;BR /&gt;** how to simulate a SKIP in ODS output;&lt;BR /&gt;line ' ';&lt;BR /&gt;endcomp;&lt;BR /&gt;compute after city;&lt;BR /&gt;showcity = 'SubTotal';&lt;BR /&gt;endcomp;&lt;BR /&gt;compute after;&lt;BR /&gt;showall = 'Grand Total';&lt;BR /&gt;showcity = 'All Regions';&lt;BR /&gt;endcomp;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2019 18:59:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-Proc-Report-Group-subtotal-and-total/m-p/585329#M14312</guid>
      <dc:creator>sameer112217</dc:creator>
      <dc:date>2019-08-30T18:59:22Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Proc Report- Group subtotal and total</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-Proc-Report-Group-subtotal-and-total/m-p/585335#M14315</link>
      <description>&lt;P&gt;I want something like this in the picture... subtotal of city and then total of that city and finally total of all. my previous code did not work&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="paint.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/32135i008912A6FC158A65/image-size/large?v=v2&amp;amp;px=999" role="button" title="paint.png" alt="paint.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2019 19:14:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-Proc-Report-Group-subtotal-and-total/m-p/585335#M14315</guid>
      <dc:creator>sameer112217</dc:creator>
      <dc:date>2019-08-30T19:14:08Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Proc Report- Group subtotal and total</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-Proc-Report-Group-subtotal-and-total/m-p/585418#M14324</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;I already had an example using SASHELP.PRDSALE -- using slightly simplified logic, as shown below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="custom_breaks.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/32147i52EA1AB0F8ACD8F7/image-size/large?v=v2&amp;amp;px=999" role="button" title="custom_breaks.png" alt="custom_breaks.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Sat, 31 Aug 2019 18:17:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-Proc-Report-Group-subtotal-and-total/m-p/585418#M14324</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2019-08-31T18:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Proc Report- Group subtotal and total</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-Proc-Report-Group-subtotal-and-total/m-p/585431#M14327</link>
      <description>&lt;P&gt;thanks cynthia this is exactly what i wanted.&lt;/P&gt;</description>
      <pubDate>Sat, 31 Aug 2019 19:53:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-Proc-Report-Group-subtotal-and-total/m-p/585431#M14327</guid>
      <dc:creator>sameer112217</dc:creator>
      <dc:date>2019-08-31T19:53:01Z</dc:date>
    </item>
  </channel>
</rss>

