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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
jamescosten
Helper I
Helper I

Data Refresh wont remove rows

I have a Dataset then when I refresh it does not remove rows that have been deletd from an Excel Sheet.

 

jamescosten_0-1715253966139.png

My Excel List compared to my Data.

 

jamescosten_2-1715254004490.png

My rows are not hidden, and I have it connected to a data source that when refreshed deletes rows and adds rows if not in the table.

1 ACCEPTED SOLUTION
v-jialongy-msft
Community Support
Community Support

Hi @jamescosten 

 

If deleted rows in the Excel sheet are still appearing in your Power BI dataset post-refresh, this can be due to several reasons:

 

1. Check the Query Settings in Power Query Editor

Open Power Query Editor: Go to 'Home' > 'Transform Data' in Power BI Desktop.
Examine the Applied Steps: On the right side of the Power Query Editor, review the steps applied to the dataset. Ensure no steps are inadvertently preventing the deletion of rows. For example, steps that might filter out rows or merge queries might need adjustment.

 

2. Refresh Behavior
Full Refresh: Ensure that you're performing a full refresh, which reimports the entire dataset rather than an incremental refresh, which might only update parts of the data.

 

3. Data Source Settings
Path and Connection: Verify the path and connection settings to the Excel file. Ensure that the connection is not to a previous version of the file or a cached copy.
Data Range: Check if the defined data range in the query is correct. If you have specified a static range (e.g., Sheet1!A1:D100), it might not include new rows or exclude rows that have been deleted. Changing this to a dynamic named range or a table reference in Excel can help.

 

 

 

 

 

Best Regards,

Jayleny

 

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

1 REPLY 1
v-jialongy-msft
Community Support
Community Support

Hi @jamescosten 

 

If deleted rows in the Excel sheet are still appearing in your Power BI dataset post-refresh, this can be due to several reasons:

 

1. Check the Query Settings in Power Query Editor

Open Power Query Editor: Go to 'Home' > 'Transform Data' in Power BI Desktop.
Examine the Applied Steps: On the right side of the Power Query Editor, review the steps applied to the dataset. Ensure no steps are inadvertently preventing the deletion of rows. For example, steps that might filter out rows or merge queries might need adjustment.

 

2. Refresh Behavior
Full Refresh: Ensure that you're performing a full refresh, which reimports the entire dataset rather than an incremental refresh, which might only update parts of the data.

 

3. Data Source Settings
Path and Connection: Verify the path and connection settings to the Excel file. Ensure that the connection is not to a previous version of the file or a cached copy.
Data Range: Check if the defined data range in the query is correct. If you have specified a static range (e.g., Sheet1!A1:D100), it might not include new rows or exclude rows that have been deleted. Changing this to a dynamic named range or a table reference in Excel can help.

 

 

 

 

 

Best Regards,

Jayleny

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

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 MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.