Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Ayappan
Helper III
Helper III

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 

1 ACCEPTED SOLUTION
v-henryk-mstf
Community Support
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:

vhenrykmstf_0-1656408040783.png

vhenrykmstf_1-1656408239302.pngvhenrykmstf_2-1656408255018.png

If there is no relationship between the tables.

vhenrykmstf_3-1656408367915.png

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

vhenrykmstf_4-1656408552412.png

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.

View solution in original post

2 REPLIES 2
v-henryk-mstf
Community Support
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:

vhenrykmstf_0-1656408040783.png

vhenrykmstf_1-1656408239302.pngvhenrykmstf_2-1656408255018.png

If there is no relationship between the tables.

vhenrykmstf_3-1656408367915.png

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

vhenrykmstf_4-1656408552412.png

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.

SpartaBI
Community Champion
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.

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors