I’m attempting to use the Model_Lookup function on 2 aggregate models. The first model is OpenInvoice that groups by owner and sums the invoice amount. The second model is Retainage that groups by owner and sums the retained amount. I had to create a different model for Retainage because it has different conditions.
I am trying to use the Model_Lookup on the Open Invoice model to show the Retained amount. The formula is returning numbers, but when I compare a table of the Retainage model to the Model_Lookup UI-Only field in the OpenInvoice model some of the owner’s retained amounts are different.
The Model_Lookup formula is: MODEL_LOOKUP(“Retainage”, “sumRetainageHeldc”, “OwnerNames”, {{Owner}})
Where OwnerNames = grouping by owner name on the Retainage model and Owner = grouping by owner name on the OpenInvoice model.
This is the comparison of what is returned:
I’ve verified that the right hand column, which contains a table of the Retainage model is indeed correct. Does anyone have any ideas as to why some lines will return correct numbers and others do not?
Any help is much appreciated!
Chelsea

