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

Merge Query Issue : Data for few rows not loaded for same key value

Hi All,

 

As you can see in the below screenshot. I am trying to fetch some normalized Sales Role from a dimension table for the Left 2 column combination (Sales Role + Region). I am using left outer join to merge query. The values are populated for a combination of value:

 

Sales Role = Project Engineer Jr , Region = CoE for some values while they are null for others. Can anyone explain this behaviour?

I tried cleaning and trimming the data as well but it is not working.

 

rahulpaul5607_0-1613590336154.png

 

8 REPLIES 8
Anonymous
Not applicable

Hi@Anonymous,

 

Nice day! Has your problem been solved? if so, please consider Accept a correct reply as the solution to help others find it.

 


Best Regards,
Caitlyn Yan

 

parry2k
Super User
Super User

@Anonymous at least we know there is a data problem, and now fix is tricky. Click in the cell where value is correct, PQ shows values in the bottom and copy it and do a similar thing where value is not correct, do you see the length is different because of nonvisible character maybe. For the screenshot, it looks like all the values are in the Proper case, so the case doesn't seem to be the issue. At end of the day, there is some special character that is causing the issue and needs to fix it.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

@parry2k 

 

I found it is for if [Sales.Role] = "Project Engineer Jr" 

parry2k
Super User
Super User

@Anonymous let's first check each one individually to see which column has a data quality issue, add two columns and check each individually

 

if [Region] = "CoE" then 1 else 0

if [Sales.Role] = "Project Engineer Jr." then 1 else 0



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

@parry2k 

 Bingo. I think something is there hiding behind even after the clean/trim. Any trick to clean the same?

 

rahulpaul5607_0-1613599336182.png

 

parry2k
Super User
Super User

@Anonymous I think I gave you the wrong condition check, if should be AND not OR, with OR if one is true we will get 1, we want to make sure both are TRUE

 

 if [Region] = "CoE" and [Sales.Role] = "Project Engineer Jr." then 1 else 0



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

parry2k
Super User
Super User

@Anonymous I assume this merging step is after the clear/trim step? Are you doing this clean/trim on the Dim table as well. Has to be some special character that values are not matching.

 

Can you add a custom column to check the value by saying if [Region] = "CoE" or [Sales.Role] = "Project Engineer Jr." then 1 else 0 and we expect to get 1 for each row if there are some 0, which means some values are not matching.

 

just a suggestion to validate the data quality.

 

Check my latest blog post Improve UX: Show Year in Legend When Using Time Intelligence Measures | PeryTUS IT Solutions  I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

@parry2k 

Thanks Parry for your reply. Yes I performed the trim and then executed the merge. I perform the validation you mentioned and you can see all the values are 1 ( Region = 'CoE' and Role = 'Project Engineer Jr'.

 

When I am visualizing the data using the relationship then it tends to work, whereas the data goes missing when I am merging with the fact table. It's a strange behaviour.

 

I need the normalized role to be added in the table in order to further merge with a seperate table with multiple key.

 

rahulpaul5607_0-1613598151061.png

 

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.