Forum Discussion
ConnorH
6 years agoMicrosoft Employee
Finding days between two rows date values
This is kind of complex and I haven't been able to figure it out. I am trying to create a column that finds the number of days between a project status but the project ID must be the same. The projec...
- Anonymous6 years ago
Hi ConnorH ,
Create a Calculated Column
Column = VAR _prevstage_sameprojId_date = CALCULATE ( MAX ( 'Table1'[Modified date] ), FILTER ( 'Table1', 'Table1'[Modified date] < EARLIER ( 'Table1'[Modified date] ) && Table1[Project ID] = EARLIER ( Table1[Project ID] ) ) ) RETURN DATEDIFF ( _prevstage_sameprojId_date, 'Table1'[Modified date], DAY )Regards,
Harsh NathaniAppreciate with a Kudos!! (Click the Thumbs Up Button)
Did I answer your question? Mark my post as a solution!
Anonymous
6 years agoNot applicable
Hi ConnorH ,
Create a Calculated Column
Column =
VAR _prevstage_sameprojId_date =
CALCULATE (
MAX ( 'Table1'[Modified date] ),
FILTER (
'Table1',
'Table1'[Modified date]
< EARLIER ( 'Table1'[Modified date] )
&& Table1[Project ID]
= EARLIER ( Table1[Project ID] )
)
)
RETURN
DATEDIFF (
_prevstage_sameprojId_date,
'Table1'[Modified date],
DAY
)
Regards,
Harsh Nathani
Appreciate with a Kudos!! (Click the Thumbs Up Button)
Did I answer your question? Mark my post as a solution!
young351
3 years agoFrequent Visitor
I used this to calculate Days Between Loads and was wondering how I could add to it to also calculate if it was the last Load, then how many days since then to "today"?