BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Hello,

I'm using proc tabulate to create a transition matrix. We are tracking customer movement amoung product categories (ie. the number of customers that stayed in the same category and moved to the others). We have previous data on the rows and current data on the columns.

I need to be able to highlight the cell where the row/column intersect (so the cell that contains the number of accounts that stayed in the same category).

Using the proc format approach allows you to control colours based on ranges of values. That doesn't help me in this case unfortunately.

Any ideas?
3 REPLIES 3
David_SAS
SAS Employee
Unfortunately there is no way to do what you're asking with TABULATE.

It would be interesting to see a snippet of your TABULATE output, if possible. Maybe we can come up with a solution in a future version of SAS.

A hint: You can enclose Listing output in "pre" and "/pre" to retain formatting when displayed in the forum. The directives must be in square brackets. (Does anyone know how to escape the brackets?)

-- David Kelley, SAS
Cynthia_sas
SAS Super FREQ
Another thing to consider is whether this is the kind of report that could be done with PROC REPORT and CALL DEFINE statements. You can perform traffic lighting based on the value of some other cell with PROC REPORT.

Again, Tech Support could help you figure that out.
cynthia
deleted_user
Not applicable
Thanks for your response.

I've worked with Proc Report quite extensively and I don't think I'd be able to create the same type of output although the compute blocks would easily handle the traffic lighting.

I've emailed a sample of the the transition matrix (using dummy data) to David - hopefully this sort of fucntionality may be available down the road.

Thanks again.

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!

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
  • 3 replies
  • 670 views
  • 0 likes
  • 3 in conversation