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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
charris1119
New Member

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

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
charris1119
New Member

Additional Info:

 

The same issue occurs using a Left Outer Join:

 

charris1119_0-1691769510333.png

 

UPDATE:

 

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

I feel sufficiently foolish. ☹️

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors