Inventory app - virtual column formula to show available stock based on # of serials of a model

I am working on a simple inventory app and trying to create a virtual column that would represent the available stock for a model based on how many unique serials I have.

and for my second question, would it be possible to remove available stock based on if a serial received a timestamp, PO or my amount?

I gave each Serial an amount of 1 hoping to do something with the stock availability, so when I edited the serial to add a PO # I could just take the Amount of 1 away to adjust the stock #โ€ฆ but my theory failedโ€ฆ and here I am

Solved Solved
0 19 401
1 ACCEPTED SOLUTION

From your 3rd screenshot it looks like youโ€™ve maybe renamed the โ€œRelated Inventorysโ€ REF_ROWS virtual column to just โ€œInventoryโ€. If that is the case:

COUNT( SELECT( [Inventory][Model*] , ISBLANK( [some column**] ) ) )

* โ€œ[Model]โ€ here can actually be any column in the child table, doesnโ€™t matter.
** Replace โ€œ[some column]โ€ with whatever column you want to use to exclude a serial from the count when it is filled out.

View solution in original post

19 REPLIES 19
Top Labels in this Space