# Flag rows with formula[¶](https://doc.dataiku.com/dss/latest/preparation/processors/flag-on-formula.html#flag-rows-with-formula "Permalink to this headline")

Flag rows from the dataset based on the result of a formula by creating a column containing ‘1’ for all matching (in-range) rows. Unmatched rows are left empty.

## Options[¶](https://doc.dataiku.com/dss/latest/preparation/processors/flag-on-formula.html#options "Permalink to this headline")

**Expression**

Write a formula by which to evaluate each row for a match. The row matches if the result of the formula is considered as “truish,” which includes:

* A true boolean

* A number (integer or decimal) that is not 0

* The string “true”

**Flag column**

Name the column that will contain the match flags 1-true, empty-false

## Related resources[¶](https://doc.dataiku.com/dss/latest/preparation/processors/flag-on-formula.html#related-resources "Permalink to this headline")

For more information on the formula language, please see the formula language reference in Dataiku’s documentation.
