BookmarkSubscribeRSS Feed
jpapaiac
Fluorite | Level 6

I am trying to add an aggregated measure %Industry into rows (crosstab) and OfCourse this doesn't work.  Is there a way to convert an aggregated measure into character?  

 

Column    row1  row2  row3  %Industry

a

b

c

1 REPLY 1
ballardw
Super User

Doesn't work is awful vague.

Are there errors in the log?: Post the code and log in a code box opened with the "</>" to maintain formatting of error messages.

No output? Post any log in a code box.

Unexpected output? Provide input data in the form of data step code pasted into a code box, the actual results and the expected results. Instructions here: https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-dat... will show how to turn an existing SAS data set into data step code that can be pasted into a forum code box using the "</>" icon or attached as text to show exactly what you have and that we can test code against.

 

 

Data and how you make the "crosstab" is going to be critical. I'm afraid that column headings like Row1 , besides being pretty meaningless without data and code used to make the output, are pretty confusing as well.

Sine you apparently are talking about a percentage of some sort you need to clearly define what the numerator and denominator would be and where they come from ( that DATA thing again).

Best way to provide data is in the form of SAS data step code pasted into a text box opened with the </> icon. The text box prevents the forum from reformatting pasted text that quite often results in data step code that doesn't run because of removed/replaced characters in the HTML window.

 

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

Submit your idea!

Tips for filtering data sources in SAS Visual Analytics

See how to use one filter for multiple data sources by mapping your data from SAS’ Alexandria McCall.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 511 views
  • 0 likes
  • 2 in conversation