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
Diamond | Level 26

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
Diamond | Level 26

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

 

 

 

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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