<?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 How can I remove column name in group by sum row instead of group by value I want to show Total. in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-can-I-remove-column-name-in-group-by-sum-row-instead-of/m-p/496932#M21731</link>
    <description>&lt;P&gt;instead of SUB value 'Agree services and credit'&amp;nbsp; i want to show TOTAL word in group by sum row the issue is each SUB value is repeat again in group by sum row ,please help how can i remove that value.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;&lt;BR /&gt;&lt;BR /&gt;PROC REPORT DATA=CCG.RICAGO_WEEKLY_MIS_FINAL out=summary_table_result LIST  
/*style=[cellwidth=.1 in rules=group frame=void] */
style(header)=[background= #BBDEFB foreground=black]
style(summary)=[background=white   foreground=black font_weight=bold]
style={font_size=10pt font=('Calibri') width=600 cellpadding=2 borderwidth=0 bordercolor=white}
 ;

COLUMN SBU entity (Module) 'SBU Wise Total (All modules) 'n 'Ageing Report'n ;
 DEFINE SBU / GROUP center style=[foreground=black font_weight=bold  borderleftwidth=2 borderrightwidth=2] ;
 define entity / group center style=[foreground=black font_weight=bold  borderleftwidth=2 borderrightwidth=2] ;
 DEFINE Module /  ACROSS  center style =[borderleftwidth=1 borderrightwidth=1];
/*DEFINE count /  ACROSS  style =[borderleftwidth=1 borderrightwidth=1];*/

 DEFINE 'Ageing Report'n / ACROSS center    style =[borderleftwidth=1 borderrightwidth=1 ];
 define 'SBU Wise Total (All modules) 'n /computed center style=[font_weight=bold foreground=black ] ;
break after SBU /summarize dol dul skip;

COMPUTE SBU ;
IF _break_='_RBREAK_' THEN
 CALL DEFINE('SBU','style','style=[pretext="Total "]');
ENDCOMP;

  compute 'SBU Wise Total (All modules)'n;
    'SBU Wise Total (All modules)'n=sum(input(_c2_,best32.),
			  input(_c3_,best32.),
			  input(_c4_,best32.),
			  input(_c5_,best32.),
			  input(_c6_,best32.),
			  input(_c7_,best32.),
			  input(_c8_,best32.)
			  
			  );

			  IF 'SBU Wise Total (All modules) 'n ^= ' '
THEN CALL DEFINE(_COL_, "style", "STYLE=[BACKGROUND=#FBFCFC]");
/*			  call define(_row_,'style','style={borderrightwidth=4 borderrightcolor=black}'); */
 endcomp;


endcomp;


	  compute entity;
      count+1;
      if mod(count,2) then do;
         call define(_row_, "style", "style=[background=#E8EAF6]");
      end;
	  else do;
	  	call define(_row_, "style", "style=[background=#BDC3C7]");
		END;
   endcomp;

   rbreak after / summarize;



RUN;&lt;/CODE&gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Capture.PNG" style="width: 598px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/23380i1A5D6A387284B42D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 19 Sep 2018 12:40:32 GMT</pubDate>
    <dc:creator>anil2</dc:creator>
    <dc:date>2018-09-19T12:40:32Z</dc:date>
    <item>
      <title>How can I remove column name in group by sum row instead of group by value I want to show Total.</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-can-I-remove-column-name-in-group-by-sum-row-instead-of/m-p/496932#M21731</link>
      <description>&lt;P&gt;instead of SUB value 'Agree services and credit'&amp;nbsp; i want to show TOTAL word in group by sum row the issue is each SUB value is repeat again in group by sum row ,please help how can i remove that value.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;&lt;BR /&gt;&lt;BR /&gt;PROC REPORT DATA=CCG.RICAGO_WEEKLY_MIS_FINAL out=summary_table_result LIST  
/*style=[cellwidth=.1 in rules=group frame=void] */
style(header)=[background= #BBDEFB foreground=black]
style(summary)=[background=white   foreground=black font_weight=bold]
style={font_size=10pt font=('Calibri') width=600 cellpadding=2 borderwidth=0 bordercolor=white}
 ;

COLUMN SBU entity (Module) 'SBU Wise Total (All modules) 'n 'Ageing Report'n ;
 DEFINE SBU / GROUP center style=[foreground=black font_weight=bold  borderleftwidth=2 borderrightwidth=2] ;
 define entity / group center style=[foreground=black font_weight=bold  borderleftwidth=2 borderrightwidth=2] ;
 DEFINE Module /  ACROSS  center style =[borderleftwidth=1 borderrightwidth=1];
/*DEFINE count /  ACROSS  style =[borderleftwidth=1 borderrightwidth=1];*/

 DEFINE 'Ageing Report'n / ACROSS center    style =[borderleftwidth=1 borderrightwidth=1 ];
 define 'SBU Wise Total (All modules) 'n /computed center style=[font_weight=bold foreground=black ] ;
break after SBU /summarize dol dul skip;

COMPUTE SBU ;
IF _break_='_RBREAK_' THEN
 CALL DEFINE('SBU','style','style=[pretext="Total "]');
ENDCOMP;

  compute 'SBU Wise Total (All modules)'n;
    'SBU Wise Total (All modules)'n=sum(input(_c2_,best32.),
			  input(_c3_,best32.),
			  input(_c4_,best32.),
			  input(_c5_,best32.),
			  input(_c6_,best32.),
			  input(_c7_,best32.),
			  input(_c8_,best32.)
			  
			  );

			  IF 'SBU Wise Total (All modules) 'n ^= ' '
THEN CALL DEFINE(_COL_, "style", "STYLE=[BACKGROUND=#FBFCFC]");
/*			  call define(_row_,'style','style={borderrightwidth=4 borderrightcolor=black}'); */
 endcomp;


endcomp;


	  compute entity;
      count+1;
      if mod(count,2) then do;
         call define(_row_, "style", "style=[background=#E8EAF6]");
      end;
	  else do;
	  	call define(_row_, "style", "style=[background=#BDC3C7]");
		END;
   endcomp;

   rbreak after / summarize;



RUN;&lt;/CODE&gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Capture.PNG" style="width: 598px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/23380i1A5D6A387284B42D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Sep 2018 12:40:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-can-I-remove-column-name-in-group-by-sum-row-instead-of/m-p/496932#M21731</guid>
      <dc:creator>anil2</dc:creator>
      <dc:date>2018-09-19T12:40:32Z</dc:date>
    </item>
    <item>
      <title>Re: How can I remove column name in group by sum row instead of group by value I want to show Total.</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-can-I-remove-column-name-in-group-by-sum-row-instead-of/m-p/496961#M21732</link>
      <description>&lt;P&gt;Hi: &lt;BR /&gt; You don't show the grand total line at the RBREAK, does your PRETEXT work there?&lt;BR /&gt;&lt;BR /&gt; Is SBU a character or numeric variable. I tend only to use the PRETEXT method with numeric variables. I generally use the simple method with character variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Here's an example of the simple method, without using PRETEXT or CALL DEFINE (highlighting was not part of SAS code. I added it to show which statements impacted which report rows):&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="change_val_at_break.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/23381iEE9AB0C8551F3DC4/image-size/large?v=v2&amp;amp;px=999" role="button" title="change_val_at_break.png" alt="change_val_at_break.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Wed, 19 Sep 2018 13:39:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-can-I-remove-column-name-in-group-by-sum-row-instead-of/m-p/496961#M21732</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2018-09-19T13:39:57Z</dc:date>
    </item>
    <item>
      <title>Re: How can I remove column name in group by sum row instead of group by value I want to show Total.</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-can-I-remove-column-name-in-group-by-sum-row-instead-of/m-p/496971#M21733</link>
      <description>&lt;P&gt;Thanks for&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13549"&gt;@Cynthia_sas&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;Your demo Example is related to my issue&amp;nbsp; but i dont want to show 'Total For Asia ' entire word want to show only Total instead of&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;'Total For Asia ' .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;SBU column is character datatype . i have show the grand total Below but i have not paste entire image for that reason you are&amp;nbsp;&amp;nbsp;not able to show below grand total .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Sep 2018 14:12:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-can-I-remove-column-name-in-group-by-sum-row-instead-of/m-p/496971#M21733</guid>
      <dc:creator>anil2</dc:creator>
      <dc:date>2018-09-19T14:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: How can I remove column name in group by sum row instead of group by value I want to show Total.</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-can-I-remove-column-name-in-group-by-sum-row-instead-of/m-p/496982#M21734</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; That is an equally simple thing to do with an assignment statement instead of using the CATX function:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="version2.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/23382i13B51A6FAD29BF75/image-size/large?v=v2&amp;amp;px=999" role="button" title="version2.png" alt="version2.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;_BREAK_ holds the NAME of the variable at the break. In my case, I am testing to see if the break is for REGION. In your case, your test would be for the variable named in your BREAK statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Wed, 19 Sep 2018 14:24:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-can-I-remove-column-name-in-group-by-sum-row-instead-of/m-p/496982#M21734</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2018-09-19T14:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: How can I remove column name in group by sum row instead of group by value I want to show Total.</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-can-I-remove-column-name-in-group-by-sum-row-instead-of/m-p/497070#M21735</link>
      <description>&lt;P&gt;Thanks Again&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13549"&gt;@Cynthia_sas&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; This code is working fine i am getting expected output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks Again,&lt;/P&gt;&lt;P&gt;Anil Patil&lt;/P&gt;</description>
      <pubDate>Wed, 19 Sep 2018 17:33:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-can-I-remove-column-name-in-group-by-sum-row-instead-of/m-p/497070#M21735</guid>
      <dc:creator>anil2</dc:creator>
      <dc:date>2018-09-19T17:33:17Z</dc:date>
    </item>
  </channel>
</rss>

