Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
How to remove error rows without losing original data
Solved! Go to Solution.
Hello @saipavanimomidi , what do you mean by remove error rows without losing original data?
You want the error values to be replaced with null then
you can do something like this
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45W8nNUitWJVvLNz0jMA7MMDQyUYmMB", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Name = _t]),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Name", Int64.Type}}),
#"Replaced Errors" = Table.ReplaceErrorValues(#"Changed Type", {{"Name", null}})
in
#"Replaced Errors"
Hello @saipavanimomidi , what do you mean by remove error rows without losing original data?
You want the error values to be replaced with null then
you can do something like this
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45W8nNUitWJVvLNz0jMA7MMDQyUYmMB", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Name = _t]),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Name", Int64.Type}}),
#"Replaced Errors" = Table.ReplaceErrorValues(#"Changed Type", {{"Name", null}})
in
#"Replaced Errors"
check the given code.
ok thanks for your valuable suggestions
Mrk it as a solution if it fullfills your need.
thanks for your reply but the problem is
by using remove errors option actual data is also removed from the same row
yuo shouldnt be using remove error.
Use replace error's option to keep the records
Select all columns of the table. To do this, you can press CTRL+A
Transform menu - Replace values - Replace errors - put null
This will replace only error values with null and will not touch any other data in your rows.
Go to Home menu - Remove Rows - Remove Errors
hi vijay ,
thanks for your reply but the problem is
by using remove errors option actual data is also removed from the same row
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
14 | |
13 | |
8 | |
8 | |
7 |
User | Count |
---|---|
17 | |
13 | |
7 | |
6 | |
6 |