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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

RELATED function not pulling all values

I have a two identitical data set that have ID numbers that are reoccuring in the data sets. I have used the CONCATENATE function to bind this value together with another code that creates a unique row in the respective data sets. These concatenated values are then bound by a ONE:ONE relationship

 

I would like to pull the related ID number from one of the data set to the other but the RELATED function only solves it for one of the values and leaves the other blank, even if both concatenated values have a direct equivalent in the other data set.

 

Would appreciate an explanation as to why this is happening and a suggestion how to return the respective ID No to all my rows. 

 

See example below:

 

ID NO       ID CODE       CONCATENATED      RELATEDVALUE (pulled from other table)

123            A                    123A                         123

123            B                     123B                         (BLANK, but I want it to pull 123)

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Thanks for your reply. 

 

I resolved the matter by creating a DIM table without active relationship and using USERELATIONSHIP instead

View solution in original post

6 REPLIES 6
v-lid-msft
Community Support
Community Support

Hi @Anonymous ,

 

Sorry for that, but we cannot reproduce this issue, could you please provide another sample table based on your shared table if it does not contain any confidential information?

 

13.jpg14.jpg15.jpg

 


Best regards,

 

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Thanks, I figured out why it's causing problem and it's apparently because one of the text strings I concatenated changed between the data sets.

 

Here is an example file. In this file I have shown a table of what I want to do. I want to create a table that recognizes ID NO for both data sets. I've considered creating a DIM table with ID NO, but because my original CONCATENATED relationship is both directions, Power BI won't let me create it. 

 

https://www.dropbox.com/sh/0tl077ucen96782/AAAr44nW5j0tUASkQIQX23Z5a?dl=0

 

 

Hi @Anonymous ,

 

Based on your shared sample pbix file, The "CONCATENATED text string for 1:1 Relationship" Column does not have the same value, for example "15-1-19-1" and "15-3-19-1" , although the two tables has a One-One relationship, but it only connect the rows which have same value in CONCATENATED column.

 

Have you tried to create a M:M relationship between two tables based on the "ID NO" column? Could you please  show the exact expected result based on the Tables that you have shared.


Best regards,

 

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Thanks for your reply. 

 

I resolved the matter by creating a DIM table without active relationship and using USERELATIONSHIP instead

Hi @Anonymous ,

 

Glad to hear that you have resolved your problem. Thank you for sharing this wonderful solution, would you please kindly mark your sharing solution as an answer so that it can benefit more users?


Best regards,

 

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
mwegener
Most Valuable Professional
Most Valuable Professional

Hi @Anonymous ,

 

could you post a sample PBIX.

 

If I answered your question, please mark my post as solution, this will also help others.

Please give Kudos for support.

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials


Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.