Jul 15, 2018 03:13 AM
I am trying to do a look up based on two fields. Here is the situation:
So my question is: how can I use my formula result for a lookup ?
Or is there any other way ?
Thanks for your advice
G
Jul 15, 2018 05:25 AM
I think you have to create 2 Lookups first and then create the third field for the Formula.
Jul 15, 2018 07:44 AM
Dear Elias, I am not sure I understand how you would do that…
G
Jul 15, 2018 10:24 AM
I was thinking on something like this:
But you could do it directly checking the Linked Records names instead of the Lookups.
Anyway, you won’t get an Accectability from the Risk Acep. table, you will get it from the Formula in FMEA table.
Jul 16, 2018 01:16 AM
Ok, got it.
So you need to hard code the acceptability criteria in a formula… Tough: it means a long and nasty formula.But I get it
So there is no way to use the result of a formula to lookup in a table ?
G
Jul 16, 2018 02:53 AM
I don’t know what you mean with that.
You can create a Linked Record field to Risk Acceptability and choose ONE record (Critical-Frequent for instance), and then Lookup the Acceptability field to the FMEA table. But if you want to choose the Severity in one Linked Record field and Probability in another field, you have to make a formula that checks those 2 records fields.
Jul 17, 2018 11:32 AM
Agreeing with what @Elias_Gomez_Sainz said here, I would also recommend thinking of this problem as a 2x2 matrix. (If you have a pro account, you can actually visualize this in the Matrix Block - pictured below).
Essentially, you want everything in the Upper Right corner to have an “Acceptable” tag, everything along the center diagonal (top left to bottom right) to have the "ALARP tag, and everything in the Bottom Left to have the “Unacceptable” tag, right?
You can accomplish this with the following:
SEVERITY VALUE:
IF(Severity=“Negligible”,1,IF(Severity=“Minor”,2,IF(Severity=“Serious”,3,IF(Severity=“Major”,4,IF(Severity=“Critical”,5,0)))))
PROBABILITY VALUE:
IF(Probability=“Highly Infrequent”,1,IF(Probability=“Infrequent”,2,IF(Probability=“Probable”,3,IF(Probability=“Frequent”,4,IF(Probability=“Highly Frequent”,5,0)))))
TOTAL VALUE:
SUM({Severity Value},{Probability Value})
ACCEPTABILITY:
IF({Total Value}<=3,“Acceptable”,IF({Total Value}<=8,“ALARP”,IF({Total Value}<=10,“Unacceptable”,BLANK())))
To save a field, you could eliminate the TOTAL VALUE and do the sumation in your ACCEPTABILITY formula, but I thought breaking this out might make it easier to visualize.
Jul 18, 2018 12:26 AM
Thanks Gareth.
Indeed, I actually started from this 2x2 matrix, then broke it down into a base format to be more aligned with airbase approach. That’s why I wanted to work from there, but formulas are fine, they just look a bit too “excelish” to my liking !
Cheers
G
Aug 12, 2021 10:00 AM
@Gareth_Pronovost hey garett, i watch your youtube channel alot and im trying to get zapier to look up a record based on two fields then add data to the record it finds. i used the and search formula in zapier but its not finding it. I dont have a matching formula in airtable just the zapier. do you know the issue?
Aug 13, 2021 09:34 AM
Hi Anthony,
Sorry, I don’t know what’s causing this issue without looking at your specific database and automation. We do offer hourly consulting on our website if you’d like to have one of our experts take a look - you can sign up for that here.
Thanks,
Gareth