Hi experts,
Is it possible to return missing value in an aggregated measure in SAS Visual Analytics?
Example:
IF ( Max [_ByGroup_] (TreatAs(_Number_, 'Date1'n[Raw])) <= Max [_ByGroup_] (TreatAs(_Number_, 'Date2'n[Raw])) )
RETURN ( Sum [_ByGroup_] ('myvar1'n) / Sum [_ByGroup_] ('myvar2'n) )
ELSE .SAS gives an error saying that there is an element that cannot be aggregated (the missing .)
I don't like to return 0. Are there any options to return missing?
Thanks
Did you try the MISSING function instead of .
-------------------------------------------------------------------------
Four tips to remember when you contact SAS Technical Support
Tricks for SAS Visual Analytics Report Builders
SAS Visual Analytics Learning Center
Hi community,
Perhaps there is a better solution. I made it work creating a 'dummy' integer variable containing only missing in the data source.
Applying any function (Min [_ByGroup_], Max [_ByGroup_]) to this variable in SAs Visual Analytics you can obtain the missing value.
Any other ideas, please share.
Regards.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
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!
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.