Skip to main content

Power BI

Needs Votes

Powery Query able to deal with #DIV/0

Vote (3) Share
Jack Wells's profile image

Jack Wells on 04 Sep 2018 17:43:33

When I import data from Excel with errors such as #VALUE! the query process will recognise them as errors and when the query is refreshed it will say something like: 10,000 rows returned (8 with errors).

I can then click on this to see what lines are throwing up errors which helps me determine where the underlying data has gone wrong.

However with #DIV/0 it just throws it's hands up and says it can't handle it. I get no, x rows with y errors. Just an error that says #DIV/0 is invalid and the refresh fails.

Comments (1)
Jack Wells's profile image Profile Picture

Jack Wells on 05 Jul 2020 23:29:01

RE: Powery Query able to deal with #DIV/0

Bit of a faff but managed to bodge it to work.

Convert relevant field to text
Replace errors with "Error"
Convert back to decimal

Refreshes and it now produces what I want.