# Complex SLO built on multiple SLO's

**URL:** <https://community.dynatrace.com/t/complex-slo-built-on-multiple-slos/42852>\
**Category:** Automations\
**Tags:** dynatrace-managed, slo\
**Created:** [November 27, 2023, 2:07pm UTC](https://community.dynatrace.com/t/complex-slo-built-on-multiple-slos/42852 "2023-11-27T14:07:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gilgi](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/gilgi/32/11747_2.png) [@gilgi](https://community.dynatrace.com/u/gilgi)\
**Post date:** [November 27, 2023, 2:07pm UTC](https://community.dynatrace.com/t/complex-slo-built-on-multiple-slos/42852/1 "2023-11-27T14:07:06Z")

</div>

Hi,

We have a need to create a global SLO based on two other SLO’s. However, since there is no guarentee base SLO’s will always have values, there is a need to make sure the resulting SLO will ignore the missing gaps. We thought of using an expression like the following:

(((func:slo.slo\_for\_journeyservice\_health:splitBy():avg:default(1.0,always)) \* 1)+((func:slo.slo\_for\_journeyservice\_performance:splitBy():avg:default(1.0,always)) \* 1)) / 2

This is working great in the data explorer however cannot be parsed in the SLO definition. Is there anyway to overcome this without creating custom metrics?

Gil.

---

<div class="post-metadata">

**Author:** ![gilgi](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/gilgi/32/11747_2.png) [@gilgi](https://community.dynatrace.com/u/gilgi)\
**Post date:** [November 27, 2023, 2:32pm UTC](https://community.dynatrace.com/t/complex-slo-built-on-multiple-slos/42852/2 "2023-11-27T14:32:57Z")

</div>

Just had a reply from&nbsp;[@Julius\_Loman](https://community.dynatrace.com/user/3364)&nbsp;fixing the expression to be:

```javascript
((((func:slo.slo_for_journeyservice_health:splitBy():avg):default(1.0,always)) * 1)+(((func:slo.slo_for_journeyservice_performance:splitBy():avg):default(1.0,always)) * 1)) / 2

```
