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

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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