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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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