I'm working with a database structure that has three tables: Publications, Artworks, and Individuals. I'm running into an issue with a Rollup field and hoping someone can help me find a solution.
My Table Structure:
Artworks table: Has a field that references one or more Individuals
Publications table: Has a field that references one or more Artworks
Publications table: I want to create a Rollup field that shows all Individuals associated with the Artworks in each Publication
The Problem:
When I use a Rollup field with an ARRAYUNIQUE() formula to get the individuals associated with the artworks, I'm getting unexpected results.
For example, if a Publication contains 10 Artworks, and each Artwork has 1, 2, or 3 associated Individuals (sometimes different ones), the Rollup field returns each combination of individuals rather than each individual individually.
What I Want:
I want the Rollup to return each unique Individual associated with any of the Artworks in the Publication, not the combinations.
What I've Tried:
Using ARRAYUNIQUE() in the Rollup formula, but this seems to treat each combination of individuals as a unique entity rather than breaking them down to individual records.
Has anyone encountered this issue before? Is there a way to modify the Rollup formula to flatten the results and show each Individual separately?
Any suggestions would be greatly appreciated!
Thanks in advance for your help.
Best answer by ScottWorld
@Lea_Castonguay
Yes, this is an extremely tricky one to solve, and I feel like this is a bug in Airtable.
I’m not 100% sure if this will work for you, but I’m hoping that you can solve it by taking the following steps:
In your Artworks table, it sounds like you have a linked record field that is linking to all of your individuals.
For some reason, Airtable doesn’t like doing “unique value rollups” with linked record fields, so you’ll need to create a lookup field instead.
So, in your Artworks table, you’ll want to create a lookup field that looks up the Individuals based on the Individuals linked record field.
When creating your lookup field, just choose your primary field in the Individuals table.
Yes, you will end up with the exact same values in both your lookup field and your linked record field. That’s why this solution is so strange.
Then, in your Publications table, change your rollup field to look at the Artwork table’s lookup field (instead of the linked record field), and use this formula for your rollup field:
ARRAYUNIQUE(ARRAYFLATTEN(values))
I’m not 100% sure if this will actually work, but I believe that this will solve the problem for you.
Yes, this is an extremely tricky one to solve, and I feel like this is a bug in Airtable.
I’m not 100% sure if this will work for you, but I’m hoping that you can solve it by taking the following steps:
In your Artworks table, it sounds like you have a linked record field that is linking to all of your individuals.
For some reason, Airtable doesn’t like doing “unique value rollups” with linked record fields, so you’ll need to create a lookup field instead.
So, in your Artworks table, you’ll want to create a lookup field that looks up the Individuals based on the Individuals linked record field.
When creating your lookup field, just choose your primary field in the Individuals table.
Yes, you will end up with the exact same values in both your lookup field and your linked record field. That’s why this solution is so strange.
Then, in your Publications table, change your rollup field to look at the Artwork table’s lookup field (instead of the linked record field), and use this formula for your rollup field:
ARRAYUNIQUE(ARRAYFLATTEN(values))
I’m not 100% sure if this will actually work, but I believe that this will solve the problem for you.