BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
SASdevAnneMarie
Barite | Level 11

Hello Experts,

 

I'm wondering how to delete the "N" in table generated with the proc tabulate :

MarieT_0-1625757335095.png

 

My code is :

 


proc tabulate data=ma_table;
	title "Tableau";
	class COM TYPE_COM DEV;
	table (TYPE_COM ALL ='TOTAL1'), (COM 
        ALL='TOTAL2')(DEV ALL='TOTAL3');
run;

Thank you !

1 ACCEPTED SOLUTION

Accepted Solutions
Cynthia_sas
SAS Super FREQ

Hi:

  To change or get rid of the label for a statistic, you need to use the KEYLABEL statement:

Cynthia_sas_0-1625759180951.png

 

  If you wanted to suppress the label for Region, you'd have to do this in the TABLE statement:

Cynthia_sas_1-1625759305721.png

  I used SASHELP.SHOES for my example, since you did not post any data. I used only one variable in the column dimension just to illustrate how to change the labels.

 

Cynthia

 

 

 

View solution in original post

2 REPLIES 2
ballardw
Super User

One way is to make sure that you include the statistic requested in the table statement(s). Then you can use an override to suppress a specific label: variable*n=' ' 

or use the Keylabel statement to provide the same behavior for all uses of the statistic:

 

Keylabel n=' ';

 

If the statistic occurs in a row you may need/want to use the table option /row=float; as some destinations will have "phantom" boxes where the label was suppressed.

Cynthia_sas
SAS Super FREQ

Hi:

  To change or get rid of the label for a statistic, you need to use the KEYLABEL statement:

Cynthia_sas_0-1625759180951.png

 

  If you wanted to suppress the label for Region, you'd have to do this in the TABLE statement:

Cynthia_sas_1-1625759305721.png

  I used SASHELP.SHOES for my example, since you did not post any data. I used only one variable in the column dimension just to illustrate how to change the labels.

 

Cynthia

 

 

 

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 656 views
  • 2 likes
  • 3 in conversation