Skip to main content

Self-linking tables (and lookup/rollup/count fields)


Link fields in other tables show up as options for a Lookup field, but not the link fields to the self-linking table. I see a feature request for Rollups on self-linking tables (Roll Ups for Fields Linked Within The Same Table). Is there no way to use the linked field within the table for Lookup at this time?

17 replies

  • Inspiring
  • 94 replies
  • May 8, 2017

That’s correct, Lookups using linked fields within the same table are not supported at this time.


  • Known Participant
  • 12 replies
  • September 2, 2017

I’ve posted on this before. But seen no activity on it. I need this, soon if possible, because every single base of mine relies on this functionality.

I REALLY want a link-to-record within the same table to create another link column that auto-populates. Or a type that will.
I just spent all day trying to fudge around it, but it requires either (a) manual linking with every record, (b) at least two new columns on this and a completely separate table to copy/paste/formula, that requires basically a temporary duplicate entry and again, lots of manual entry. And this doesn’t update with new records.

I’d love a hierarchically-grouped view, but I could make do with just this one feature;
I want a second column to be created when I self-link a table!!

Does anyone have a self-updating workaround to this? Because for the life of me I can’t find one. And I don’t want to fiddle around with Zapier, either, because any solution I can think of with that requires a paid account.

Edit:
For now I’ve settled with putting each level of hierarchy on a new table, and I can sort of see them grouped in a hierarchical format.
With this (Probably the intended) use case, allowing lookups/rollups to pull actual linked records of linked records, so you can click through, would basically solve my problem.


Hi Jason,
What are you really trying to accomplish, not the technical, but the functional. From what I see, you’re trying to create a relationship or hierarchy within one table. Can you give more detail on the application and what you’re trying to accomplish from a functional perspective?

Seems like I’m missing something but could you just create a series of categories and then group on the categories? This would give you the visual drill down I think you’re looking for. The categories could be driven from other tables which are just summaries of the key table you’re talking about.

Please provide some more functional details.
Pierce


  • Known Participant
  • 12 replies
  • September 8, 2017
Pierce_Baugh1 wrote:

Hi Jason,
What are you really trying to accomplish, not the technical, but the functional. From what I see, you’re trying to create a relationship or hierarchy within one table. Can you give more detail on the application and what you’re trying to accomplish from a functional perspective?

Seems like I’m missing something but could you just create a series of categories and then group on the categories? This would give you the visual drill down I think you’re looking for. The categories could be driven from other tables which are just summaries of the key table you’re talking about.

Please provide some more functional details.
Pierce


I have used series’ of groups as well as tables for this.
The use case tends to be where it’s a more specific type of the same kind of item, that has all of the same points of data. Either way above, this becomes quite a chore to ender data manually.

For example; For my art studies I have a list of animal types/species, and the variables I use to classify them are the same; but some are subspecies of others, or have very similar body types.
Similarly, I have a set of ‘aspects’ I can use that nest like that - for creation of fantasy creatures, etc.
Another list is of professions per time period to study; overlapping mediums, locales, roles, etc. are all ideal for tables. But nested by social rank, or specification, is more difficult.


Matt_Bush wrote:

That’s correct, Lookups using linked fields within the same table are not supported at this time.


Is there any other way of telling the data if a row has been outdated/obsolete by a new row, and witch row… or how else solve that problem?

In my db, i have a restricted membership, where you can only replace an old member leaving. I have no clue how to do this without the self-linking table and use it for a lookup…?


  • Inspiring
  • 1386 replies
  • September 26, 2017
Rickard_Uddenbe wrote:

Is there any other way of telling the data if a row has been outdated/obsolete by a new row, and witch row… or how else solve that problem?

In my db, i have a restricted membership, where you can only replace an old member leaving. I have no clue how to do this without the self-linking table and use it for a lookup…?


It’s not a perfect solution, but I often use a second linked table, typically with a single record, as an aggregation/calculation table to allow me to work around the restriction against lookups/rollups within the same table: Every row on table 1 is linked to the single record in Table 2. From Table 2, I perform rollups/lookups against Table 1; from Table 1, I lookup the desired value from Table 2.

