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.

 

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