Data Explorer - Transform negative value to 0

Hi Julius,

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

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