I am writing this seeking your kind support in writing the proper formula, after i spent 15 days trying to figure out the solution. and restructured my entire tables twice.
it is inventory app. it is multi companies, each has multiple stores - Engineers used to use the terminology “project” for the “project store”. Each company has list of materials shared across their entire store, but each store has his own quantity and starting balance for each material.
now, i have Company Table, Material table with reference to company table, project “Store” table and table for inventory movement structured as per the image
,
the enum col named [Movement] is a choice of four types:
Supply, Export, Transfer and Return.
i used to use separate table for each inventory movement " which was best for me, but since i couldn’t do the math so i re arranged the four tables into one [Movement].
i used the follows:
SUM(
SELECT(INVENTORY MOVEMENT[Quantity],
AND([Movement]=“Supply”,
[Project]=[_THISROW].[project],
[Material Name]=[_THISROW].[Material Name]
)))
but it is not working.
i used
IF(AND([Movement]=“توريدات”,[Project]=[_THIS],[Material Name]=[_THIS]),SUM(
INVENTORY MOVEMENT[Quantity]),“0”
)
i created a nice dashboard with filtered items but no calculations is their.
However, all i need is a table view to show as per the image.
i am using the same in Gsheet formulas as per the image, but i need it to be in app sheet level rather than gsheet formulas.
Please support in that if you can.
Thank you





