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-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

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