Powerapps model driven apps set lookup field based on condition
I have been making a powerapps model driven application which is our crm. So our company entity has 4 different locations, 1 for headquarters, 1 for invoices, 1 for delivery, and a list of all locations. The location entity has an multi select option set with 5 different settings, headquarters, invoices, delivery, office and other.
Now we would like to automate this lookup field in this way that when a location has headquarters selected the company will be updated so that the headquarters address lookup field will be filled in automatically. And this is the same for Invoices and delivery.
Is this possible, since there is no option to calculate this field?