Forum Discussion

yuzexi's avatar
yuzexi
Regular Visitor
3 years ago
Solved

Creat a new column to delete duplicate row based on multiple condition

Hello,   We need help to create a dax formule. We have a calculated table which have the following columns (Training, Email,  Date, Statut, Source)  For one person, he could do the training in se...
  • Anonymous's avatar
    Anonymous
    3 years ago

    Hi yuzexi ,

    I have created a simiple sample, please refer to it to see if it helps you.

    Create a measure.

    Measure =
    IF (
        MAX ( 'Table'[statut] ) = "NOT DONE"
            && MAX ( 'Table'[cource] ) = "LWLAPP",
        "DELETE",
        IF (
            MAX ( 'Table'[statut] ) = "DONE"
                && MAX ( 'Table'[cource] ) = "CHINA",
            "DELETE",
            "KEPT"
        )
    )
    

     

     

    If I have misunderstood your meaning, please provide more details with your desired output and pbix file without privacy information.

     

    Best Regards

    Community Support Team _ Polly

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.