Forum Discussion
Anonymous
3 years agoNot applicable
Date Difference with Filters
Project No. Tasks in the Projects Start Date End Date AB10001 XXYYZZ12 8/24/2022 9/5/2022 AB10001 XXYYZZ13 8/25/2022 9/6/2022 AB10001 XXYYZZ14 8/...
- 3 years ago
Hi Anonymous ,
You just need one measure for all of your requirements:
_projectLeadTime = AVERAGEX( SUMMARIZE( yourTable, yourTable[Project No.], "minStart", MIN(yourTable[Start Date]), "maxEnd", MAX(yourTable[End Date]) ), DATEDIFF([minStart], [maxEnd], DAY) )Here's the output when applied against different levels of dimensions:
Pete
Anonymous
3 years agoNot applicable
Project No. | Task Lead Time | Project Lead Time |
AB10001 | 12 | 14 |
AB10001 | 12 | 14 |
AB10001 | 11 | 14 |
AB10001 | 11 | 14 |
AB10001 | 12 | 14 |
AB10002 | 43 | 74 |
AB10002 | 43 | 74 |
AB10002 | 41 | 74 |
AB10002 | 11 | 74 |
AB10002 | 12 | 74 |
AB10003 | 43 | 111 |
AB10003 | 43 | 111 |
AB10003 | 10 | 111 |
AB10003 | 72 | 111 |
AB10003 | 78 | 111 |
Anonymous
3 years agoNot applicable
So as far as task is concern, the lead time is simple, start date - end date difference. But when it comes to project. I need the Difference between The date of latest end task & date of earliest started task. And finally after this, I need to view the total average of 3 Project, Not as Line 1+2+3...+15 and divide by 15,