Hi Everyone,
I recently started using Airtable and I think the whole tool is great. I am now setting up a Base for planning a private birthday party.
Some background information: We are multiple people celebrating together. Everyone can invite people and we want to divide the costs as following: Fix costs (Location, Band, …) are divided equally to all hosts and variable costs (food, drinks,…) are allocated by the number of guests per host.
I have a set-up with the tables “Hosts”, “Guests” and “Costs”. The guest table includes all people invited with a link to who invited them. (and vice versa) Important here: Individual people can be invited by multiple persons, so the link is multi-select. The Costs table includes a column “Cost type” which groups them in fix and variable costs.
Now I need to calculate the price for each person. I know exactly how to do that in excel:
- Sum the Fix costs and divide by the number of hosts
- Calculate the price per person by dividing the variable costs and the number of guests
- Calculate the number of guests per person. This includes “half” or “third” guests, if multiple Hosts invited the same person.
- Calculate the variable cost per host by multiplying the price per guest with the number of guests.
Now this is quite a challenge for me in AirTable at the moment. I am using a rollup for the fix price, which is working fine. When it comes to the variable price though, I have now idea how to realize that. I can count the number of invitees per host by summing up the number of links in the Guests collumn, but this leads to me counting the people that have been invited by multiple persons in multiple guests which leads to a wrong result.
Does anyone have an idea how I could do that or change my approach?
I hope my problem is clear, I am happy to answer any questions you might have.
Thanks a lot in advance.
Best
Tobias