While thematically and content-wise having little or nothing to do with your concerns, this base demonstrates the use of many-to-one links and the secondary calculations table.


W_Vann_Hall wrote:

It’s not a perfect solution, but I often use a second linked table, typically with a single record, as an aggregation/calculation table to allow me to work around the restriction against lookups/rollups within the same table: Every row on table 1 is linked to the single record in Table 2. From Table 2, I perform rollups/lookups against Table 1; from Table 1, I lookup the desired value from Table 2.

While thematically and content-wise having little or nothing to do with your concerns, this base demonstrates the use of many-to-one links and the secondary calculations table.


Hmm not a perfect solution is the right word :slightly_smiling_face:

If the membership is today own by one (1) member, but the next one taking over, own by two (2) users…, vice versa or a two-to-two relationship.

Do you get it to work?

And still you preferably want one Airtable Form to add data, that is in my mind impossible.

Right?


  • Inspiring
  • 1386 replies
  • September 28, 2017
Rickard_Uddenbe wrote:

Hmm not a perfect solution is the right word :slightly_smiling_face:

If the membership is today own by one (1) member, but the next one taking over, own by two (2) users…, vice versa or a two-to-two relationship.

Do you get it to work?

And still you preferably want one Airtable Form to add data, that is in my mind impossible.

Right?


Now you’re moving the goalposts. :slightly_smiling_face:

I would think the users-to-membership issue could be addressed by separating the definition of memberships from that of users, allowing a one-to-many link between the two tables – but the other issue you raise is a bigger deal.

You’re right: The current inability of allowing any sort of drill-through from a form to records linked from the initial table would be a show-stopper for you. (While I certainly understand the presumed reasons for that design decision, it doesn’t make it any easier to deal with.) I’m in the process of taking an app originally designed for use with a custom front end accessing Airtable data through API calls and converting it into a pure Airtable implementation, and the inability to address linked records through a form has given me the most trouble. At the moment, my best hope is to find a way to capture the data in a format that can be exported and manually re-imported later to create the necessary linked records – but, so far, the solution eludes me.


  • New Participant
  • 2 replies
  • February 26, 2018

This is so necessary, please add this Airtable!


Forum|alt.badge.img+3
  • Inspiring
  • 29 replies
  • May 23, 2018
Jordan_Hauer wrote:

This is so necessary, please add this Airtable!


I need this too please


i need this also- surprising that it does not


  • Known Participant
  • 23 replies
  • July 3, 2018

Please integrate this feature!


Adding my +1 for this feature


Adding my +1 :slightly_smiling_face:


  • New Participant
  • 1 reply
  • September 6, 2018

I’d love this to work. When I’m planning a project, I have tasks A, B and C.

  • I want A to have children of B and C
  • B depends only on A
  • C depends on A and B

I want to be able to perform lookups and rollups on those records to pull the start and end dates from their parents for use in formulas after.

Programs like ProjectLibre work this way to set up task dependencies. Being able to perform this kind of reverse-lookup in Airtable would be a huge step forward.


Hi everyone! Lookup, rollup, and count fields now support looking up, rolling up, and counting from a linked record field that has been linked to its own table. This will make it easier to model the relationships between records that exist in the same table. Going to go ahead and set a timer for this thread to close—thank you all for your patience, and happy linking!

A couple of the posts in this topic were about a related feature request—the ability to make it so that a self-linking linked record field automatically populates in the same table. This is not yet something that Airtable supports, so I split those posts out into a separate topic: Automatic bidirectional linked records in same table.


  • Inspiring
  • 1386 replies
  • October 23, 2018
Katherine_Duh wrote:

Hi everyone! Lookup, rollup, and count fields now support looking up, rolling up, and counting from a linked record field that has been linked to its own table. This will make it easier to model the relationships between records that exist in the same table. Going to go ahead and set a timer for this thread to close—thank you all for your patience, and happy linking!

A couple of the posts in this topic were about a related feature request—the ability to make it so that a self-linking linked record field automatically populates in the same table. This is not yet something that Airtable supports, so I split those posts out into a separate topic: Automatic bidirectional linked records in same table.


Wish I could give this a dozen thumbs-ups! :winking_face:


Reply