---
title: "Comment by Lakhyajit Changmai on \"Natural-Language Calculations in APEX 26.2\" | Hashnode"
description: "The distinction between an exploratory calculation and a shared metric is useful. I’d also make the aggregation rule explicit in tests: a weighted margin should"
url: "https://hashnode.com/posts/natural-language-calculations-in-apex-26-2/6af5ebb1987f32cbcb5a52b6/comment/6af806aae680ad4382b2b36f"
---

[Discussion](https://hashnode.com/posts/natural-language-calculations-in-apex-26-2/6af5ebb1987f32cbcb5a52b6)

Comment [Natural-Language Calculations in APEX 26.2](https://hashnode.com/posts/natural-language-calculations-in-apex-26-2/6af5ebb1987f32cbcb5a52b6)

[Lakhyajit Changmai](https://hashnode.com/@lakhyajit)

[Nov 14](https://hashnode.com/posts/natural-language-calculations-in-apex-26-2/6af5ebb1987f32cbcb5a52b6/comment/6af806aae680ad4382b2b36f)

The distinction between an exploratory calculation and a shared metric is useful. I’d also make the aggregation rule explicit in tests: a weighted margin should be computed from summed profit and summed revenue, while zero or missing denominators need a deliberate policy. That catches cases where each row looks right but the grouped result answers a different question.
