# 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:** 1\
**Showing post:** 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!

---

_[View the full topic](https://community.dynatrace.com/t/add-a-threshold-for-a-timestamp-field/49959)._
