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
lucasiragusa
Frequent Visitor

Connecting two columns in one table with one reference table without duplication

Dear community,

 

I am trying to create a relationship between two columns in a table (call it "Flight information") that has flight schedule information and a table that contains details on origin and destination airports (call it "Airport information"). I want to link both origin and destination airport code to the same unique key in the table that contains airport details.

 

What is the recommended practice in this case? My problems are:
- If I manually connect both codes from "Flight information" to "Airport information", I have to make one relationship inactive;
- Furthermore, if I manually connect as described in the point above, I will be unable to pick the right detail from the "Airport information" table for use in the dashboard (ie I won't be able to distinguish whether I want the details to show for origin or destination airport).

 

One way around this problem would be to duplicate the "Airport information" table into "Origin Airport information" and "Destination Airport Information". However, wouldn't this be an inefficient duplication of data?

 

Thanks in advance for your help, 

Luca

1 ACCEPTED SOLUTION

Hi @lucasiragusa

 

in this case I would duplicate the Airport Information table and connect one to the FROM and on to the TO

 

should not be a problem for a dimension table

 


 


Did I answer your question correctly? Mark my answer as a solution!


Proud to be a Datanaut!  

View solution in original post

3 REPLIES 3
LivioLanzo
Solution Sage
Solution Sage

Hi @lucasiragusa

 

Does your model look like this ?

 

2018-10-15_8-37-22.jpg

 


 


Did I answer your question correctly? Mark my answer as a solution!


Proud to be a Datanaut!  

Hi @LivioLanzo,

 

 

The attached is a simplified example. I want to use the IATA code of the airport to retrieve info like name of the airport, latitude and longitude etc. 

 

 

model example.PNGairport code to access 

Hi @lucasiragusa

 

in this case I would duplicate the Airport Information table and connect one to the FROM and on to the TO

 

should not be a problem for a dimension table

 


 


Did I answer your question correctly? Mark my answer as a solution!


Proud to be a Datanaut!  

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.