Forum Discussion
Zdenek_Moravec
Aug 10, 2021Brass Contributor
Power Query: select first column for function Table.SelectRows
Dear coleagues, I get a table like this ID Name City 1 A Prague 2 B Stuttgart 3 C Cardiff COUNT: 3 I want to filter out the row COUNT in the first column of the table...
- Aug 10, 2021
Zdenek_Moravec See attached workbook. It contains two tables based on your example where the row with "Count:" in whichever the first column is called in a table, is filtered out.
Riny_van_Eekelen
Aug 10, 2021Platinum Contributor
Zdenek_Moravec See attached workbook. It contains two tables based on your example where the row with "Count:" in whichever the first column is called in a table, is filtered out.
- Zdenek_MoravecAug 10, 2021Brass ContributorHello Riny_van_Eekelen,
Record.Field (_, Columnname) was the magic keyword. Then the shrinked step is
= Table.SelectRows(Source, each (Record.Field (_, List.First(Table.ColumnNames(Source))) <> "COUNT:"))
works prefect, thank You!
Zdenek