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
sandip
Helper III
Helper III

How I can get related column values from a table based on user selection

Hi,

I have 2 tables : Orders and People. 2 tables are related through Region column.

Now in a table I just show Order ID and Category and in another table I have to show realted Country, City and Region Name and also People Name in the second table based on the user will select the Order ID column value.

Table Relationship:

Capture.JPG

Table 1:

Capture3.JPGPlease suggest how can I achieve this?

1 ACCEPTED SOLUTION
v-xicai
Community Support
Community Support

Hi @sandip ,

 

You may change the Cross filter direction of the relationship between the table Orders and People from Single to Both, which will take the two tables treated as a single table.

 

Then you can put columns Country, City , Region Name and People Name into table visual. So when you filter Orders[Order ID] in visuals, the other linked tables' fields in visuals will return corresponding result.

 

You can learn more about relationship :https://docs.microsoft.com/en-us/power-bi/desktop-create-and-manage-relationships.

 

Best Regards,

Amy

 

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

1 REPLY 1
v-xicai
Community Support
Community Support

Hi @sandip ,

 

You may change the Cross filter direction of the relationship between the table Orders and People from Single to Both, which will take the two tables treated as a single table.

 

Then you can put columns Country, City , Region Name and People Name into table visual. So when you filter Orders[Order ID] in visuals, the other linked tables' fields in visuals will return corresponding result.

 

You can learn more about relationship :https://docs.microsoft.com/en-us/power-bi/desktop-create-and-manage-relationships.

 

Best Regards,

Amy

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.