<?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 I want to create a line chart that displays the failed request count for a selected service in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/I-want-to-create-a-line-chart-that-displays-the-failed-request/m-p/277297#M2088</link>
    <description>&lt;P&gt;I want to create a line chart that displays the failed request count for a selected service&lt;BR /&gt;I able to achieve the builtin metrics however when i am trying to do same thing with DQL its not returning the result&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Able to get result:&lt;/STRONG&gt;&lt;BR /&gt;builtin:service.errors.total.rate:filter(and(or(in("dt.entity.service",entitySelector("type(service),entityName.contains(~"(/sbmo-auditlogconsole)~")"))))):splitBy("dt.entity.service"):sort(value(auto,descending))&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;No result with:&lt;/STRONG&gt;&lt;BR /&gt;timeseries { count = sum(dt.service.request.count, filter: { failed == true }), count.0 = sum(dt.service.request.count) }, by: { dt.entity.service }, filter: { in(dt.entity.service, classicEntitySelector(concat("type(service),entityName.contains(\" (/sbmo-auditlogconsole)\")"))) }&lt;BR /&gt;| fieldsAdd rate = count[] / count.0[]&lt;BR /&gt;| sort arraySum(rate) desc&lt;BR /&gt;| fieldsAdd entityName(dt.entity.service)&lt;BR /&gt;| fieldsRemove count.0, count&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 15 May 2025 12:26:14 GMT</pubDate>
    <dc:creator>Ganeshmete77</dc:creator>
    <dc:date>2025-05-15T12:26:14Z</dc:date>
    <item>
      <title>I want to create a line chart that displays the failed request count for a selected service</title>
      <link>https://community.dynatrace.com/t5/DQL/I-want-to-create-a-line-chart-that-displays-the-failed-request/m-p/277297#M2088</link>
      <description>&lt;P&gt;I want to create a line chart that displays the failed request count for a selected service&lt;BR /&gt;I able to achieve the builtin metrics however when i am trying to do same thing with DQL its not returning the result&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Able to get result:&lt;/STRONG&gt;&lt;BR /&gt;builtin:service.errors.total.rate:filter(and(or(in("dt.entity.service",entitySelector("type(service),entityName.contains(~"(/sbmo-auditlogconsole)~")"))))):splitBy("dt.entity.service"):sort(value(auto,descending))&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;No result with:&lt;/STRONG&gt;&lt;BR /&gt;timeseries { count = sum(dt.service.request.count, filter: { failed == true }), count.0 = sum(dt.service.request.count) }, by: { dt.entity.service }, filter: { in(dt.entity.service, classicEntitySelector(concat("type(service),entityName.contains(\" (/sbmo-auditlogconsole)\")"))) }&lt;BR /&gt;| fieldsAdd rate = count[] / count.0[]&lt;BR /&gt;| sort arraySum(rate) desc&lt;BR /&gt;| fieldsAdd entityName(dt.entity.service)&lt;BR /&gt;| fieldsRemove count.0, count&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 May 2025 12:26:14 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/I-want-to-create-a-line-chart-that-displays-the-failed-request/m-p/277297#M2088</guid>
      <dc:creator>Ganeshmete77</dc:creator>
      <dc:date>2025-05-15T12:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: I want to create a line chart that displays the failed request count for a selected service</title>
      <link>https://community.dynatrace.com/t5/DQL/I-want-to-create-a-line-chart-that-displays-the-failed-request/m-p/277454#M2097</link>
      <description>&lt;P&gt;Please try this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;timeseries { count = sum(dt.service.request.count, filter: { failed == true }, default:0), 
  count.0 = sum(dt.service.request.count) } 
  , by: { dt.entity.service }
  , filter: { in(dt.entity.service, classicEntitySelector(concat("type(service),entityName.contains(\" (/sbmo-auditlogconsole)\")"))) }
  , union:true
| fieldsAdd rate = count[] / count.0[]
| sort arraySum(rate) desc
| fieldsAdd entityName(dt.entity.service)
| fieldsRemove count.0, count&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Without &lt;EM&gt;&lt;STRONG&gt;union:true&lt;/STRONG&gt;&lt;/EM&gt; your query will not return where there was completely no data when condition "failed = true" is not fulfilled.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Additionally adding &lt;EM&gt;&lt;STRONG&gt;default:0&lt;/STRONG&gt;&lt;/EM&gt; will help getting correct result (0) instead of null when there are no failed requests for specific time slots.&lt;/P&gt;</description>
      <pubDate>Mon, 19 May 2025 06:54:22 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/I-want-to-create-a-line-chart-that-displays-the-failed-request/m-p/277454#M2097</guid>
      <dc:creator>krzysztof_hoja</dc:creator>
      <dc:date>2025-05-19T06:54:22Z</dc:date>
    </item>
    <item>
      <title>Re: I want to create a line chart that displays the failed request count for a selected service</title>
      <link>https://community.dynatrace.com/t5/DQL/I-want-to-create-a-line-chart-that-displays-the-failed-request/m-p/277516#M2102</link>
      <description>&lt;P&gt;Thanks, Its working now.&lt;/P&gt;</description>
      <pubDate>Mon, 19 May 2025 15:15:47 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/I-want-to-create-a-line-chart-that-displays-the-failed-request/m-p/277516#M2102</guid>
      <dc:creator>Ganeshmete77</dc:creator>
      <dc:date>2025-05-19T15:15:47Z</dc:date>
    </item>
  </channel>
</rss>

