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.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

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
  • 843 views
  • 0 likes
  • 1 in conversation