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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors