Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
in power query, if I want to operate one column, we will use _[columnName].
but if I want operate many column, I want use List.Transform({columnName1, columaname2},(t)=> operate(Table, [t]).
how to pass columnName var to operator this column?
List.Transform({Column1,Column2},each List.Sum(Table.Column(tbl,_)))
You can try
each (row)=> List.Tranform({row[Column1], row[Column2]}=> operate(Table, [t]))
--Nate
[t] , the t is only as a str, not as a var.
If you can explain what exactly you are trying to do, then experts here can suggest the right solution.
When you are doing List.Transform({columnName1, columaname2},(t)=>, it is t which contains columnName1 & 2 one by one and whatever you are operating on t will be applicable on columnName1 & 2.
Check out the July 2025 Power BI update to learn about new features.