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

Data Explorer - Metrics - default()

EvaWang
Participant

Good mroning, 

I see the DT documentation and make a understanding of 'Default transformation' (https://docs.dynatrace.com/docs/dynatrace-api/environment-api/metric-v2/metric-selector), but I still have a question about the default(0) like below:

 

Same Metric except default(0):

1.  without default (0) - builtin:billing.ddu.metrics.total:splitBy():sum:auto:sort(value(avg,descending))

EvaWang_4-1715690285898.png

2. with default (0) - builtin:billing.ddu.metrics.total:splitBy():sum:auto:sort(value(avg,descending)):default(0,always)

EvaWang_5-1715690339875.png

3. Compare with UI

EvaWang_6-1715690438447.png

 

I just want to aviod the no data situation and used default() in query, Why is there a diff in the result?Should I use it?

 

2 REPLIES 2

Eric_Yu
Dynatrace Advisor
Dynatrace Advisor

Can you change the fold transformation also to sum and show the result?

Eric_Yu_1-1715960330517.png

Eric Yu

It works, thank you so much!

Featured Posts