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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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