BookmarkSubscribeRSS Feed
Rajesh_02
Calcite | Level 5

how to show 0 instead of (missing) in sas va 8.5.1 , when there is no data available

2 REPLIES 2
Madelyn_SAS
SAS Super FREQ

Are there entire rows missing in the data, or do you simply need to replace a missing value in an existing row? Visual Analytics cannot show a row that does not exist in the data. To replace a value within a row, you can create a calculated item. For example, 

 

IF ( 'Salary'n Missing )
RETURN 0
ELSE 'Salary'n

Rajesh_02
Calcite | Level 5

Hey Medelyn,

 

Thanks for the reply,But actually there is no row at all for the specific category.

Let me explain:

1. We have 2 year data (2019,2020,2021,2022)

2.Each year have category(car) and measure(making_cost)-e.g.2019 (maruti-10cr,Audi-2 cr,BMW-5cr)  2020 (maruti-3 cr)

3.As explained in the upper line ,in the year 2020 - there is no category i.e.Audi,BMW. So when we filter year 2020 then key value making cost is (missing)

4.So i need to treat the (missing) into '0'

5.By creating a calculative field for iF else ,we need at-least one column value to replace.

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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
  • 2 replies
  • 1181 views
  • 0 likes
  • 2 in conversation