Natalie, in another document⦠I have this formula
Orcamento.lookupOne(id=Orcamento_Concreto.lookupOne(id=$id).OrcamentoFK).Tabela_de_Precos
Itās returning me the position of the record on the table⦠āTabela_Precos[2]ā instead of the value.
Actually, that is part of the formula. I wrote it in a different column to see if I could get the value to be used in another formula.
The whole formula needs to return me a single value.
I am at a record from the Orcamento_Concreto table.
This table has a column referencing a type of concrete (table Concreto, column Tipo_Concreto)
And another column referencing the table Orcamento.
Table Orcamento has a column referencing Tabela_Precos.
Table Orcamento_Concreto has a column referencing Tabela_Precos and a column referencing Concreto and a column for price.
Thus, at Orcamento Concreto, when I select a type of Concreto, I need to get the PRICE value from Orcamento_Concreto table, where Concreto column matches Concreto column at Orcamento_Concreto AND Tabela_Precos column matches the Tabela de Precos value of the Orcamento table record referenced by the Orcamento_Concreto record I am atā¦
Gosh, even explaining this created a knot in my head.
Anyway, at Orcamento_Concreto table I created two fields, each with a formula
=Precos.lookupOne(
Concreto=$Tipo_Concreto,
Tabela=Orcamento.lookupOne(id=$OrcamentoFK).Tabela_de_Precos
)
AND
=Orcamento.lookupOne(id=Orcamento_Concreto.lookupOne(id=$id).OrcamentoFK).Tabela_de_Precos
Both return me the positions in the tables where they found the values, instead of the values.
I guess mixing the two would return me the correct value for the Price of Concrete in the PricingTable (Tabela_de_Preco)??
Ok⦠now I understand⦠if I don“t specify the column I want to see, it shows me the position. Like Excel Index.
This is the final formula I used and itās working
Precos.lookupOne(
Concreto=$Tipo_Concreto,
Tabela=Orcamento.lookupOne(id=$OrcamentoFK).Tabela_de_Precos
).Preco