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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
iamprajot
Responsive Resident
Responsive Resident

How to change Error in Cell to NA or Blank when Importing/Refreshing data from Excel.

Is there a way to change Error in a Cell to NA or Blank when we Import/Refresh data from source Excel file.

I do not want to remove those rows using Remove Errors but keep and convert errors into something like blank.

1 ACCEPTED SOLUTION
parry2k
Super User
Super User

yes in query editor there is option "replace error"

 

go to transform tab, there is arrow next to replace value and choose replace error and give the value you want to use to replace error.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

View solution in original post

7 REPLIES 7
shane_wong
New Member

to add, if you want something in it's place that won't dilute an average calculation or similar, you'll want to replace those errors with: null

shadysalman
Regular Visitor

Dears, 

 

I tried the above, but it does not work with a cloumn type %,   the issue I have is the column data type is % and some times i have NA for some rows, so I need to keep the same row but show NA or blank in the cell, but when I tried the solution mentioned above (replace erorr), when I try to  type/ write "N/A" or leave it blank, it asks for to write only a number because the column type is %.  How can I keep the column as % and in the same time show some of the rows as blank  or N/A? 

 

Your support is appreciated.

 

Regards, 

Shady

srsimmonds
Regular Visitor

Hi,
Could I use the same approach for the following scenario?

I import data from our server, one of the queries is based on manually collected data and therefore has gaps or incorrectly inputted data.

If I change as described below to show the correct data in a cell, is it now locked in when I refresh or does it overwrite?
parry2k
Super User
Super User

yes in query editor there is option "replace error"

 

go to transform tab, there is arrow next to replace value and choose replace error and give the value you want to use to replace error.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Once you have replaced the errors, when the database that Power BI is connected to updates the table, does the replacement also fix future invalid values that cause the error?

Hi. It will replace all errors; regardless of their cause. Not just a particular error of which you already know the cause.

@NaCl-yYes



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.