# Displaying metrics in different format on a dashboard

**URL:** <https://community.dynatrace.com/t/displaying-metrics-in-different-format-on-a-dashboard/56654>\
**Category:** Dashboarding\
**Tags:** dynatrace-managed, dashboards\
**Created:** [August 6, 2026, 3:46am UTC](https://community.dynatrace.com/t/displaying-metrics-in-different-format-on-a-dashboard/56654 "2026-08-06T03:46:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dougwillis](https://avatars.discourse-cdn.com/v4/letter/d/e9c0ed/32.png) [@dougwillis](https://community.dynatrace.com/u/dougwillis)\
**Post date:** [August 6, 2026, 3:46am UTC](https://community.dynatrace.com/t/displaying-metrics-in-different-format-on-a-dashboard/56654/1 "2026-08-06T03:46:28Z")

</div>

I’m in the process of converting a grafana dashboard to a Dynatrace equivalent and have run up against a number formatting issue.

I have a monitor that produces replication LSN metrics on a Prometheus endpoint. It is being scraped into Dynatrace which is storing the metric as a double type.

I want to display a timeline graph so it will show the steps in LSN. I normally see this as HEX values in Grafana.

Is there a way to do the number to hex string conversion on the metric when it is displayed on the Dynatrace dashboard?

---

<div class="post-metadata">

**Author:** ![marco\_irmer](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/marco_irmer/32/3038_2.png) [@marco\_irmer](https://community.dynatrace.com/u/marco_irmer)\
**Post date:** [August 6, 2026, 9:12pm UTC](https://community.dynatrace.com/t/displaying-metrics-in-different-format-on-a-dashboard/56654/2 "2026-08-06T21:12:08Z")

</div>

Have you tried using the [numberToHexString](https://docs.dynatrace.com/docs/platform/grail/dynatrace-query-language/functions/conversion-and-casting-functions#numberToHexString) function in DQL?

---

<div class="post-metadata">

**Author:** ![dougwillis](https://avatars.discourse-cdn.com/v4/letter/d/e9c0ed/32.png) [@dougwillis](https://community.dynatrace.com/u/dougwillis)\
**Post date:** [August 24, 2026, 11:56pm UTC](https://community.dynatrace.com/t/displaying-metrics-in-different-format-on-a-dashboard/56654/3 "2026-08-24T23:56:31Z")

</div>

Thanks for the reply.

As I understand it the Dynatrace graph tools are not setup to use a hex format string as a scalable value.

I’ve used that on a table column value.&nbsp;There was a catch however. The numberToHexString required I cast the double to a long before the function would generate the hex string.
