Forum Discussion
Anonymous
6 years agoNot applicable
Earlier Function
Hi. I need to create a new column with the end date of that phase. The end of that phase is indicated by the complete state. the table would be similar to this but with more lines. Any idea how ...
- 6 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.
v-alq-msft
6 years agoCommunity Support
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.