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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

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

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors