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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
gator99
Helper I
Helper I

linking data from a field in the same table from one field to another??

Sorry - not exactly sure how to explain (at least in the subject line) what I am after, but let me try:

 

I have a customer table and inside of this table are fields with customer demographics (i.e. name, address, CustID etc.) with that said there is also a referral id of the customer that referred them to us (RefbyID) which actually equals the CustID in the same table.

 

I have attached a screenshot (exported) of a simple table to show this relationship.

 

What I am trying to do is Power BI is creat a report that shows the customers that have been referred to us and in the same report pull the referring customers information in it.  Hopefully that make sense?

 

Capture.PNG

 

 

 

 

1 ACCEPTED SOLUTION
Phil_Seamark
Microsoft Employee
Microsoft Employee

Have a look at creating a table in the Query Editor using the Merge feature.  But join Cust ID from one table to RefByID in the other

 

This should create a new table for you which, when you rename the columns appropriately, will probably allow you to build your reports.


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

View solution in original post

2 REPLIES 2
Phil_Seamark
Microsoft Employee
Microsoft Employee

Have a look at creating a table in the Query Editor using the Merge feature.  But join Cust ID from one table to RefByID in the other

 

This should create a new table for you which, when you rename the columns appropriately, will probably allow you to build your reports.


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

I have not, but to be clear since this data is all in one table, I would need to duplicate the original table then merge correct?

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

Check out the September 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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