Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
Hi Power BI Community,
I needed to do a lot of changes in my Power Query. This is not good for the perfomance.
Why does Power Query dont summarize these steps.
Data looks like this:
= Table.ReplaceValue(#"Replaced Value57","AIMS 45-193i","AIMS",Replacer.ReplaceText,{"Tool Cluster"})
= Table.ReplaceValue(#"Replaced Value56","MeRiT MG 45","MeRiT",Replacer.ReplaceText,{"Tool Cluster"})
How can I combine this steps and also speed up the overall performance?
Solved! Go to Solution.
Hi @Anonymous ,
You can refer these documents to create a replacetable and a custom function to replace multiple fields at once:
let
ReplaceAll = (InputTable as table, ColumnName as text,ReplacementTable as table, optional StartRow as number) =>
let
ActualRow = if StartRow = null then 0 else StartRow,
result = Table.ReplaceValue(InputTable,ReplacementTable{ActualRow}[Old],ReplacementTable{ActualRow}[New],Replacer.ReplaceText,{ColumnName}),
NextRow = ActualRow + 1,
OutputTable = if NextRow > (Table.RowCount(ReplacementTable)-1) then result
else
@ReplaceAll(result,ColumnName,ReplacementTable,NextRow)
in
OutputTable
in
ReplaceAll
Attached a sample file in the below, hopes it could help.
Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
You can refer these documents to create a replacetable and a custom function to replace multiple fields at once:
let
ReplaceAll = (InputTable as table, ColumnName as text,ReplacementTable as table, optional StartRow as number) =>
let
ActualRow = if StartRow = null then 0 else StartRow,
result = Table.ReplaceValue(InputTable,ReplacementTable{ActualRow}[Old],ReplacementTable{ActualRow}[New],Replacer.ReplaceText,{ColumnName}),
NextRow = ActualRow + 1,
OutputTable = if NextRow > (Table.RowCount(ReplacementTable)-1) then result
else
@ReplaceAll(result,ColumnName,ReplacementTable,NextRow)
in
OutputTable
in
ReplaceAll
Attached a sample file in the below, hopes it could help.
Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous , see if this blog on bulk replace can help
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 76 | |
| 36 | |
| 31 | |
| 29 | |
| 26 |