Table.SelectRows [Applies to Power Query]

This topic applies to the Power Query Formula Language. With Power Query you can discover, combine and refine data. To learn more about Power Query formulas in Excel, see Create Power Query formulas in Excel. For Excel VBA help, see Excel 2013 developer reference.

About

Returns a table containing only the rows that match a condition.

Table.SelectRows(table as table, condition as function) as table

Arguments

Argument

Description

table

The Table to check.

condition

The condition to match.

Remarks

  • Table. SelectRows is similar to List. Select but requires a table as input.

Examples

Table.SelectRows(Table.FromRecords({[A=1], [A=2], [A=3]}), each [A] > 2) equals Table.FromRecords({[A=3]})

Applies To: Excel 2013, Excel 2010



Was this information helpful?

Yes No

How can we improve it?

255 characters remaining

To protect your privacy, please do not include contact information in your feedback. Review our privacy policy.

Thank you for your feedback!

Support resources

Change language