BookmarkSubscribeRSS Feed
mreynaud
Obsidian | Level 7

Hello, I created the following report on excel: 

crosstab.png

Complexity is in the first column and average business days based on complexity is in the second column.

The last five columns are numbered based on priority (4=highest priority 0=lowest priority) and the data is those columns are the average amount of business days based in priority.

 

I would like to create a similar cross tabulate-style table using SAS, using this table named PriorityComplexity with different data: 

prioritycomplexity.png

2 REPLIES 2
PeterClemmensen
Tourmaline | Level 20

Take a look at Proc Report. 

 

Post usable example data if you want a usable code answer.

ballardw
Super User

Your "example" doesn't show "business days". So which of "priority days" or "complexity days" would be business days that need to be "averaged"?

 

For future reference, any "desired appearance" table should be possible to build with provided example data.

And example data is best provided in the form of data step code such as:

data have;
   input id $ x;
datalines;
abc   123
pdq   45.3
;

I can't code from a picture.

I am too lazy to type someone's data.

 

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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