Forum Discussion
andrewhann
8 years agoHelper II
Production Gap
Can anyone help with the following - I want to measure the time difference between the LASTBOOKDATE and FIRSTBOOKDATE from one Works Order to the next (ie Production Gaps) on each Production...
- 8 years ago
The last two references need to be FirstBookDate.
MAXX = CALCULATE( MAXX(Table1,Table1[LASTBOOKDATE]), FILTER( ALL(Table1), Table1[PRODUCTION_LINE] = EARLIER(Table1[PRODUCTION_LINE]) && Table1[FIRSTBOOKDATE]< EARLIER(Table1[FIRSTBOOKDATE])))
andrewhann
8 years agoHelper II
We - actually you - are almost there
If I look at one Line for a whole month sorted by firstdate we have some repeated MAXX dates causing incorrect result
Thank you for your kind assistance so far
fhill
8 years agoResident Rockstar
You have a bad LastBookDate that starts the group of errors... (EndDate exceeding the begin date of the next line.)
I would exclude this from the dataset since its erroneous. As long as the wrong value is in thelist of BookEnds that have to be compared to BookStarts, you'll get some form of error mathematically.
I would exclude this from the dataset since its erroneous. As long as the wrong value is in thelist of BookEnds that have to be compared to BookStarts, you'll get some form of error mathematically.