Forum Discussion
Anonymous
5 years agoNot applicable
Simplyfy multiple calls to Table.ReplaceValue
Hi, I wonder if it is possible to simplyfy multiple calls to Table.ReplaceValue by creating one function? Here are 3 calls to Table.ReplaceValue: #"Encode Id" = Table.ReplaceValue(Source, each ...
- 5 years ago
Hi Anonymous
You could just transform each column in one line, but I do find Table.ReplaceValue to work a bit faster.
Try this:Table.ReplaceValue(Source, null, null,(x, y, z) => fnc_ATS_Encode_Id(x, pTR),{ "Tenant Id", "Department Id", "Parent Department Id" })
Smauro
5 years agoSolution Sage
Hi Anonymous
You could just transform each column in one line, but I do find Table.ReplaceValue to work a bit faster.
Try this:
Table.ReplaceValue(
Source, null, null,
(x, y, z) => fnc_ATS_Encode_Id(x, pTR),
{ "Tenant Id", "Department Id", "Parent Department Id" }
)
Anonymous
5 years agoNot applicable
Thank you so much, my friend! Works perfectly.