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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors