BookmarkSubscribeRSS Feed
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




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: 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.




Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

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
  • 2 in conversation