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: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

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
  • 575 views
  • 0 likes
  • 2 in conversation