OpenBI Docs Buy

Table.FindText

Keeps the rows where some cell has the text you look for in it.

Group: Table. Power Query M has it too: a query that uses it is written as in Power BI.

Syntax

Table.FindText(table as table, text as text) as table
ParameterTypeDescription
tabletableThe table to search.
texttextThe text to look for, anywhere in a cell.

Returns

table. The rows with a match, in their order, with all of their columns.

Examples

Rows that mention Oslo

let
    Orders = #table({"Order", "Shop", "Note"}, {
        {1, "Oslo", "Delivered"}, {2, "Bergen", "Send via Oslo"}, {3, "Bergen", "Picked up"}})
in
    Table.FindText(Orders, "Oslo")
OrderShopNote
1OsloDelivered
2BergenSend via Oslo

Table.SelectRows, Text.Contains, Table.Contains.

Last updated · OpenBI Studio 0.3.79