Please help me solve a problem - I have a table of tennis matches, which has fields Player 1 and Player 2, which are linked to another table Players. In the matches table next to the Player 1 and Player 2 fields, I want to add a single select field Winner, which will have only 2 values: Player 1 or Player 2.
Is there a formula that will allow me to create a single select from the values of the neighboring fields?
Thanks.
Best answer by EvreuxPendragon
Hello!
You don't need a formula to make this work actually. Assuming you have an identifier, username or fullname in your player records:
Go to your Matches table.
Add two Lookup columns.
Set the Source of each lookup to Player 1 and Player 2.
Set the Field Lookup to your Id/username/fullname.
Now add your Winner column with Linked Record type.
Enable Filter record selection by a condition.
Set two conditions with the following sentence: Where [Username] is [Lookup from Player 1] or [Username] is [Lookup from Player 2]. To enable the selection of lookups, click on the gear icon next to each condition and click Dynamic Condition.
Click Save.
Here are some screenshots for the configuration of the lookup fields:
You don't need a formula to make this work actually. Assuming you have an identifier, username or fullname in your player records:
Go to your Matches table.
Add two Lookup columns.
Set the Source of each lookup to Player 1 and Player 2.
Set the Field Lookup to your Id/username/fullname.
Now add your Winner column with Linked Record type.
Enable Filter record selection by a condition.
Set two conditions with the following sentence: Where [Username] is [Lookup from Player 1] or [Username] is [Lookup from Player 2]. To enable the selection of lookups, click on the gear icon next to each condition and click Dynamic Condition.
Click Save.
Here are some screenshots for the configuration of the lookup fields: