# Add a threshold for a timestamp field

**URL:** <https://community.dynatrace.com/t/add-a-threshold-for-a-timestamp-field/49959>\
**Category:** Dashboarding\
**Tags:** latest-dynatrace, dashboards, charts\
**Created:** [January 28, 2025, 6:53pm UTC](https://community.dynatrace.com/t/add-a-threshold-for-a-timestamp-field/49959 "2025-01-28T18:53:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aganpathi](https://avatars.discourse-cdn.com/v4/letter/a/5fc32e/32.png) [@aganpathi](https://community.dynatrace.com/u/aganpathi)\
**Post date:** [January 28, 2025, 6:53pm UTC](https://community.dynatrace.com/t/add-a-threshold-for-a-timestamp-field/49959/1 "2025-01-28T18:53:17Z")

</div>

I have a requirement to create a dashboard panel to show the newest date for a particular log entry and highlight it, if it’s older than today’s date.

I’ve created a panel that pulls this information via the following DQL into a single value panel -

```markup
fetch logs
| filter //some filter criteria
| summarize max_timestamp = max(timestamp)

```

This shows up as the following panel in the dashboard.

 ![newest_log_entry.png](https://global.discourse-cdn.com/dynatrace/original/3X/f/0/f084c059ce33a17639074744f76637d7ba72ce14.png)

Now, in order to highlight the text in red if the date is less than today’s date, I went to the thresholds but could not find a way to select the variable to set this.

 ![threshold_option_not_available.png](https://global.discourse-cdn.com/dynatrace/original/3X/2/7/27a802041fb663483025562d3f60441d4840f51e.png)

How can I set a threshold for the timestamp value to show up in red color if it’s older than today’s date?

Thank you!

---

<div class="post-metadata">

**Author:** ![Fin\_Ubels](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/fin_ubels/32/18008_2.png) [@Fin\_Ubels](https://community.dynatrace.com/u/Fin_Ubels)\
**Post date:** [January 28, 2025, 10:12pm UTC](https://community.dynatrace.com/t/add-a-threshold-for-a-timestamp-field/49959/2 "2025-01-28T22:12:12Z")

</div>

Unfortunately it doesn’t look like this is possible at the moment. It would be great to see that so it would be a good suggestion for the ideas section of the forum. In the meantime you could evaluate the log in the query like I have done below and then show a string true/false (or any string). And then you can set thresholds on strings.

 ![Fin_Ubels_0-1738102125603.png](https://global.discourse-cdn.com/dynatrace/original/2X/b/bbdb38e76bf131505fad54bd51000c75d4bb0ab8.png)

Couldn’t find a way to include the timestamp in a single value along with the true/false since it is a single value. You could also play around with using a table but it wont be as aesthetic.
