Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
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.Transform( {1},
(A)=> Table.ColumnNames( Source ) {A} ) {0} )So this is giving me the column name as text, but how to I get into the select rows as a column , Table.Column = a list,
List.Transform(
Table.Column ( Source , colname ),
(A)=> A = "A")So is there a way to get colname step which is text into the equivalent of [ column name] ?
Richard.
Solved! Go to Solution.
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.
Table.SelectRows(Source, each Record.FieldValues(_){1} = "A")
Actually, it's a bit different, and simpler thnks again,
Richad.
Thats similar to my updated post exccep i used record.field, thanks anyway,
Table.SelectRows(Source, each
List.Contains( {"A"},Record.Field(_, columnName)
) )
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 11 | |
| 7 | |
| 6 | |
| 6 | |
| 6 |