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
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
Employee
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
Employee
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
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.