0

Average period of storage

Hi,

we want to calculate the average period of storage for our items.

Basic info:
- All items are being tracked
- We are producing aroung 25-30k a month

What I did:
- Get a list of all items that were produced in a certain time frame
- filters: posting date, item no., lot no.
- Get a list of all item ledger entries with Lot.-No., posting date of "output", posting date of "sale"
- Lines without sale are being calculated with today's date
- calculate the difference between the date of output and sale for every single line
- add these up and calculate the average

Just looking at a single item or a time frame of 1 week is working quite good. But if I want to have a look at a full month the list simply explodes as I am generating about 25k lines. Looking at a full year would be totally impossible.

Unfortunately Jet Reports does not provide the possibility to sum the posting dates. My idea was something like: (nl("sum";"item ledger entry";"posting date";"entry type";"sale";additional filters) - nl("sum";"item ledger entry";"posting date";"entry type";"output";additional filters)) / nl("count";"item ledger entry";"posting date";"entry type";"sale";additional filters)

Hope it is clear what I want to do and that all my translations are correct. Anybody an idea?

Thanks
Andreas

3 comments

Please sign in to leave a comment.