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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
sdavidson
Frequent Visitor

Filter rows results in one row with errors in every column

Hi,

 

I am transforming data from an excel file.

The data isnt in the best format so one of the first things i do is filter out any rows with null or blank values. 

I know the error probably originates in the excel and to fix that would be the best solution but i dont own the excel so cant change it and have to work with what i have got. 

 

This filter gives me the result that I want and only shows the relevant data, however in the row after where my data ends there is another row where everey column has a #REF! error.

 

This means that when i try to save and apply it wont work and gives off the error: "Failed to save modifications to the server. Error returned: 'OLE DB or ODBC error: [DataFormat.Error] Invalid cell value '#REF!'.. An unexpected exception occurred. "

 

Any ideas why this row is there or how to actively remove it? I have tried IFERROR functions and they havent worked. I also tried just a column with "try <column name>" and filtering on that but the errors spread to this column too. 

 

Any help is appreciated. 

1 ACCEPTED SOLUTION

 

The #REF! value isn't a Power Query output, it's an Excel ouput, so you should be able to select one of the very first steps in your query (before any column transformations have been done) and find the row with this value in it, right-click on the cell value and go to Text Filters > Does Not Equal.

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




View solution in original post

4 REPLIES 4
BA_Pete
Super User
Super User

Hi @sdavidson ,

 

Have you tried just removing rows that contains errors in Power Query?

Go to the Home tab > Remove Rows > Remove Errors:

 

BA_Pete_0-1696867217966.png

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




Yes i tried this. It didnt do anything to remove the row

 

The #REF! value isn't a Power Query output, it's an Excel ouput, so you should be able to select one of the very first steps in your query (before any column transformations have been done) and find the row with this value in it, right-click on the cell value and go to Text Filters > Does Not Equal.

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




That worked thanks!

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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