BookmarkSubscribeRSS Feed
Armand
Calcite | Level 5

Hello

is there a way to replace blank cells with -1 in my graph code below (Product_rating field has blank cells so need to replace that with -1):

axis1 label=None;

axis2 label=('Product_rating') order=(-1 to 20 by 2);

title 'Product rating';

proc gchart data=Prod_list;

vbar3D product_rating/ discrete noframe

                                   subgroup=product_class

raxis=axis1 maxis=axis2

autoref clipref cref=graybb

coutline=black woutline=1;

run;

quit;

1 REPLY 1
Armand
Calcite | Level 5


i did find a way to work around the blank cells by replacing the blank cell in the field '"Product_rating" by -1 before proceeding to the graph.

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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
  • 1 reply
  • 899 views
  • 0 likes
  • 1 in conversation