Last day of the month, N months ahead.
| Field | Value |
|---|---|
| Category | Date and time |
| Type | Scalar (operates value by value) |
| Arity | 2 arguments (fixed) |
| Compiles to SQL (calculated column) | Yes |
| Version | Formula engine v3. |
Aliases#
Canonical name: FIMMES. Accepted aliases (case-insensitive): eomonth.
Syntax#
code
FIMMES(expr; arg2)All arguments are expressions.
Returns#
Date.
Null handling#
Invalid or missing dates become a friendly error or blank, depending on the function.
Evaluation context#
Scalar — evaluated on the result of the arguments (in calculated columns, it runs row by row).
Differences from DAX#
- DAX equivalent: EOMONTH
- Compatibility: Compatible with DAX
- Note: Last day of the month, N months ahead.
Examples#
code
FIMMES(pedido_em; 0)Example with values#
Input: end of month for 2024-02-01 (leap year).
code
FIMMES(DATA(2024;2;1); 0) → 2024-02-29Expected result: 2024-02-29
Business example#
Find the closing date (last day of the month) for each accrual period.
Common errors#
Typos in a column name, an incompatible type, or an invalid argument become a friendly message (pt-BR) — the engine never silently returns a wrong number.