Is it possible in PowerQuery, to create a function that begins like this,
(Table as table, transformOperations as list) as table =>
That would allow you to do this sort of operation
Table.FromRecords(
Table.TransformRows(
Table1,
(r) =>
Record.TransformFields(
r,
{
{ "A", each if r[Column B] = "1" then "Z" else _ },
{ "B", each if r[Column C] = "1" then "Z" else _ }
}
)
)
)
but... would just be able to accept the final list of field transform Operations, and still be able to read other fields in the row? Basically I'm trying to eliminate need for the r variable.