11-22-2016 04:01 PM
I am getting (.) in my results, now I know this has something to do with the date and creating a numeric value.
How do I get rid of the (.)? I am using the SAS Plug in for excel and this is giving me fits when I go to use a Pivot.
I would rather if there is no value to just leave it blank.
here is the partial code:
AVG(DATEPART(S.On_Block_Dt) - DATEPART(S.Title_Rcvd_Dt)) AS Title_Received_to_On_Block,
AVG(DATEPART(S.Sale_Date) - DATEPART(S.Title_Rcvd_Dt)) AS Title_Received_to_Sold,
AVG(DATEPART(S.Title_Rcvd_Dt) - DATEPART(S.Secured_Dt)) AS Secured_to_Title_Received,
AVG(DATEPART(S.Assigned_Dt) - DATEPART(S.Grounding_Dt)) AS Grounded_to_Assigned,
I am using PROC SQL to do this.
11-22-2016 04:05 PM
Missing is a period for numerics, not a blank. Even if you add in conditional logic to not calculate the value, it would still be missing and a period.
Since you're doing an average or summarization I'm suprised you're ending up with missing, unless what happens is, if you have any value missing it's being set to missing. Or you're missing a lot of data.