It sounds like the App is starting from Invoices and joining related Contracts, whereas it would seem to make more sense to start from Contracts and join related Invoices. I.e., If I have five contracts and zero related invoices, then my “profitability” for those contracts may be zero. However, the App as-is simply shows no data at all.