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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch 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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.