The way that you will want to handle this depend on the type of repro that you are building (List vs. Crosstab). In simple list reports and in using data items in a query (but not necessarily displaying that data item) using a case statement at the data item level to handle missing and/or null values is fairly easy to do. The format of the statement should be as follows:
case
when [Data Item Name] is null then 0
when [Data Item Name] is missing then 0
else [Data Item Name]
end
I usually put both the null and missing handling statement in a case statement such as this, as I am not sure how this data exists or does not exist in the database. By handling both simultaneously, this generally works.
By assigning a value at the data item level you ensure that your formula (to give you the result of non-working time minus scheduled work hours minus allocation hours) should work.
Matthew Puvogel | Solutions Consultant
Daptiv