cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Arithmetic expression with calculated metrics

Malaik
Champion

Hello Members,

Im facing an issue.

I have 2 calculated metrics on RequestCount.

Example, in the last 1 Hour, I have 20 calls for one and 5 for the other showed in separated tiles on Dashboard.

I have another tile including the addition for both.

When I select the same time frame, I get No Data.

 

Please help us to fixe, its very urgent for the customer.

 

Good day.

Sharing Knowledge
5 REPLIES 5

Julius_Loman
DynaMight Legend
DynaMight Legend

Not sure what is the issue here, but you are missing aggregations definitely and I can also see the timeseries are sparse and you want to have a single value anyway.

Can you try the following expression?

(calc:service.accountopening_success_requestcount:splitBy():auto:fold)+(calc:service.accountopening_notsuccess_requestcount:splitBy():auto:fold)

 

 

Certified Dynatrace Master | Alanata a.s., Slovakia, Dynatrace Master Partner

Thanks Julius for your help and feedback.

 

Yes I found it quickly before your poste, so with only adding 

:splitBy()

 

Sharing Knowledge

Hi @Julius_Loman 
Im facing a bug reported to Dynatrace.

 

When 1 of both metrics have NoData as result, the addition show NoData which is wrong.

Sharing Knowledge

gilgi
DynaMight Champion
DynaMight Champion

As someone who is only getting to know the metrics expressions I find it the easiest to add 2 metrics to the data explorer, presented the way I want them to be and then just create the 3 by using the metric operation.

Hi @gilgi 

With a screenshot, your comment will be better to understand.

 

Thanks.

Sharing Knowledge

Featured Posts