Forum Discussion

Ayappan's avatar
Ayappan
Helper III
4 years ago
Solved

Conditonal column based on 2 tables

Hi , 

    I am using more than 2 tables ..

    I want to add a column depend on another column 

    Project_Table  has Manager_ID column 

    Contact_Table has Manager_ID and Manager_Name 

     

i want Manager_Name in Project_table where Manager_Id are matching 

 

Thanks in Advance

 

SpartaBI can you help me on this 

  • Hi Ayappan ,

     

    If a relationship exists in the table house, the rows that are not empty can be filtered in the filter by the following way:

    If there is no relationship between the tables.

    M =
    CALCULATE (
        MAX ( Contact_Table[Manager_Name] ),
        Contact_Table[Manager_ID] = MAX ( Project_Table[ Manager_ID] )
    )

    If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.


    Best Regards,
    Henry


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

2 Replies

  • SpartaBI's avatar
    SpartaBI
    Community Champion

    Ayappan hey, what is the relationship between them? Can you share a screenshot of the model. Best if you could share a sample PBIX so I can send you back the one with the answer.

  • v-henryk-mstf's avatar
    v-henryk-mstf
    Community Support

    Hi Ayappan ,

     

    If a relationship exists in the table house, the rows that are not empty can be filtered in the filter by the following way:

    If there is no relationship between the tables.

    M =
    CALCULATE (
        MAX ( Contact_Table[Manager_Name] ),
        Contact_Table[Manager_ID] = MAX ( Project_Table[ Manager_ID] )
    )

    If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.


    Best Regards,
    Henry


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