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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Delete rows with divide by zero error

Hi,

 

I have a numeric column which has 3 rows which throw a "Divide by zero" error. It appears as Error in the cell. I want to get rid of these rows in the Query Editor itself and not load it into my data model.

 

However, when I filter the column, I do not see the Error value to get rid of it. How do I delete these 3 rows?

 

Regards,

Vishy

1 ACCEPTED SOLUTION
edhans
Super User
Super User

Click on the little table icon next to your view and "Remove Errors" - that removes the entire row.

2020-06-08 12_38_49-.png

 

Actually, in Power Query, dividing by zero will not return a div/0 error. You must be importing that from Excel, or you are using Excel terminology for Power Query. If you are importing, then the above Remove Errors will work.

 

If you are dividing by zero in Power Query, you need to filter out #infinity.

= Table.SelectRows(#"Added Custom", each ([Custom] <> #infinity))

2020-06-08 12_41_00-Untitled - Power Query Editor.png



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

View solution in original post

3 REPLIES 3
edhans
Super User
Super User

Click on the little table icon next to your view and "Remove Errors" - that removes the entire row.

2020-06-08 12_38_49-.png

 

Actually, in Power Query, dividing by zero will not return a div/0 error. You must be importing that from Excel, or you are using Excel terminology for Power Query. If you are importing, then the above Remove Errors will work.

 

If you are dividing by zero in Power Query, you need to filter out #infinity.

= Table.SelectRows(#"Added Custom", each ([Custom] <> #infinity))

2020-06-08 12_41_00-Untitled - Power Query Editor.png



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting
Anonymous
Not applicable

Thanks @edhans , that worked perfectly. Yes, you are right, the data was imported from excel. Thanks for letting me know about the difference in Power BI and Excel error for the same.

Excellent @Anonymous - glad it helped.



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors