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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. 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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.