Skip to main content

values_for

Function values_for 

Source
fn values_for(
    model: &Model,
    measure: MeasureId,
    snapshot: &Snapshot,
) -> HashMap<CoordKey, CellValue>
Expand description

The value map for a measure: CoordKey -> CellValue.

Input measures read straight from model.inputs; derived measures come from the live engine snapshot (empty map -> grid renders blank). Values keep their type so the grid can render numbers, text, booleans, dates, and #ERR.