# How to display 100% degradation in SLO?

**URL:** <https://community.dynatrace.com/t/how-to-display-100-degradation-in-slo/51741>\
**Category:** Dashboarding\
**Tags:** dql, dynatrace-managed, slo, dashboards\
**Created:** [May 21, 2025, 8:47pm UTC](https://community.dynatrace.com/t/how-to-display-100-degradation-in-slo/51741 "2025-05-21T20:47:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vvasudev](https://avatars.discourse-cdn.com/v4/letter/v/5daacb/32.png) [@vvasudev](https://community.dynatrace.com/u/vvasudev)\
**Post date:** [May 21, 2025, 8:47pm UTC](https://community.dynatrace.com/t/how-to-display-100-degradation-in-slo/51741/1 "2025-05-21T20:47:34Z")

</div>

Hi,

I’m new to Dynatrace and I’m currently working on setting up monitoring in non production environment that will eventually move to production. Currently, I’m trying to create a SLO for a span that we intentionally ran to have a failure rate of 100%. However, the SLO is not able to evaluate it.

DQL that I’m using:

```markup
fetch spans
| filter matchesValue(endpoint.name, "<endpoint_name>") AND matchesValue(entityAttr(dt.entity.process_group, "tags"), "*APISECCluster*") 
| fields start_time, end_time, Tier, span.name, duration, span.status_code, endpoint.name
| makeTimeseries {
    EPM = countIf(span.status_code == "error", default: 0),
    CPM = count(default: 0)
  }, by: { API=endpoint.name }
| fieldsAdd sli=(((CPM[]-EPM[])/CPM[])*(100))
| fieldsAdd API

```

Since its a 100% failure rate -&nbsp;sli=(((CPM[]-EPM[])/CPM[])\*(100)) will be 0%, which is not being displayed correctly and not being reported in the ‘Problems’ app in DT. Is there a way to handle this scenario where 100% degradation (which resoluts in 0% sli) will be recognized by DT? Thanks in advance!

 ![image.png](https://global.discourse-cdn.com/dynatrace/original/3X/6/9/69bcb7297d48c1e416835b28fe27ee469a17a6a5.png)

---

<div class="post-metadata">

**Author:** ![MichalGebacki](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/michalgebacki/32/41585_2.png) [@MichalGebacki](https://community.dynatrace.com/u/MichalGebacki)\
**Post date:** [November 27, 2025, 3:25pm UTC](https://community.dynatrace.com/t/how-to-display-100-degradation-in-slo/51741/2 "2025-11-27T15:25:20Z")

</div>

Hi,&nbsp;[@vvasudev](https://community.dynatrace.com/user/90560)!

Is this documentation page helping to resolve challenge you’ve described above: [**add a service-level objective (SLO) tile to a dashboard**](https://docs.dynatrace.com/docs/deliver/service-level-objectives/service-level-objective-tile-add-to-dashboard)?

Please let us know, thank you in advance!

---

<div class="post-metadata">

**Author:** ![t\_pawlak](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/t_pawlak/32/14991_2.png) [@t\_pawlak](https://community.dynatrace.com/u/t_pawlak)\
**Post date:** [November 28, 2025, 3:05pm UTC](https://community.dynatrace.com/t/how-to-display-100-degradation-in-slo/51741/3 "2025-11-28T15:05:28Z")

</div>

Hi,  
You’re running into two things at once: DQL behavior and SLO evaluation rules.  
Try this DQL so the SLI is always a valid number (no division-by-zero edge cases):

```markup
fetch spans
| filter matchesValue(endpoint.name, "<endpoint_name>")
| makeTimeseries {
    EPM = countIf(span.status_code == "error"),
    CPM = count()
  }, by: { API = endpoint.name }
| fieldsAdd sli = if(CPM[] > 0,
                     then: ((CPM[] - EPM[]) / CPM[] * 100),
                     else: 0)

```

In the SLO configuration, enable the option that allows evaluation when SLI = 0% (wording like “evaluate SLO even if SLI equals 0%” / “don’t suppress zero-value SLI”).

Once that’s set, a 100% failure rate → SLI = 0% will be treated as a valid SLO breach and will show up in Problems.
