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

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

Reply
Rafi35
New Member

Data Source Setting

Hello all, when i changed my data source it showed below message. what is the reason for that? Both sources are excel files and header is same. i was just switching source. what is the correct way to change data source?

 

Rafi35_0-1730962618283.png

 

3 REPLIES 3
Anonymous
Not applicable

Hi @Rafi35 ,


Has your problem been solved? If not, please share more details so we can help you better.

 

Best regards,
Community Support Team_ Scott Chang

AnkitKukreja
Super User
Super User

Hi! @Rafi35 

 

As explained by Sam it could be due to one of the reasons, I would generally click on all the applied steps on right and identify on which step it is failing? On the step where issue can be identified you would be able to identify the cause.

 

 

 

For Power BI trainings or support dm or reach out to me on LinkedIn.
If my response has successfully addressed your question or concern, I kindly request that you mark this post as resolved. Additionally, if you found my assistance helpful, a thumbs-up would be greatly appreciated.

Thanks,
Ankit Kukreja
www.linkedin.com/in/ankit-kukreja1904
SamInogic
Super User
Super User

Hi,

 

The error message in the screenshot, "The key didn't match any rows in the table", indicates that Power BI cannot find the expected data in the table based on a specific key or column that your report or query is looking for. This error commonly occurs when:

  1. Missing Key Columns: The new Excel file you switched to might not contain a column that Power BI expects to act as a key (e.g., an ID, submission number, or other unique identifier).
  2. Data Type Mismatch: The key column in the new file may have different data types compared to the original (e.g., numbers vs. text), preventing Power BI from matching the rows.
  3. Empty or Blank Values: If the key column has blank or null values in the new file, Power BI won’t be able to match rows based on these empty keys.
  4. Sheet/Table Naming Issues: Power BI may not be pointing to the correct sheet or table in the new Excel file if the structure differs slightly.

How to Fix It:

  1. Check the Key Column:
  • Open the new Excel file and ensure the key column (e.g., "submission no" or any column used as an identifier in your report) exists and has valid values in all rows.
  • Check if there are any blank or null values in this column. If so, you may need to fill in missing data or filter out those rows.
  1. Verify the Data Type:
  • Ensure that the data type of the key column in the new file matches the expected data type in Power BI. For example, if Power BI expects numbers and the new file contains text, it will throw this error.
  • In Power Query Editor, you can check and change the data type of the key column by selecting the column and adjusting the type in the top toolbar.
  1. Check the Sheet/Table Name:
  • Confirm that Power BI is correctly referencing the new sheet or table from the Excel file. Go to Power Query Editor and ensure that the correct table or sheet is being selected.
  1. Review Power Query Steps:
  • Go to Transform Data > Transform Data (to open Power Query Editor).
  • Inspect each step on the right panel (under Applied Steps) and ensure all transformations or filtering steps are compatible with the new file.
  • Pay particular attention to any filtering, merging, or transformation steps that might be using the key column. If the column is missing or different, you may need to update those steps.
  1. Refresh and Apply Changes:
  • After making the necessary changes, click on Close & Apply in Power Query Editor to apply the updates and refresh the report.

Hope this helps.

 

Thanks!

 

Inogic Professional Services: Power Platform/Dynamics 365 CRM
An expert technical extension for your techno-functional business needs
Service: https://www.inogic.com/services/
Tips and Tricks: https://www.inogic.com/blog/

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.