<?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 PROC REPORT - Suppressing one order variable label when computing total for a second order variable in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/PROC-REPORT-Suppressing-one-order-variable-label-when-computing/m-p/964768#M83960</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am new to proc report and am having trouble finding an answer to the below. I am in enterprise v8.5.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have output that looks like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="crichmond410_1-1745256369950.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/106397i4C4B8C00B7C23116/image-size/medium?v=v2&amp;amp;px=400" role="button" title="crichmond410_1-1745256369950.png" alt="crichmond410_1-1745256369950.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I want to add two types of "total" summary rows - one for sub locations and one for parent location. When I do so, it looks like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="crichmond410_2-1745256407614.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/106398i04EBE95DB440B3C4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="crichmond410_2-1745256407614.png" alt="crichmond410_2-1745256407614.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I would like to &lt;U&gt;remove the labels in red&lt;/U&gt;, as those rows are the totals for the sub location rather than the parent location, and ideally keep &lt;U&gt;all cells for the parent location merged together&lt;/U&gt; until the final "Total Parent 1" row, so that it looks like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="crichmond410_0-1745256344611.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/106396i830C42BA6366EB7F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="crichmond410_0-1745256344611.png" alt="crichmond410_0-1745256344611.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Is this possible? My code is below.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;proc report data=disc spanrows headline headskip split="|";
define ParentLocation / order center;
define SubLocation / order center;
define DataPtA / display "Data|Pt A";
define DataPtB / display "Data|Pt B";
column ("Location" ParentLocation SubLocation)
  DataPtA DataPtB;

break after ParentLocation / summarize;
  compute after ParentLocation;
    ParentLocation="Total " || ParentLocation;
    call define (_row_,'style', 'style=[font_style=bold]');
  endcomp;

break after SubLocation / summarize;
  compute after SubLocation;
    SubLocation="Total " || SubLocation;
    call define (_row_,'style', 'style=[font_style=italic]');
  endcomp;

run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Mon, 21 Apr 2025 17:28:23 GMT</pubDate>
    <dc:creator>crichmond410</dc:creator>
    <dc:date>2025-04-21T17:28:23Z</dc:date>
    <item>
      <title>PROC REPORT - Suppressing one order variable label when computing total for a second order variable</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-REPORT-Suppressing-one-order-variable-label-when-computing/m-p/964768#M83960</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am new to proc report and am having trouble finding an answer to the below. I am in enterprise v8.5.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have output that looks like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="crichmond410_1-1745256369950.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/106397i4C4B8C00B7C23116/image-size/medium?v=v2&amp;amp;px=400" role="button" title="crichmond410_1-1745256369950.png" alt="crichmond410_1-1745256369950.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I want to add two types of "total" summary rows - one for sub locations and one for parent location. When I do so, it looks like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="crichmond410_2-1745256407614.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/106398i04EBE95DB440B3C4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="crichmond410_2-1745256407614.png" alt="crichmond410_2-1745256407614.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I would like to &lt;U&gt;remove the labels in red&lt;/U&gt;, as those rows are the totals for the sub location rather than the parent location, and ideally keep &lt;U&gt;all cells for the parent location merged together&lt;/U&gt; until the final "Total Parent 1" row, so that it looks like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="crichmond410_0-1745256344611.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/106396i830C42BA6366EB7F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="crichmond410_0-1745256344611.png" alt="crichmond410_0-1745256344611.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Is this possible? My code is below.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;proc report data=disc spanrows headline headskip split="|";
define ParentLocation / order center;
define SubLocation / order center;
define DataPtA / display "Data|Pt A";
define DataPtB / display "Data|Pt B";
column ("Location" ParentLocation SubLocation)
  DataPtA DataPtB;

break after ParentLocation / summarize;
  compute after ParentLocation;
    ParentLocation="Total " || ParentLocation;
    call define (_row_,'style', 'style=[font_style=bold]');
  endcomp;

break after SubLocation / summarize;
  compute after SubLocation;
    SubLocation="Total " || SubLocation;
    call define (_row_,'style', 'style=[font_style=italic]');
  endcomp;

run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 21 Apr 2025 17:28:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-REPORT-Suppressing-one-order-variable-label-when-computing/m-p/964768#M83960</guid>
      <dc:creator>crichmond410</dc:creator>
      <dc:date>2025-04-21T17:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT - Suppressing one order variable label when computing total for a second order varia</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-REPORT-Suppressing-one-order-variable-label-when-computing/m-p/964773#M83961</link>
      <description>&lt;P&gt;This method puts text on reports where there is none, but the same thing ought to work for removing text that you don't want.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-can-you-place-descriptive-text-in-a-BREAK-or-RBREAK/td-p/431401" target="_blank"&gt;Solved: PROC REPORT, can you place descriptive text in a BREAK or RBREAK row? - SAS Support Communities&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Apr 2025 17:56:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-REPORT-Suppressing-one-order-variable-label-when-computing/m-p/964773#M83961</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2025-04-21T17:56:12Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT - Suppressing one order variable label when computing total for a second order varia</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-REPORT-Suppressing-one-order-variable-label-when-computing/m-p/964774#M83962</link>
      <description>Ah, easy fix, thank you! I needed to add the following to my sub location compute: SubLocation="";</description>
      <pubDate>Mon, 21 Apr 2025 18:15:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-REPORT-Suppressing-one-order-variable-label-when-computing/m-p/964774#M83962</guid>
      <dc:creator>crichmond410</dc:creator>
      <dc:date>2025-04-21T18:15:58Z</dc:date>
    </item>
  </channel>
</rss>

