# Use DQL Alternative to New Relic’s EXTRAPOLATE Command

**URL:** <https://community.dynatrace.com/t/use-dql-alternative-to-new-relic-s-extrapolate-command/49032>\
**Category:** DQL\
**Tags:** dql\
**Created:** [November 22, 2024, 5:49pm UTC](https://community.dynatrace.com/t/use-dql-alternative-to-new-relic-s-extrapolate-command/49032 "2024-11-22T17:49:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ganesh\_Reddy](https://avatars.discourse-cdn.com/v4/letter/g/439d5e/32.png) [@Ganesh\_Reddy](https://community.dynatrace.com/u/Ganesh_Reddy)\
**Post date:** [November 22, 2024, 5:49pm UTC](https://community.dynatrace.com/t/use-dql-alternative-to-new-relic-s-extrapolate-command/49032/1 "2024-11-22T17:49:25Z")

</div>

Could you please let me know if there is an alternative to New Relic’s **EXTRAPOLATE** command? This command is used to fill in missing gaps when calculating time-series data etc, ensuring smooth and continuous data representation.  
To clarify the use case of EXTRAPOLATE and avoid confusion, I’ve included examples below.

- **What does it do?**
- It estimates (extrapolates) missing data points to fill in gaps, ensuring your calculations (like averages or rates) are as accurate as possible.
- This is especially useful if your app or data collection intermittently stops reporting events (e.g., network issues).
- **Why use it?**
- Without extrapolation, gaps in data can skew your results, making them artificially low.
- With extrapolation, New Relic assumes the trend continues during the gap, providing a more accurate estimate.

**Example Without EXTRAPOLATE:**  
Suppose you collect data for 1 hour, but your app fails to send data for 15 minutes. Your dataset might look like this:

Time Bucket. Count (count(\*))  
12:00 - 12:15 PM 10  
12:15 - 12:30 PM 0  
12:30 - 12:45 PM 0  
12:45 - 1:00 PM. 10

Without extrapolation:

- Total Count = 10+0+0+10=20
- Rate = 20/1&nbsp;hour=20 events/hour (lower than actual).

**Example With EXTRAPOLATE:**  
New Relic uses the available data to fill in gaps by assuming consistent reporting during the missing time:

Time Bucket. Count (count(\*)) Extrapolated Count  
12:00 - 12:15 PM 10 10  
12:15 - 12:30 PM Missing 10 (estimated)  
12:30 - 12:45 PM Missing 10 (estimated)  
12:45 - 1:00 PM 10 10

With extrapolation:

- Total Count = 10+10+10+10=40
- Rate = 40/1&nbsp;hour=40 events/hour (closer to the actual rate).

---

<div class="post-metadata">

**Author:** ![erh\_inetum](https://avatars.discourse-cdn.com/v4/letter/e/48db29/32.png) [@erh\_inetum](https://community.dynatrace.com/u/erh_inetum)\
**Post date:** [November 25, 2024, 5:28am UTC](https://community.dynatrace.com/t/use-dql-alternative-to-new-relic-s-extrapolate-command/49032/2 "2024-11-25T05:28:21Z")

</div>

Hi Ganesh,

I think you can use [default transformation](https://docs.dynatrace.com/docs/shortlink/api-metrics-v2-selector#default).

Ex:

 ![erh_inetum_0-1732512373186.png](https://global.discourse-cdn.com/dynatrace/original/2X/8/83bfb655a6fa86a991bedd789aaec8e37e771c63.png)

As you can see, this metric has been completed with the value 10&nbsp;when the metric has no data.

Hope it helps.

Regards,

Elena.

---

<div class="post-metadata">

**Author:** ![Ganesh\_Reddy](https://avatars.discourse-cdn.com/v4/letter/g/439d5e/32.png) [@Ganesh\_Reddy](https://community.dynatrace.com/u/Ganesh_Reddy)\
**Post date:** [December 20, 2024, 4:50pm UTC](https://community.dynatrace.com/t/use-dql-alternative-to-new-relic-s-extrapolate-command/49032/3 "2024-12-20T16:50:44Z")

</div>

Hi&nbsp;[@erh\_inetum](https://community.dynatrace.com/user/40722)&nbsp;  
Thanks for the reply. But&nbsp;[default transformation](https://docs.dynatrace.com/docs/shortlink/api-metrics-v2-selector#default)&nbsp;will work only for metrics. And I want something for bizevents if possible. On top of that, EXTRAPOLATE will actually update empty values precisely using algorithms and previous values, but setting up default value will always hardcode the value.

---

<div class="post-metadata">

**Author:** ![izabelarokita](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/izabelarokita/32/41812_2.png) [@izabelarokita](https://community.dynatrace.com/u/izabelarokita)\
**Post date:** [December 18, 2025, 12:55pm UTC](https://community.dynatrace.com/t/use-dql-alternative-to-new-relic-s-extrapolate-command/49032/4 "2025-12-18T12:55:24Z")

</div>

Hey&nbsp;[@Ganesh\_Reddy](https://community.dynatrace.com/user/83577)&nbsp;,  
I just wanted to check in and see if you still need help with this. If so, I’d be happy to look into it for you!&nbsp;:blush:  
Please let me know what works best for you.
