Hi everyone,
Sometimes it is necessary to calculate a weighted average, for example, the cost of a unit of goods in a warehouse, despite the fact that purchases were made at different prices. For such a scenario, I made a database consisting of two related tables. Here is the link.
https://airtable.com/shrvnJDOuHiPjErXW
Since AirTable does not show how the calculated fields are made, I present them in screenshots below
![Andrey_Kovalev_0-1671006441354.png Andrey_Kovalev_0-1671006441354.png](/t5/image/serverpage/image-id/23904i60FB183B4C09214D/image-size/medium?v=v2&px=400)
![Andrey_Kovalev_1-1671006484370.png Andrey_Kovalev_1-1671006484370.png](/t5/image/serverpage/image-id/23905i01ECA9EEFA7175B7/image-size/medium?v=v2&px=400)
![Andrey_Kovalev_2-1671006511392.png Andrey_Kovalev_2-1671006511392.png](/t5/image/serverpage/image-id/23906iD7A15C0216B348FE/image-size/medium?v=v2&px=400)
Hope this can be of any help.