Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

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 ...
  • v-alq-msft's avatar
    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.