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

Merge query returns no matching values when there are matching ID columns

I am working with some tables from Salesforce, and it requires merging queries to relate different objects. I was able to create a Parent Case / Child Case relationship by merging queries successfully, but I am running into issues with another table named Child Case Data Tracker. It has a column ParentCaseId, whcih is an exact match to the previously mentioned Parent Parent Case record. My plan is to match them, then expand / sum a column in there to get a value of work completed to the Parent Case.

 

The issue however, is that for some reason Power BI won't make the connection when I do a merge query. I know there has to be something I am doing wrong because I can visually match the IDs 100%. I can paste the ID into a Salesforce URL and load the parent case, conforming it is indeed the correct ID to use.

 

So far, I have tried doing a trim / clean of both columns from both tables, playing with the merge type, deleting and recreatng the query, and nothing seems to fix it. It is pulling null values for every single record in the original able, even rows I confirmed have a matching ID in the other table.

 

Has anyone experienced something like this before? I am completely stumped on how to get Power BI to recognize this relationship.

2 REPLIES 2
vanessafvg
Super User
Super User

are the id's numbers or text? is it possible to share  an example of some of the data that you trying to match?





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!




Thank you for the reply! I actually figured it out when I was gathering some sample data for you to reivew.

It looks like Salesforce was appending a few extra digits to the Parent Case Table ID, that are not always present in the Data Tracker table. 

5008a000027GPig
5008a000027GPigAAG

5008a00001uVEPw

 

It seems like if I delete the 3 extra digits (15 digit ones work and 18 digit ones don't), I can get a result, so I am thinking, if I do a custom column to remove the last three digits but only if the character length = 18. 

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.