BookmarkSubscribeRSS Feed
tjc
Calcite | Level 5 tjc
Calcite | Level 5
The Excel Add-In makes it easy to specify that row and column percentages are to be displayed for a given variable. Can the GUI also be used to specify that what's to be displayed is a percentage of another variable? I figured out how to do this with custom code (PCTSUM*), but haven't been able to determine if there's a more straightforward way.
2 REPLIES 2
deleted_user
Not applicable
is the tagsets.excelXP destination available in that context ?

That allows cells to be defined as formulae

Good Luck

PeterC
Cynthia_sas
SAS Super FREQ
Hi,
I believe the table task or table wizard has the common statistics for percentages available (PCTN, PCTSUM, ROWPCTN, ROWPCTSUM, COLPCTN, COLPCTSUM) with PROC TABULATE. Your only method for specifying a custom denominator is with the angle brackets in PROC TABULATE.

The SAS Add-in for Microsoft Office does NOT receive or generate TAGSETS.EXCELXP output. The only result types for Stored Processes that are available with the SAS Add-in are HTML, CSV or SASReport XML.

Once you are in Excel and using the SAS Add-in to perform tasks or analyze your data -- you are limited to the kind of tasks and wizards that are available with the SAS Add-in. Of course, once you have the results of your analysis in Excel, you could use Excel to calculate the % using an Excel formula.

A different alternative would be to create a Stored Process using either custom PROC TABULATE code or PROC REPORT code to generate the percent you want with SAS.

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 16. Read more here about why you should contribute and what is in it for you!

Submit your idea!

Discussion stats
  • 2 replies
  • 893 views
  • 0 likes
  • 3 in conversation