I am assuming that the fields spent amount and estimated value are at the same granularity
if null work by using the first argument if the value is NOT null and the second if it is
ifnull([spend amount],[estimated value])
If this posts assists in resolving the question, please mark it helpful or as the 'correct answer' if it resolves the question. This will help other users find the same answer/resolution. Thank you.