# Calculating BILLING\_USAGE\_EVENT data to currency

**URL:** <https://community.dynatrace.com/t/calculating-billing-usage-event-data-to-currency/54514>\
**Category:** DQL\
**Tags:** dql, dynatrace-managed\
**Created:** [December 31, 2025, 12:00pm UTC](https://community.dynatrace.com/t/calculating-billing-usage-event-data-to-currency/54514 "2025-12-31T12:00:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![janne-olkoniemi](https://avatars.discourse-cdn.com/v4/letter/j/7c8e57/32.png) [@janne-olkoniemi](https://community.dynatrace.com/u/janne-olkoniemi)\
**Post date:** [December 31, 2025, 12:00pm UTC](https://community.dynatrace.com/t/calculating-billing-usage-event-data-to-currency/54514/1 "2025-12-31T12:00:12Z")

</div>

Hello,

Could someone help me a bit with DQL queries since I’m feeling quite rusty with it currently 🙂  
I would need to calculate the billing usage data on actual currency and not sure what could be the most feasible way to archive it.

I would appreciate if someone could make some example with Full-Stack Monitoring data that how to calculate and show the timeseries data in euros. How to example translate this on to currency if we would say that the cost is example 1000 €&nbsp;Per 100,000 memory-gibibyte-hours?

fetch dt.system.events  
| filter event.kind == “BILLING\_USAGE\_EVENT” and event.type == “Full-Stack Monitoring”  
| dedup event.id  
| makeTimeseries total\_billed\_usage = sum(billed\_gibibyte\_hours), interval: 24h, time: usage.start

---

<div class="post-metadata">

**Author:** ![AntonPineiro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antonpineiro/32/49_2.png) [@AntonPineiro](https://community.dynatrace.com/u/AntonPineiro)\
**Post date:** [December 31, 2025, 1:47pm UTC](https://community.dynatrace.com/t/calculating-billing-usage-event-data-to-currency/54514/2 "2025-12-31T13:47:26Z")

</div>

Hi,

Maybe you can follow [Allocate your DPS costs](https://docs.dynatrace.com/docs/shortlink/dps-manage-cost-allocation).

Dynatrace already provide a dashboard about it but you need to follow some tagging / properties rules. You have more details in [this thread](https://community.dynatrace.com/post/268578).

Best regards

---

<div class="post-metadata">

**Author:** ![janne-olkoniemi](https://avatars.discourse-cdn.com/v4/letter/j/7c8e57/32.png) [@janne-olkoniemi](https://community.dynatrace.com/u/janne-olkoniemi)\
**Post date:** [December 31, 2025, 2:16pm UTC](https://community.dynatrace.com/t/calculating-billing-usage-event-data-to-currency/54514/3 "2025-12-31T14:16:13Z")

</div>

Hi Anton,

Thanks for your suggestion and yep, the cost allocation is my long term plan but I will take some time before we would get the base ready for it since it also need some contribution from our customer side.

Currently I’m trying to find some easy way to calculate the top level prices on dashboards and I will allocate some more time for DQL now so that maybe in some point I can figure out this quite of questions ny myself 🙂

We have old style of dashboard for the cost calculation since it’s quite straightforward with Data Explorer but would be nice to archive something similar with the new dashboards.

Best Regards,

Janne

---

<div class="post-metadata">

**Author:** ![AntonPineiro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antonpineiro/32/49_2.png) [@AntonPineiro](https://community.dynatrace.com/u/AntonPineiro)\
**Post date:** [January 2, 2026, 7:37am UTC](https://community.dynatrace.com/t/calculating-billing-usage-event-data-to-currency/54514/4 "2026-01-02T07:37:31Z")

</div>

Hi,

Since you have already something in dashboard classic. That metrics can be showed in new dashboards as well.

Best regards

---

<div class="post-metadata">

**Author:** ![janne-olkoniemi](https://avatars.discourse-cdn.com/v4/letter/j/7c8e57/32.png) [@janne-olkoniemi](https://community.dynatrace.com/u/janne-olkoniemi)\
**Post date:** [January 2, 2026, 8:52am UTC](https://community.dynatrace.com/t/calculating-billing-usage-event-data-to-currency/54514/5 "2026-01-02T08:52:41Z")

</div>

I found some way eventually which seems to suit my needs for now and I save the prices as variables and make the calculation like this. Maybe not the best way to achieve what I need but it was we first way to get the data I need.

| fieldsAdd Euro = (total\_billed\_usage[]\*toDouble($FullStackPrice))

Full query:

fetch dt.system.events  
| filter event.kind == “BILLING\_USAGE\_EVENT” and event.type == “Full-Stack Monitoring”  
| dedup event.id  
| makeTimeseries total\_billed\_usage = sum(billed\_gibibyte\_hours), interval: 24h, time: usage.start  
| fieldsAdd Euro = (total\_billed\_usage[]\*toDouble($FullStackPrice))  
| fieldsRemove total\_billed\_usage
