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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Razorbx13
Post Patron
Post Patron

DataFormat.Error #N/A and #DIV/0!

I am bringing in an Excel file source that is generated from an export in an application and some of the fields have this in the extract, #N/A and #DIV/0!.  They are not formulas, just text in a field.  Any way to fix this in PowerQuery instead of the source?

1 ACCEPTED SOLUTION

@Razorbx13  In power Query window, use replace error to replace error with a default value

 

negi007_0-1599829031441.png

 




Did I answer your question? Mark my post as a solution!
Appreciate your Kudos



Proud to be a Super User!


Follow me on linkedin

View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User

@Razorbx13 , In power Query you can right click on the column and replace the values.

You can also use replace function of Power Query : https://www.howtoexcel.org/power-query/bulk-replace-values/

No this does not work, the error is still there.  There error is DataFormat.Error: Invalid cell value '#N/A".

@Razorbx13  In power Query window, use replace error to replace error with a default value

 

negi007_0-1599829031441.png

 




Did I answer your question? Mark my post as a solution!
Appreciate your Kudos



Proud to be a Super User!


Follow me on linkedin

DataInsights
Super User
Super User

@Razorbx13, in Power Query, right-click the column and choose Replace Values. Enter the text to be removed in "Value to Find" and click OK.

 

DataInsights_0-1599782328858.png

 

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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