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.
theov
4 years agoAdvocate III
Hi there, basically you can use EARLIER here. This function is explained fully in this video with practical examples. Nowadays we use variables vastly to replace EARLIER but learing this function helps deepen your DAX a lot: