Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
I'm using Power Query for Salesforce. I was finding that an inner merge on Salesforce record Id was inexplicably excluding certain rows. So, as a test, I tried the following:
Now there should be no rows in Query 1 with a Salesforce Id that matches the Salesforce Id of a row in Query 2, right?
Am I missing something? Is my file corrupt?
Solved! Go to Solution.
Hi @colin501commons if your are checking Count of Records at the Power Query level it might not show the total number of records. Can you load the data and check the IDs in the reporting view after doing a merge ?
Proud to be a Super User! | |
Thanks for your quick response. It didn’t solve the problem, but as I was preparing a response, I discovered what was happening. My Query 1 was a combination of appended tables. I didn’t notice that in two of the contributing queries, I labeled the Id match field differently, so it was blank for those queries. I should have noticed the extra column following the appending. Once I dealt with that, the problem went away. Thanks for your time!
Thanks for your quick response, @Jai-Rathinavel. As noted in my reply above, I eventually figured out the problem with a little more digging. Thanks for your time!
Hi @colin501commons ,
Thank you for reaching out to Microsoft Fabric Community.
Thank you @Jai-Rathinavel for the prompt response.
The behavior you're seeing is very likely due to invisible inconsistencies in your Salesforce Id fields - most commonly leading/trailing spaces, case mismatches, or data type mismatches.
To resolve this, I recommend applying the following transformations to the Salesforce Id column in both queries before the merge:
Table.TransformColumns(Source, {{"Salesforce Id", each Text.Upper(Text.Trim(_)), type text}})
This will:
Once that’s done, rerun your Left Anti and Inner joins. The results should now be consistent and logical.
If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it!
Thank you.
Thanks for your quick response. It didn’t solve the problem, but as I was preparing a response, I discovered what was happening. My Query 1 was a combination of appended tables. I didn’t notice that in two of the contributing queries, I labeled the Id match field differently, so it was blank for those queries. I should have noticed the extra column following the appending. Once I dealt with that, the problem went away. Thanks for your time!
Hi @colin501commons if your are checking Count of Records at the Power Query level it might not show the total number of records. Can you load the data and check the IDs in the reporting view after doing a merge ?
Proud to be a Super User! | |
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
17 | |
9 | |
8 | |
7 | |
7 |