Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more
Hi, I have a relatively simple problem to solve but can't find the solution anywhere.
How can I replace null values in a particular column with Error values?
Thanks!
The first thing to note is that a field can only have one data type. If it is a numeric type, then the null value cannot be converted to error (text type).
If the field type is text, then the easiest way is to use replace value in the power query.
If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.
Best Regards,
Henry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
I want to replace null values with error values - not a string that displays "error"........
Hi @Anonymous
If you literarily want to show "Error" this word
No I do not want to show Error as a string, I want to specify an error as the cell value........
Hi @Anonymous
I am not sure why you want an error, but you can do like this, transform your current column
Table.TransformColumns(yourPreviousStep,{{"yourColumn", each if _=null then Text.PositionOf(_,"a") else _}})
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!
Check out the July 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 30 | |
| 28 | |
| 24 | |
| 23 | |
| 18 |
| User | Count |
|---|---|
| 44 | |
| 32 | |
| 18 | |
| 17 | |
| 16 |