Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more
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
User | Count |
---|---|
23 | |
10 | |
9 | |
8 | |
8 |