Forum Discussion
Earlier Function
- 5 years ago
Hi, Anonymous
Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.
Table:
You may create a calculated column as below.
End Date = CALCULATE( MIN('Table'[DateTime]), FILTER( ALL('Table'), 'Table'[Person]=EARLIER('Table'[Person])&& 'Table'[Phase]=EARLIER('Table'[Phase])&& 'Table'[Status]="Complete"&& 'Table'[DateTime]>=EARLIER('Table'[DateTime]) ) )Result:
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Anonymous ,
Not very clear.
YOu can try
New Column = CALCULATE(MAX(Table[DateTime] , Filter(Table, Table[Name] =earlier(Table[Name]) && Table[Phase] =earlier(Table[Phase]) && Table [Status]="Complete"))
New Column = Calculate (MAX(Table[DateTime]), Table[Status] = "Complete")
Else
New Column = IF( Table[Status] = "Complete", Table[DateTime] , BLANK())
Regards,
Harsh Nathani
Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)