demo D317
A tile totalling rows the grid never loaded: JavaScript Data Grid Demo
A KPI panel beside a grid holding one page of a hundred thousand rows: the sum and average tiles ask the engine for the whole matching set rather than only the page, and say so
createKPI(el, { grid, tiles }) · computed: 'engine'
This totals a column across every matching row in a paged DuckDB source, not just the page the grid has loaded, and the tile says the engine computed it. It shows a KPI that stays true to the whole relation while the grid holds only a screenful.
A tile totalling rows the grid never loaded
Each tile runs one aggregate through the same adapter the grid uses, with the grid’s filters applied, so the figure and the rows always agree.