# Data Explorer - Transform negative value to 0

**URL:** <https://community.dynatrace.com/t/data-explorer-transform-negative-value-to-0/46081>\
**Category:** Dashboarding\
**Tags:** dynatrace-managed, data-explorer\
**Created:** [June 12, 2024, 12:51pm UTC](https://community.dynatrace.com/t/data-explorer-transform-negative-value-to-0/46081 "2024-06-12T12:51:12Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![AntonPineiro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antonpineiro/32/49_2.png) [@AntonPineiro](https://community.dynatrace.com/u/AntonPineiro)\
**Post date:** [June 13, 2024, 6:51am UTC](https://community.dynatrace.com/t/data-explorer-transform-negative-value-to-0/46081/5 "2024-06-13T06:51:39Z")

</div>

Hi Julius,

Ok, thank you. Then, let me explain with more details target use case.

```markup
5
-
log.XXXXX
:filter(and(or(eq("YYYYY","ZZZZZ")),or(eq("YYYYY","ZZZZZ"))))
:splitBy()
:sum
:sort(value(sum,descending))

```

I have an integer log metric already filtered under some dimensions. That metric is “1” or “0” and sum value in timeframe. Expresion is “target number - log metric”. Normaly that expresion is “0”, it means, nothing is pending.

But it is negative in some scenarios, and we want to transform it to “0” in those situations.

Are you going to follow same approach in that scenario?

Thank you so much!

Best regards

---

_[View the full topic](https://community.dynatrace.com/t/data-explorer-transform-negative-value-to-0/46081)._
