All components

Last Positive Month

Find the final month with a positive currency value, or zero when none exists.

How it works

Last Positive Month (1)
  1. Month

    ((Lowest value(if (Values > 0), then (Positions in series(Values) × -1), otherwise 0) × -1) × 1)

    Uses

Inputs and outputs

Inputs (1)
Inputs
NameUnitApplies to
ValuesDollarsMonth
Outputs (1)
Outputs
NameUnitApplies to
MonthMonthsSingle value

Recipes using this calculation

Libraries