Forum Discussion
Dicken
2 years agoPost Prodigy
Filter Table , Column by postion
Hi, so filter table ; Table.SelectRows(Source , each ([B] = "A")) but if I do not know the name of a coliumn, just postion, so I know I need column 2 , so I found the name; ( List...
- 2 years ago
Table.SelectRows(Source, each Record.FieldValues(_){1} = "A")
Dicken
2 years agoPost Prodigy
I have done a bit more and come up with this;
(List.Transform( {1}, (A)=>
Table.ColumnNames( Source){A} ){0})
To get column name, then
Table.SelectRows(Source, each
List.Contains( {"A"},Record.Field(_, columnName)
) )
If anyone have more ideas pleas let me know.
Richard.
AlienSx
2 years agoSuper User
Table.SelectRows(Source, each Record.FieldValues(_){1} = "A")