Forum Discussion

Learner86's avatar
Learner86
Icon for Helper I rankHelper I
4 years ago
Solved

Creating new columns based on colums from related Table

Dear community,    I want to create new columns based on other columns from another table using IF-condition. I hope you can help me. Image I have the following two tables   Table1:    ID   1 ...
  • tamerj1's avatar
    4 years ago

    Hi Learner86 

    Time new =
    MAXX (
        FILTER ( RELATEDTABLE ( Table2 ), Table2[Status] = "New" ),
        Table2[Time]
    )
    Time In Progress =
    MAXX (
        FILTER ( RELATEDTABLE ( Table2 ), Table2[Status] = "In Progress" ),
        Table2[Time]
    )