# Will cross model expression be enabled in the near future?

**URL:** <https://community.holistics.io/t/will-cross-model-expression-be-enabled-in-the-near-future/1273>\
**Category:** Feature Suggestions\
**Created:** [November 1, 2022, 5:51pm UTC](https://community.holistics.io/t/will-cross-model-expression-be-enabled-in-the-near-future/1273 "2022-11-01T17:51:49Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![michael.mccann](https://community.holistics.io/user_avatar/community.holistics.io/michael.mccann/32/668_2.png) [@michael.mccann](https://community.holistics.io/u/michael.mccann)\
**Post date:** [November 1, 2022, 5:51pm UTC](https://community.holistics.io/t/will-cross-model-expression-be-enabled-in-the-near-future/1273/1 "2022-11-01T17:51:49Z")

</div>

Hi all,

Will cross model expression be enabled in the near future? It could be a really useful feature.

It’s not a huge issue but a few times I’ve had to edit underlying data tables in order to get the reporting I want. It ends up occasionally being an extra consideration when doing the data modelling.

 ![image](https://community.holistics.io/uploads/default/original/1X/f687ec168f0d445ea540a0a26de3fe47a9809519.png)

---

<div class="post-metadata">

**Author:** ![DataGeekDude](https://community.holistics.io/user_avatar/community.holistics.io/datageekdude/32/430_2.png) [@DataGeekDude](https://community.holistics.io/u/DataGeekDude)\
**Post date:** [November 2, 2022, 10:49am UTC](https://community.holistics.io/t/will-cross-model-expression-be-enabled-in-the-near-future/1273/2 "2022-11-02T10:49:43Z")

</div>

I was under the impression that this type of business calculation was allowed and they way to get round the inability to create a dimension or measure in AML?

---

<div class="post-metadata">

**Author:** ![daph.td](https://community.holistics.io/user_avatar/community.holistics.io/daph.td/32/811_2.png) [@daph.td](https://community.holistics.io/u/daph.td)\
**Post date:** [November 3, 2022, 3:45pm UTC](https://community.holistics.io/t/will-cross-model-expression-be-enabled-in-the-near-future/1273/3 "2022-11-03T15:45:10Z")

</div>

Hi Michael,

The short answer is **YES! - We are in the midst of our plan to drastically improve Holistics Expression and Cross-model Expression is a critical part of the plan**.

At the moment, we are totally aware that “Business calculation” has room for improvements, which might cause troubles to your workload as you mentioned. “Business calculation”, for now, only supports Cross-model Expression when the children components are aggregated, e.g.

- **support** : sum(model\_a.field\_a) + sum(model\_b.field\_b))
- **does not support** : sum(model\_a.field\_a + model\_b.field\_b))

We are trying our best to push the cross-model expression to our users. I hope you understand and bear with us for a while.

Thank you so much!

Daphne

---

<div class="post-metadata">

**Author:** ![michael.mccann](https://community.holistics.io/user_avatar/community.holistics.io/michael.mccann/32/668_2.png) [@michael.mccann](https://community.holistics.io/u/michael.mccann)\
**Post date:** [November 16, 2022, 9:36am UTC](https://community.holistics.io/t/will-cross-model-expression-be-enabled-in-the-near-future/1273/4 "2022-11-16T09:36:34Z")

</div>

thanks Daphne! looking forward to this

---

<div class="post-metadata">

**Author:** ![Khai\_To](https://community.holistics.io/user_avatar/community.holistics.io/khai_to/32/128_2.png) [@Khai\_To](https://community.holistics.io/u/Khai_To)\
**Post date:** [June 1, 2023, 9:25am UTC](https://community.holistics.io/t/will-cross-model-expression-be-enabled-in-the-near-future/1273/5 "2023-06-01T09:25:13Z")

</div>

Hi @michael.mccann and @DataGeekDude,

We just had an official announcement for Cross-model Calculation. You could follow to the Community Post below for more information regarding progress and update.

> [@\[🚀 Launched\] Our brand new Analytics Query Language, AQL!](https://community2.holistics.io/t/upcoming-our-brand-new-analytics-query-language-aql/1533/3):
>
> Do note that we are currently in the development phase, exploring various solutions, which may result in changes to syntax and UI in the future Cross-model Calculation Let’s say you are a Country Manager of an Ecommerce Company and you want to calculate the Revenue by Country. The formula to calculate it is the sum of the product price (from the Product model) multiplied by the quantity (from the Order Items model). order\_items | sum(order\_items.quantity \* products.price) They are from 2 di…

---

<div class="post-metadata">

**Author:** ![michael.mccann](https://community.holistics.io/user_avatar/community.holistics.io/michael.mccann/32/668_2.png) [@michael.mccann](https://community.holistics.io/u/michael.mccann)\
**Post date:** [March 26, 2024, 5:39pm UTC](https://community.holistics.io/t/will-cross-model-expression-be-enabled-in-the-near-future/1273/6 "2024-03-26T17:39:30Z")

</div>

hi @Khai_To , have you guys made any progress on this?

It feels like a very basic feature that is missing and incentivises me to create data models not using best practices just because i can’t create simple charts with holistics using the fact / dimension approach.

---

<div class="post-metadata">

**Author:** ![Khai\_To](https://community.holistics.io/user_avatar/community.holistics.io/khai_to/32/128_2.png) [@Khai\_To](https://community.holistics.io/u/Khai_To)\
**Post date:** [March 27, 2024, 3:09am UTC](https://community.holistics.io/t/will-cross-model-expression-be-enabled-in-the-near-future/1273/7 "2024-03-27T03:09:44Z")

</div>

Hi @michael.mccann,

Cross-model calculation has officially been supported via our AQL Expression.  
You can refer to our post [here](https://community2.holistics.io/t/upcoming-our-brand-new-analytics-query-language-aql/1533/3) for more information.

However, do note that our AQL Expression is only supported in version 4.0 so if you’re in version 3.0, you would need to [migrate to version 4.0](https://docs.holistics.io/as-code/3.0-to-4.0-migration).

Do let me know if you have any questions or concerns.

---

<div class="post-metadata">

**Author:** ![olammas](https://community.holistics.io/user_avatar/community.holistics.io/olammas/32/1213_2.png) [@olammas](https://community.holistics.io/u/olammas)\
**Post date:** [March 27, 2024, 3:45pm UTC](https://community.holistics.io/t/will-cross-model-expression-be-enabled-in-the-near-future/1273/8 "2024-03-27T15:45:33Z")

</div>

Hi Khai,

I noticed that cross model AQL doesn’t work when trying to do a rolling average when using the `trailing()` function? Is this a known bug?

---

<div class="post-metadata">

**Author:** ![Khai\_To](https://community.holistics.io/user_avatar/community.holistics.io/khai_to/32/128_2.png) [@Khai\_To](https://community.holistics.io/u/Khai_To)\
**Post date:** [March 28, 2024, 4:17am UTC](https://community.holistics.io/t/will-cross-model-expression-be-enabled-in-the-near-future/1273/9 "2024-03-28T04:17:25Z")

</div>

Hi @olammas,

Could you share more details about the error that you’re encountering?  
You can send the screenshot and the link to your report via our support ticket so that we can investigate further.

I have also created an example using our [AMQL Playground here](https://play.amql.org/#code/uDritRdcsbtfekV2DrisS2OsH2FriisE2HtljVijsGtdfUVcsGxiDxWDslxMErgxYF22tMe27tkuBtgVsSrgntkRScVrnxREtc2K2ixSDtFxkExSF2ytjTiZgk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344AxKD2RtPxUGyyDxRFxbEuBxZF0uG0THtdRe2Wtk2o3L0WGtWifd2Xse20tcU3ktW1cI3M231cEyRG0XH5VxlDxVEyfLxbF0BDyjDtfyKbzvIyNRyFK1JF0tStg4mtUlTk5btZ63xRFtfi2Hti2Otk2M2UxdHxcD0t7yULzlPyiK0wmzyIyKPyCK0tXzIF0rWxMH0p90pZygI0nmzsG0lwtlj0kR2PxVE0e9zTWyaH0YmzfF0XwtTZ2QtV0YK0mGxVD5D0X9zSUyZH0WmzeG0XarisErisHtU5VtR3rtksGtRdcrisSriscxOG0gGtVT4ktd4JtTVybGxqEtPjflxRDtPe2v0ZExnEyRDxeEy3Ftj2UtLyxGzBGsExNH21tekixQKtfi2sti5Ptk3BxSNxNItg6itUlTkxPI1TFxLEtNytGti3r4QtZfejYZgy0KxWMsA0IFy5JxKD2RtPxUGzdFxbHuBxZFsErg2KtlVsBywHyKSzUI42tUyHG0HLxdIxcDyKg0rGyIVxMHyGh1VFyFO2PxVEx8j1FHyAIyOGxVD6Qx8Jx7EtN2FuFrisErisHtmxfDyDDsGtRdcrisSri6z3NtkrgsZlktPGsdtCDshnmrgsVrgnsKGIrniuF2stRhcsb2g5S2DxqDtVuAtgc4ftVrguDyQEtUZd2WyKEtjxQG2B17HtjsGtT2k4ntV4T2FrguE2otRuBsAzEFuFxFE20tRjl2fx0J1wEtPmRc4osSrgxSG2B1IF5DxaD2nxUI3L23tdsAxaLsGthlR4b0sDrgsCy8K2JtZT1zJ6DtRZcZeXyceyeux3NykItPg266UtUsA1MTsE5q3N2e0qDsAL1WEtjsBzkItdfmx7EtRmzmLsAyhKzxWzz5z16yHI3RsHrgsLxNEuF2FuFrisEritVuAtgc4NtVsc21tRjVksmtRdVrisSri4c5gtPVTfd2Oti4HxmDtTli2k3Wse38tVA2qtYxjDsH3axyFsG2ytcriuF) and it seems to work as expected from our side.

 ![image](https://community.holistics.io/uploads/default/original/2X/2/21c2293945d7f37e7a08b5f71cf9e99687c6eea2.png)

---

<div class="post-metadata">

**Author:** ![olammas](https://community.holistics.io/user_avatar/community.holistics.io/olammas/32/1213_2.png) [@olammas](https://community.holistics.io/u/olammas)\
**Post date:** [March 28, 2024, 5:16pm UTC](https://community.holistics.io/t/will-cross-model-expression-be-enabled-in-the-near-future/1273/10 "2024-03-28T17:16:17Z")

</div>

Looks good. I’ll do some testing and flag to support. Thanks!! 🙂
