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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
unclejemima
Post Patron
Post Patron

Modify Query to ignore $$$$

I get a error in a query from a table called Trandata with the column called Account.  Every once in a while the Point of Sale system will throw in a $$$$ instead of a numberical value (typically 4 digits)

There is logic from the system to do this, and it does not cause any problems...but is there any way I can modify the query so that if there is a $$$$ entry in the Trandata(account) to not load that line so I don't constantly get the errors?

Thanks,

 

 power bi errror.JPG

1 ACCEPTED SOLUTION

you have to type "null" after choosing replace errors, it should work irrespective of the column type

 

It will automatically replace all values to null eveytime you refresh, it would remember.

View solution in original post

4 REPLIES 4
Sandeep641
Frequent Visitor

go to edit queries, right click account column replace errors with null or what ever u want

I tried to set to null, () and blank...but it would not accept those values (it a whole number column)

 

Best I could do is 0.  Is there any special way to force them to null or blank instead of zero?

Also, do I have to do this each time I refresh my dataset...or will it remember my selection to replace errors with whatever for that column.

 

Thanks!!

you have to type "null" after choosing replace errors, it should work irrespective of the column type

 

It will automatically replace all values to null eveytime you refresh, it would remember.

parry2k
Super User
Super User

I guess in Edit Query, make sure data type is text, then remove $$$$ using replace function and then change the data type back to number.



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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Kudoed Authors