Forum Discussion
Calculating usage based on a field not on data parameters
Hello I am working on an inventory report
We need to calculate usage based on LEAD TIME instead of date filters (Which we are currently using, varies between weeks days years etc)
The measure we are using for USAGE is:
Item 1000
Lead time 35
Item 1001
Lead time 40.
Also how would i do so without having the date parameters affect the new measure.
2 Replies
- parry2k
Super User
Anonymous can you post sample data with the expected output you are trying to achieve, unfortunately, I'm not able to follow your question.
- AnonymousNot applicable
Hello
What i am trying to do is calculate usage based on lead time (which is a fixed number in days) and not the date range. The report I have calculates usage based on whatever date parameter they set and it could vary from 2 weeks, 90 days, 8 weeks etc.
The measure I use to calculate usage is:
Usage = SUMX ( TABLE, -1 * TABLE[QTY] )
I have another measure I use to calculate lead time:
ItemLeadTime =CALCULATE(SUMX(TABLE,TABLE[LEADTIME]),FILTER(TABLE,TABLE[INVENTDIMID] = "00000001_060" ))Lead time is simply the time it takes to get the ordered goods from the vendor to the shelf ready for picking. So it can be 35, 60, 90 days etcHow can i calculate usage by lead time and not by the date filter.Do you still need to see my sample data?