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 nowData Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more
Hi,
I have to questions regarding this, one why doesn't Table.ReplaceErrors work and how can I make it work?
let
Source = #table(type table [A = text, B = text], {{"a", "b"}, {"a", "c"}, {"d", "f"}, {"c", "d"}}),
reclist = List.InsertRange(Table.ToRecords(Source), 2, {"", ""}),
totable = Table.FromRecords(reclist),
replace = Table.ReplaceErrorValues(totable, {{"A", ""}, {"B", ""}})
in
replace
Richard.
Solved! Go to Solution.
Hi @Dicken,
Thank you for reaching out to the Microsoft Fabric Forum community.
I’ve reproduced the scenario using your sample data and for your reference, I’m attaching the output screenshot and the .pbix file. Thanks, @dufoq3 for providing your insights.
let Source = #table(type table [A = text, B = text], {{"a", "b"}, {"a", "c"}, {"d", "f"}, {"c", "d"}}), reclist = List.InsertRange(Table.ToRecords(Source), 2, {"", ""}), Transformed = List.Transform(reclist, each if Value.Is(_, Record.Type) then _ else [A = null, B = null]), ToTbl = Table.FromRecords(Transformed, null, MissingField.UseNull),
ReplaceNulls = Table.ReplaceValue(ToTbl, null, "", Replacer.ReplaceValue, {"A", "B"})
in ReplaceNulls
If this post helps, then please give us ‘Kudos’ and consider Accept it as a solution to help the other members find it more quickly.
Thank you.
Hi @Dicken,
Thank you for reaching out to the Microsoft Fabric Forum community.
I’ve reproduced the scenario using your sample data and for your reference, I’m attaching the output screenshot and the .pbix file. Thanks, @dufoq3 for providing your insights.
let Source = #table(type table [A = text, B = text], {{"a", "b"}, {"a", "c"}, {"d", "f"}, {"c", "d"}}), reclist = List.InsertRange(Table.ToRecords(Source), 2, {"", ""}), Transformed = List.Transform(reclist, each if Value.Is(_, Record.Type) then _ else [A = null, B = null]), ToTbl = Table.FromRecords(Transformed, null, MissingField.UseNull),
ReplaceNulls = Table.ReplaceValue(ToTbl, null, "", Replacer.ReplaceValue, {"A", "B"})
in ReplaceNulls
If this post helps, then please give us ‘Kudos’ and consider Accept it as a solution to help the other members find it more quickly.
Thank you.
Thanks, are either of you able to eplain why Table.Replace Errors does not reocognise what is an error,
and just replace them ?
Hi @Dicken, check this:
let
Source = #table(type table [A = text, B = text], {{"a", "b"}, {"a", "c"}, {"d", "f"}, {"c", "d"}}),
reclist = List.InsertRange(Table.ToRecords(Source), 2, {"", ""}),
Transformed = List.Transform(reclist, each if Value.Is(_, Record.Type) then _ else []),
ToTbl = Table.FromRecords(Transformed, null, MissingField.UseNull)
in
ToTbl
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 1 |
| User | Count |
|---|---|
| 11 | |
| 11 | |
| 4 | |
| 4 | |
| 4 |