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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Sept PBI Carousel

Power BI Monthly Update - September 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

Find out what's new and trending in the Fabric Community.