Discussion board where members can learn more about Qlik Sense App Development and Usage.
I'd like to add something into my script to find the last date an item of stock was used. I would then use this date to calculate how old the stock was (based on the last time it was used).
Please see picture of example data, but basically it's Stock Code, Date of Transaction and quantity of the movement. It is a standard stock ledger showing each and every stock transaction.
You can do something like this:
let vToday = floor(today())
$(vToday) - Date as DaysAgo
Max(Floor(Date)) as Date
Group by [Item Code]