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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register 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
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

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