Forum Discussion

MinaGourlay's avatar
MinaGourlay
Qrew Member
6 years ago

Reporting across tables

Hi
New to the forum and pretty new to quickbase. I've used databases before but am struggling a little with what I think should be quite simple!  I'd be grateful for any assistance please.

I have a database with 3 tables which is for tracking our first aid kits across a farm.

1. Boxes - a table listing all boxes by number, the type of box and which asset they belong to and location (12, travel, tractor, farm)
2. First Aid Box Records - a table listing the contents of each box by item along with the quantity in each box (tractor, 12, travel, plaster, 6)
3. Stock Records- a table which lists all of the first aid items available with their expiry dates and quantity in main stock (plaster, 30/1/2020, 20)

In my table 2 - first aid box records - I have a report which sums all items showing me a total for plasters, bandages etc across the estate as a grouping by item.

All of these are fine by themselves but I'm trying to get the last table - 3. stock records - to calculate a formula to show how many items we have left in stock once the first aid kits have been topped up - it sounds so simple to me - take the totals from the report in table 2 and minus them from the quantity column for each item in table 3, but I just can't figure it out! 

Hope this makes sense and I'd be so grateful for any help (suspect its something really easy and will feel like an idiot but I've given up trying!)

------------------------------
Thank you
Mina
------------------------------
  • Hi Mina,

    I'd love to help you solve this issue but I need a little clarification to give the best advice.

    How do you have your tables related? Your calculations will have to go through a parent record summary field in one way or another and if you've not set up those relationships, you'll have a heck of a time trying to figure it out.

    I suspect you'll just need to create a few summary fields from table 2. This depends on how you're listing your "Main Stock" though. Does main stock include what's been allocated to your boxes, or only the stock that has not been distributed to boxes? In other words, is main stock the sum of whats in the boxes and on your shelves or is it only what's on your shelves?

    ------------------------------
    Joshua Krohn
    ------------------------------