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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
sudhav
Helper V
Helper V

power bi service

hai my dear professionals,

I have encountered one question in an interview, please help me to get an answer for it

"You created a file and copied that  report in a file. Your manager used to update file everyday and PBI will refresh the data automatically, this is the process. One day unfortunately your manager deleted the column names, then obviouslly the second row will become first row right?, now how does PBI will react it??"

Please give me answer for it

Thankyou in advance

 

2 ACCEPTED SOLUTIONS
collinq
Super User
Super User

Hi @sudhav ,

 

That is a pretty specific interview question.  It seems to me that this question would be a good question on an exam.

That said, If somebody deletes a COLUMN that does not affect the rows.  And, what happens to the report depends on a lot of factors.  The first factor is the type of file that you are bringing in.  The next factor is whether you have any applied steps that are based on that column.  Another factor is what your M code looks like when the file comes in - if you are selecting fields specifically (like from SQL) then that will affect the connection.  And, if it is an Excel file, if you have the column count named in the M code, that will also affect the connection.

All that said, the basic answer is that if you have a data source, and the data source changes, you will most likely get an error message on the refresh that you can then investigate to determine what happened to your source file and how to resolve it.




Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!
Private message me for consulting or training needs.




View solution in original post

v-yalanwu-msft
Community Support
Community Support

Hi, @sudhav ;

The analysis will be divided into the following cases:

1.Import Mode

  a)when we connect the excel,and publish to service, if we delete the column in power bi desktop,then re-publish it. it ok ,you         could see there the second row will become first .

  b)if we delete first column in excel file,then we refresh it ,it will fail.and error is "Unable to connect to the data source undefined."

    so we must re-connect the excel fille in power bi desktop then re-publish it.

    vyalanwumsft_0-1642756307853.png

2.Direct Query mode

 if we delete column in sql ,then refresh it , it will ok ,but the report not display,because the column is deleted.

vyalanwumsft_1-1642758328545.png

vyalanwumsft_2-1642758445752.png

 


Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-yalanwu-msft
Community Support
Community Support

Hi, @sudhav ;

The analysis will be divided into the following cases:

1.Import Mode

  a)when we connect the excel,and publish to service, if we delete the column in power bi desktop,then re-publish it. it ok ,you         could see there the second row will become first .

  b)if we delete first column in excel file,then we refresh it ,it will fail.and error is "Unable to connect to the data source undefined."

    so we must re-connect the excel fille in power bi desktop then re-publish it.

    vyalanwumsft_0-1642756307853.png

2.Direct Query mode

 if we delete column in sql ,then refresh it , it will ok ,but the report not display,because the column is deleted.

vyalanwumsft_1-1642758328545.png

vyalanwumsft_2-1642758445752.png

 


Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

hoo thankyou so much

collinq
Super User
Super User

Hi @sudhav ,

 

That is a pretty specific interview question.  It seems to me that this question would be a good question on an exam.

That said, If somebody deletes a COLUMN that does not affect the rows.  And, what happens to the report depends on a lot of factors.  The first factor is the type of file that you are bringing in.  The next factor is whether you have any applied steps that are based on that column.  Another factor is what your M code looks like when the file comes in - if you are selecting fields specifically (like from SQL) then that will affect the connection.  And, if it is an Excel file, if you have the column count named in the M code, that will also affect the connection.

All that said, the basic answer is that if you have a data source, and the data source changes, you will most likely get an error message on the refresh that you can then investigate to determine what happened to your source file and how to resolve it.




Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!
Private message me for consulting or training needs.




Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.