Combining timeseries, can this be done

Hello,

What if you have to time series and you want to add/subtract them to create a new one…

Can this be done, or a I over asking?

KR Henk

Hello.

Are you looking for something like the following?

BR

Hello Theodore,

Thanks for you answer, yes this is wat I like to see… But here comes then but (sorry) I want to see this in DQL so I can use the result in a Dashboard GenV3,

KR Henk

Then you have to go with this I think:

The concept is called “iterative expressions”

There are few examples on DQL for Metrics page like this one: DQL timeseries examples for Metrics — Dynatrace Docs

e.g.

timeseries {
      new = sum(dt.process.network.sessions.new),
      {reset = sum(dt.process.network.sessions.reset), default:0},
      {timeout = sum(dt.process.network.sessions.timeout), default:0}
    },
    by:{dt.entity.host}
| fieldsAdd result = 100 * (reset[] + timeout[]) / new[]

more details in dedicated section:

Hi Krysztof,

You are absolutely right, thanks,

KR Henk