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! Go to 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.
User | Count |
---|---|
41 | |
36 | |
28 | |
23 | |
16 |