<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Display zero instead of no results in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/Display-zero-instead-of-no-results/m-p/291556#M2879</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;I'm trying to create a dashboard tile that will show the number of certificates getting close to expiry.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a DQL query that runs successfully but when there aren't any certificates in the certificate lifecycle 1 : Between 10 and 30, it produces no results.&lt;BR /&gt;My dashboard tile displays 'no records' if there are no results for this query, I want the dashboard tile to display a zero. This allows me to assign Thresholds to the dashboard tile so I can give it a red/green status, which I can't do when there a no records. I thought adding a default value to the DQL would create an output of zero, but it doesn't, I still get a result of 'no records'.&amp;nbsp; timeseries count(certificate.monitor.status, filter: {monitoring_config == "My Certificate Monitoring" AND certificate_lifecycle == "1: Between 10 and 30"}, default:0) Can anyone suggest a way to get value of zero when the DQL returns no results? Thanks&lt;/P&gt;</description>
    <pubDate>Tue, 16 Dec 2025 09:54:00 GMT</pubDate>
    <dc:creator>nc1</dc:creator>
    <dc:date>2025-12-16T09:54:00Z</dc:date>
    <item>
      <title>Display zero instead of no results</title>
      <link>https://community.dynatrace.com/t5/DQL/Display-zero-instead-of-no-results/m-p/291556#M2879</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;I'm trying to create a dashboard tile that will show the number of certificates getting close to expiry.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a DQL query that runs successfully but when there aren't any certificates in the certificate lifecycle 1 : Between 10 and 30, it produces no results.&lt;BR /&gt;My dashboard tile displays 'no records' if there are no results for this query, I want the dashboard tile to display a zero. This allows me to assign Thresholds to the dashboard tile so I can give it a red/green status, which I can't do when there a no records. I thought adding a default value to the DQL would create an output of zero, but it doesn't, I still get a result of 'no records'.&amp;nbsp; timeseries count(certificate.monitor.status, filter: {monitoring_config == "My Certificate Monitoring" AND certificate_lifecycle == "1: Between 10 and 30"}, default:0) Can anyone suggest a way to get value of zero when the DQL returns no results? Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 16 Dec 2025 09:54:00 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Display-zero-instead-of-no-results/m-p/291556#M2879</guid>
      <dc:creator>nc1</dc:creator>
      <dc:date>2025-12-16T09:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: Display zero instead of no results</title>
      <link>https://community.dynatrace.com/t5/DQL/Display-zero-instead-of-no-results/m-p/291558#M2880</link>
      <description>&lt;P&gt;You're going to have to use the "default" and "nonempty" parameters:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;timeseries count(certificate.monitor.status, default:0), filter: {monitoring_config == "My Certificate Monitoring" AND certificate_lifecycle == "1: Between 10 and 30"}, nonempty:true&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 16 Dec 2025 10:24:00 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Display-zero-instead-of-no-results/m-p/291558#M2880</guid>
      <dc:creator>StrangerThing</dc:creator>
      <dc:date>2025-12-16T10:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: Display zero instead of no results</title>
      <link>https://community.dynatrace.com/t5/DQL/Display-zero-instead-of-no-results/m-p/291588#M2881</link>
      <description>&lt;P&gt;Thank you. That has worked.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Dec 2025 15:26:33 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Display-zero-instead-of-no-results/m-p/291588#M2881</guid>
      <dc:creator>nc1</dc:creator>
      <dc:date>2025-12-16T15:26:33Z</dc:date>
    </item>
  </channel>
</rss>

