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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
it
New Member

Relationship Query

I'm new to Power BI and trying to figure out how to utilise relationship data between 2 csv's and would appreciate it if someone here can assist.

 

Example:

I have a CSV file with computer IP addresses on them, eg 192.168.1.101 and another CSV of all the subnets that we have, eg Office: Australia, Subnet: 192.168.1.0/24

 

Query:

Is there a way for me to link the 2 csv's together and have Power BI display which Office the computer belongs to?

2 REPLIES 2
Anonymous
Not applicable

Hi @it,

 

I agree with vanessafvg's point of view, you can take a look below formulas if it suitable for your requirement:

 

1. Table.Join function(Power query)

StepName= Table.Join(table1, key1, table2, key2, JoinKind.Inner)

 

2. NATURALINNERJOIN Function(DAX)

MergeTable= NATURALINNERJOIN(<leftJoinTable>, <rightJoinTable>) 

 

 

Regards,

Xiaoxin Sheng

vanessafvg
Community Champion
Community Champion

in power query you can merge the 2 tables on the IP (as long as there is a match) and make sure you bring through the computer name when you merge them

 

or in the data model in power bi, create a relationship between the 2 and then return the computer name in the visual of your choice





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.