Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers!
Enter the sweepstakes now!Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.
Solved! Go to Solution.
@andreyminakov,
You can analyze the power query performance by using trace log. See https://www.excelando.co.il/en/analyzing-power-query-performance-source-large-files/.
Regards,
Lydia
@andreyminakov,
It depends on your data. How would you replace the values in the column? To optimize multiple replacements. you can combine Table.ReplaceValue and Table.TransformColumns functions.
There is a similar thread for your reference:
https://community.powerbi.com/t5/Desktop/Optimizing-multiple-replacements/td-p/102389
Regards,
Lydia
Table.ReplaceValue(Source,".","",Replacer.ReplaceText,{Table.ColumnNames(Source)}) Table.ReplaceValue(Source,",","",Replacer.ReplaceText,{Table.ColumnNames(Source)})2. Call of Table.TransformColumns
...
Table.TransformColumns(3. Call Custom Function in Table.ReplaceValue
Source,
List.Zip({
Table.ColumnNames(Source),
List.Repeat(
{each Text.Remove(_, Text.ToList(".:;?!<>@#$%^&*=+"))},
Table.ColumnCount(Source))
})
)
Table.ReplaceValue(And the question is - what is quicker by design of PQ?
Source,
".:;?!<>@#$%^&*=+",
"",
(x,y,z) => List.Accumulate(
Text.ToList(y),
x,
(s, c) => Text.Remove(s, c)
),
Table.ColumnNames(Source)
)
@andreyminakov,
You can analyze the power query performance by using trace log. See https://www.excelando.co.il/en/analyzing-power-query-performance-source-large-files/.
Regards,
Lydia
Check out the May 2025 Power BI update to learn about new features.
Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
User | Count |
---|---|
15 | |
9 | |
8 | |
8 | |
5 |