My understanding of your question is that:
-
Supplier.Name
is a Reference type column, with DATA FROM TABLE
set to Analysis
.
-
Analysis.Global_evaluation
is a Reference type column, with DATA FROM TABLE
set to Supplier
.
-
Analysis.Global_evaluation
needs a formula so that it returns a reference R
to a record in Supplier
such that R.Name
is a reference to the current record of Analysis
being evaluated, and R.Period
is equal to Period
in the current record of Analysis
.
Is that right?
The formula for that is
Supplier.lookupOne(Name=rec, Period=$Period)
rec
is a special variable in all Grist formulas that refers to the current record being evaluated in the formula. $Period
is actually just short for rec.Period
. So Name=rec
means looking up a record of Supplier
where the reference column Name
contains a reference to the record rec
in Analysis
. You can also write Name=$id
, it means the same thing.