Query editor
-- D1: month-end NAV + composition from Steakhouse query_2840308 (owner steakhouse; read via 3528036 in the skill).-- Takes the last period in each month per item. balance is USD. Also the daily totals columns if present.with q as (select * from query_2840308),me as (select date_trunc('month', period) m, max(period) last_period from q group by 1)select q.period as month_end, q.item, q.balance as balance_usdfrom q join me on q.period = me.last_periodorder by 1, 2