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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
jaw19883
Frequent Visitor

Data Source

Very new to Power Bi, but not Excel. My question resolves around a changing data source. As a background, I am in K-12 education, so think of a gradebook and units in a course. My data source is an exported CSV/Excel file (which is horrible), but at this point no choice in that matter. 

 

So, lets say my entire course has 3 units of instruction and each unit has 3 assignments, so my exported gradebook woul look like the following:

 

Exported Gradebook fields

Student
Student ID

Section

Unit 1 Assignment 1

Unit 1 Assignment 2

Unit 1 Assignment 3

Unit 2 Assignment 1

Unit 2 Assignment 2

Unit 2 Assignment 3

Unit 3 Assignment 1

Unit 3 Assignment 2

Unit 3 Assignment 3

 

Here is where I am running into an issue. My initial data source (file.xlsx) has no records (beginning of the semester). This is where I have to go in and set up my data model, measures, dashboards, etc. Lets say after the first unit, I want to pull that data into my Power Bi dashboard to report on the first unit. Now my exported gradebook has Student,Student Id, section, unit 1 assignment 1, unit 1 assignment 2, unit 1 assignment 3. So I export gradebook and save it as the original file name (file.xlsx) in the same location and refresh. I get a refresh error that says (the key didn't match any rows in the table. 

I have dozens of courses that I have to do this for, so I need to setup an inital datasource and data model and then replace that data source with an updated version that includes actual unit data. Essentially the original has the data model with filed names, tables, etc. just no records. then I come in periodically and drop in the same files (filed names, etc.) but with actual data in it at several intravels through out the semester. 

1 ACCEPTED SOLUTION

I think I got it at least partially figured out. What I was doing was saving the newer version of the data source over/replace the existing one from the folder where the source was saved and then refreshing data, and thus generating the error. 

What I did was inside Power Bi in transforming the data, I changed the source and that has worked thus far...Thank you for the quick response. I am going to continue progressing with my testing to see how far I can go with it and will circle back here if I run into something down the line. 

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@jaw19883 ,Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

I think I got it at least partially figured out. What I was doing was saving the newer version of the data source over/replace the existing one from the folder where the source was saved and then refreshing data, and thus generating the error. 

What I did was inside Power Bi in transforming the data, I changed the source and that has worked thus far...Thank you for the quick response. I am going to continue progressing with my testing to see how far I can go with it and will circle back here if I run into something down the line. 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.