BC.QUERYTABLEFILTER
Overview
Use the BC.QUERYTABLEFILTER function to create a string that is ready to use as input for the Filter argument in the BC.QUERYTABLE function.
Syntax
=BC.QUERYTABLEFILTER(
ConnectionName,
Table,
Column,
Criteria,
AnotherColumnOrCriteria1,
AnotherColumnOrCriteria2,
...,
)
Arguments
Argument | Required / Optional | Description |
|---|---|---|
| Optional | Provide one of the following values:
OR Omit the argument to return results for all compatible connections with default aggregation settings. |
| Required | Table name. Use the BC.EXPANDTABLERANGE function to retrieve a list of tables available for querying. |
| Required | Name of the column to be filtered. Use the BC.TABLEDEFINITION function to retrieve available column names. |
| Required | A criterion or set of criteria that you want your filtered results to meet. Criteria can be one of the following:
The argument can be a single value, an array of values, or a range of cells. Due to a limitation in Business Central, filters that utilize the While a fix is underway, we recommend not using BC.QUERYFILTER with the |
| Optional | Second column used for filtering. |
| Optional (Required if previous argument is specified) | Criterion for the second filter. |
|
Example
=BC.QUERYTABLEFILTER(,"Contact","City", "Vancouver")
Description: Returns a filter for the BC.QUERYTABLE function. Only returns results from the table Contact where the value in the column City is Vancouver. The filter is then used with a BC.QUERYTABLE formula.
