BookmarkSubscribeRSS Feed
Pato485
Calcite | Level 5


How can i replace missing values in SAS VA to zero? Need to change it in source or can i do it by counting new formula? or? I need to change missing to 0, look at the graph.

chrome_Yr9efIJ7vQ.png

 

Thank for help. 

 

2 REPLIES 2
ed_sas_member
Meteorite | Level 14

Hi @Pato485 

 

Does the following thread answer your question?

https://communities.sas.com/t5/SAS-Visual-Analytics/Replace-missing-values-with-0-in-cross-tab/td-p/...

It seems that you can create a calculated item from the numeric and replace the missing values with 0, like

IF (your variable missing) RETURN 0 

                                                              ELSE 'your variable'n

and name it as your variable2, then use that variable in your outputs.

Pato485
Calcite | Level 5

But problem is, that in my source, i dont have missing... i have just production values, where production was... So one person can have all values set, and some person doesnt... There is no missing. I just want to set, if variable is missing in the graph, put there value 0. Can i? Date is set as date, production as number.

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 3477 views
  • 0 likes
  • 2 in conversation