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.
Power BI release plans for 2023 release wave 1 describes all new features releasing from April 2023 through September 2023.
Make sure you register today for the Power BI Summit 2023. Don't miss all of the great sessions and speakers!
User | Count |
---|---|
30 | |
24 | |
20 | |
19 | |
16 |