Skip to content

Apply Number Formatting Using Formula

Workview-only. Sets the number format for each element in the working list using a formula, rather than a single fixed Data Formatting instruction applied to everything. Useful when the correct format differs by element or by context.

ArgumentTypeDescription
FormulaFormulaThe formula to evaluate for each element in the working set

Example

IF(ELEMENT("Account") = "Margin %", "0.0%", "#,##0")

Applies a percentage format to the Margin % row and a thousand-separated integer format to everything else, without needing to split the set into separate groups with an Ignore New Formatting On Prior Members boundary between them.

"0.0%" and "#,##0" are patterns from MODLR's general format syntax, not instruction-specific - see MODLR Number Formats for the full reference, including patterns with no dedicated Format instruction (#,##0k/m/b, for example).

Apply Number Formatting Using Formula applied per row - Revenue and Cost of Goods Sold get #,##0, Margin % alone gets 0.0%