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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
frippex
New Member

Relations between two tables

Hi guys,

For the ease of it I will try to explain my scenario using Countries and Offices:

- excel_countries.xlsx with a table called "Countries" (1 row per country)

- excel_offices.xlsx with a table called "Offices" (table headers are Countries, Cities. A country can have 0 Cities with Offices or several Cities with Offices so there can be empty to many rows per Country)

 

In PowerBi I have created a table to the left which is displaying all Countries (1 per row).

On the right side I would like to display the Offices in that country that has been selected on the table to the left.

 

How can I acchieve this?

1) Can this be done?

2) Can this be done in the service/app version or do I need to have the Desktopversion to get this going?

 

Thanks!

1 REPLY 1
HarishKM
Memorable Member
Memorable Member

@frippex Hello,
You can load both table and then create a relationship ( one to many relationship) in your power bi desktop software. 

HarishKM_2-1692859457409.png

 

 

Then your expected output will be like this.

 

HarishKM_1-1692859425930.png

 

Thanks

Harish M

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.