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
BA_Pete
3 years agoSuper User
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
NikhilChenna
3 years agoSkilled Sharer
Hi BA_Pete ,
Great optimised solution brother. Averagex did not came to my mind only.
Regards,
Nikhil Chenna
Appreciate with a Kudos!! (Click the Thumbs Up Button)
Did I answer your question? Mark my post as a solution!