# Aggregation Options for Calculated Service Dimensions

**URL:** <https://community.dynatrace.com/t/aggregation-options-for-calculated-service-dimensions/43845>\
**Category:** Dynatrace API\
**Tags:** dynatrace-api\
**Created:** [January 26, 2024, 9:52am UTC](https://community.dynatrace.com/t/aggregation-options-for-calculated-service-dimensions/43845 "2024-01-26T09:52:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![g\_kat](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/g_kat/32/34573_2.png) [@g\_kat](https://community.dynatrace.com/u/g_kat)\
**Post date:** [January 26, 2024, 9:52am UTC](https://community.dynatrace.com/t/aggregation-options-for-calculated-service-dimensions/43845/1 "2024-01-26T09:52:02Z")

</div>

Hi,

I’m trying to create a calculated metric through the API to capture failure rates split by service instances.

In the dimension definition, the only acceptable values for the topXAggregation field are: OF\_INTEREST\_RATIO and OTHER\_RATIO.

I’m not sure what these values represent, could somebody enlighten me?

Thanks,

George

---

<div class="post-metadata">

**Author:** ![radek\_jasinski](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radek_jasinski/32/10432_2.png) [@radek\_jasinski](https://community.dynatrace.com/u/radek_jasinski)\
**Post date:** [January 26, 2024, 9:56am UTC](https://community.dynatrace.com/t/aggregation-options-for-calculated-service-dimensions/43845/2 "2024-01-26T09:56:53Z")

</div>

Hi&nbsp;[@g\_kat](https://community.dynatrace.com/user/34133)

- OF\_INTEREST\_RATIO: This aggregation method is used when you want to focus on the most important elements (based on criteria such as failure rate, response time, etc.), but not on the best service instances. For example, if you are analysing failure rates, using OF\_INTEREST\_RATIO will give you the proportion of failures coming from the top N service instances compared to all service instances.
- OTHER\_RATIO: In contrast, the OTHER\_RATIO aggregation is used when you are interested in the rest of the elements that are not in the top segment. Basically, it aggregates the data for all elements that are not in the top N list. This can be useful if you want to understand what proportion of failures come from less significant (in terms of volume or other criterion) service instances.

Hope it helps:)

Radek

---

<div class="post-metadata">

**Author:** ![g\_kat](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/g_kat/32/34573_2.png) [@g\_kat](https://community.dynatrace.com/u/g_kat)\
**Post date:** [January 26, 2024, 8:27pm UTC](https://community.dynatrace.com/t/aggregation-options-for-calculated-service-dimensions/43845/3 "2024-01-26T20:27:38Z")

</div>

Thank you&nbsp;[@radek\_jasinski](https://community.dynatrace.com/user/16832)&nbsp;for the explanation!

George
