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

Matching Error When Relating Tables in Power Query in Power BI

Error:

When relating tables by ID and index in Power BI, a matching error occurs, causing data with different indexes to match while data with the same indexes fail to match.

Inquiry:

How can this problem be resolved? If possible, please provide me with step-by-step instructions.

1 ACCEPTED SOLUTION
Akash_Varuna
Super User
Super User

Hi @Anonymous It might be due to mismatched data types or inconsistencies in the columns used for the relationship.
Could you please try these for solving

  1. Match Data Types: Ensure both columns (ID and Index) have the same data type in Power Query.

  2. Trim and Clean Data: Remove extra spaces using "Trim" or Text.Trim().

  3. Check for Duplicates: Remove duplicates in both tables if necessary.

  4. Recreate Index: Ensure index columns are correctly aligned and unique.
    After these please recreate and test the relationship in Power BI.

View solution in original post

4 REPLIES 4
v-achippa
Community Support
Community Support

Hi @Anonymous,

 

Thank you for reaching out to Microsoft Fabric Community.

 

Thank you @Akash_Varuna for the prompt response.

 

As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided by the super user resolved your issue.
If our super user response resolved your issue, please mark it as "Accept as solution" and click "Yes" if you found it helpful.

 

Thanks and regards,

Anjan Kumar Chippa

Hi @changzhe,

 

We wanted to kindly follow up to check if the solution provided by the super user resolved your issue.
If our super user response resolved your issue, please mark it as "Accept as solution" and click "Yes" if you found it helpful.

 

Thanks and regards,

Anjan Kumar Chippa

Hi @changzhe,

 

As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided by the super user resolved your issue.
If our super user response resolved your issue, please mark it as "Accept as solution" and click "Yes" if you found it helpful.

 

Thanks and regards,

Anjan Kumar Chippa

Akash_Varuna
Super User
Super User

Hi @Anonymous It might be due to mismatched data types or inconsistencies in the columns used for the relationship.
Could you please try these for solving

  1. Match Data Types: Ensure both columns (ID and Index) have the same data type in Power Query.

  2. Trim and Clean Data: Remove extra spaces using "Trim" or Text.Trim().

  3. Check for Duplicates: Remove duplicates in both tables if necessary.

  4. Recreate Index: Ensure index columns are correctly aligned and unique.
    After these please recreate and test the relationship in Power BI.

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.