# Turning computed/relation/lookup data into Basic column data

**URL:** <https://community.glideapps.com/t/turning-computed-relation-lookup-data-into-basic-column-data/78880>\
**Category:** Ask for Help\
**Created:** [January 1, 2025, 2:00am UTC](https://community.glideapps.com/t/turning-computed-relation-lookup-data-into-basic-column-data/78880 "2025-01-01T02:00:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ja\_ke](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/ja_ke/32/83176_2.png) [@Ja\_ke](https://community.glideapps.com/u/Ja_ke)\
**Post date:** [January 1, 2025, 2:00am UTC](https://community.glideapps.com/t/turning-computed-relation-lookup-data-into-basic-column-data/78880/1 "2025-01-01T02:00:51Z")

</div>

Tables…

- Services
- Invoices
- Ledger Entries

Currently, when i want to add an item to an invoice, the Item ID and Invoice ID that the item should be added too get placed into the Ledger Entries table. In the Ledger Entries table it looks up price, name, pay, among other things.

This works fine, but when we change prices it automatically adjusts all invoices. Which causes a bunch of issues.

After rewatching a video (with more experience now) from Robert Pettito that uses a form table detail screen to have just 1 form instead of XX, im going to try it. Video is found here ([https://www.youtube.com/watch?v=Dr1pCuL2Mg0&list=PLiXRc87c6KKUcnZHIcfG3B1fgGbsOO0zw&index=4&ab\_channel=RobertPetitto](https://www.youtube.com/watch?v=Dr1pCuL2Mg0&list=PLiXRc87c6KKUcnZHIcfG3B1fgGbsOO0zw&index=4&ab_channel=RobertPetitto)) This will clean up my app massively. I eventually had so many different forms depending on navigation to get to the form that when i made a change to approach it was so hard to update everything.

So… im starting fresh with all the lessons ive learned along the way (for the millionth time… but each time it takes me 2-3 hours to recreate what took a week while learning!)

I’m wondering if it would be better to have all the lookups on the newly made Ledger Entry FORM table, and if possible have it write that data into basic columns on the Ledger Entry Table.

Is there a better way of going about this?

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [January 1, 2025, 2:25am UTC](https://community.glideapps.com/t/turning-computed-relation-lookup-data-into-basic-column-data/78880/2 "2025-01-01T02:25:11Z")

</div>

> [@Ja\_ke](#):
>
> This works fine, but when we change prices it automatically adjusts all invoices. Which causes a bunch of issues.

What you could do is keep a “Price History” table. It would have columns such as:

- Date
- ItemID
- Old Price
- New Price

Then you could look up the Price based on the Ledger Date. Could also be useful to have a price history for each item? 🤷‍♂️

> [@Ja\_ke](#):
>
> and if possible have it write that data into basic columns on the Ledger Entry Table.

That would be a simple approach, yes.

---

<div class="post-metadata">

**Author:** ![Ja\_ke](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/ja_ke/32/83176_2.png) [@Ja\_ke](https://community.glideapps.com/u/Ja_ke)\
**Post date:** [January 1, 2025, 2:37am UTC](https://community.glideapps.com/t/turning-computed-relation-lookup-data-into-basic-column-data/78880/3 "2025-01-01T02:37:04Z")

</div>

That makes sense, I hadn’t considered a price history or the value of it.

Thanks, I am going to have a think and maybe try both to see what it looks like.
