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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

Reply
Anonymous
Not applicable

Power Query Inner JOIN Merge not working as expected

Greetings,

 

I am using Power BI Desktop for Report Server, May 2022 version. I am getting unexpected results when performing a Merge of two tables using an Inner Join. Below are the tables and results.

 

Table 1 (RCM Room Activity Patient Types) :

NOTE: There are a LOT more rows in the actual table. I just limited to these rows as they illustrate the issue.

RCMRoomActivityPatientTypes.PNG

 

Table 2 (Note Categories by Patient Type):

NoteCategoriesByPatientType.PNG

 

Results:

InnerJoinResult.PNG

 

The M code for the step is as follows:

 

charris1119_0-1691768239756.png

 

I am not understanding why rows with Patient Types 'P' and '3' are being filtered out; I see why Patient Type 'A' is filtered out. Is there something I am missing, or is this a bug, or some sort of weird side-effect, or...? Any help or insight is appreciated. Thanks in advance.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

UPDATE:

 

I figured it out. There were extra spaces in the Pt Type column of Table 2.

I feel sufficiently foolish. ☹️

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Additional Info:

 

The same issue occurs using a Left Outer Join:

 

charris1119_0-1691769510333.png

 

Anonymous
Not applicable

UPDATE:

 

I figured it out. There were extra spaces in the Pt Type column of Table 2.

I feel sufficiently foolish. ☹️

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.