A quarterly margin is not three monthly margins added together. You roll the inputs first, then re-evaluate: profit over the span, divided by revenue over the span. Balances do not sum either, you take the first opening and the last closing.
Your quarter column probably does not know the difference. https://shipmindlabs.com/c/5e9f14a2