<?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 Re: Recreating Native Problem Chart Behavior in DQL (Active Problems Over Time) in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/Recreating-Native-Problem-Chart-Behavior-in-DQL-Active-Problems/m-p/300062#M3366</link>
    <description>&lt;P&gt;You're welcome, glad to help&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 29 May 2026 09:01:26 GMT</pubDate>
    <dc:creator>MaximilianoML</dc:creator>
    <dc:date>2026-05-29T09:01:26Z</dc:date>
    <item>
      <title>Recreating Native Problem Chart Behavior in DQL (Active Problems Over Time)</title>
      <link>https://community.dynatrace.com/t5/DQL/Recreating-Native-Problem-Chart-Behavior-in-DQL-Active-Problems/m-p/300055#M3363</link>
      <description>&lt;P&gt;Hi everyone,&lt;BR /&gt;I’m trying to recreate the problem chart from the Problems menu using DQL, but I’m struggling to match the behavior of the native visualization.&lt;/P&gt;&lt;P&gt;Current approach:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;fetch dt.davis.problems
| makeTimeseries count(), by: {event.status}&lt;/LI-CODE&gt;&lt;P&gt;Current result:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Screenshot 2026-05-29 150309.png" style="width: 999px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/33274iBEC7DA685F4ECBD0/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2026-05-29 150309.png" alt="Screenshot 2026-05-29 150309.png" /&gt;&lt;/span&gt;The problem only appears as a single bar at the timestamp field.&lt;/P&gt;&lt;P&gt;Expectation:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Screenshot 2026-05-29 150128.png" style="width: 999px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/33276i98BE07F8B1C0B6CC/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2026-05-29 150128.png" alt="Screenshot 2026-05-29 150128.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want the problem to behave like the native Problems chart:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The bar should start appearing from event.start&lt;/LI&gt;&lt;LI&gt;The bar should continue to reappear based on the selected interval&lt;/LI&gt;&lt;LI&gt;Example:&lt;UL&gt;&lt;LI&gt;If interval = 5 minutes&lt;/LI&gt;&lt;LI&gt;And the problem event.status is still OPEN (or event.end is null)&lt;/LI&gt;&lt;LI&gt;Then the same problem should continue contributing to every 5-minute bucket until it is CLOSED&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;So essentially I’m trying to calculate “active/open problems over time”, not just “problem creation count”.&lt;/P&gt;&lt;P&gt;Has anyone successfully recreated this behavior in DQL?&lt;BR /&gt;Is there a recommended approach/pattern for expanding problem duration across time buckets?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 May 2026 08:19:59 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Recreating-Native-Problem-Chart-Behavior-in-DQL-Active-Problems/m-p/300055#M3363</guid>
      <dc:creator>zaidanrizq</dc:creator>
      <dc:date>2026-05-29T08:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: Recreating Native Problem Chart Behavior in DQL (Active Problems Over Time)</title>
      <link>https://community.dynatrace.com/t5/DQL/Recreating-Native-Problem-Chart-Behavior-in-DQL-Active-Problems/m-p/300059#M3364</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/98519"&gt;@zaidanrizq&lt;/a&gt;!&lt;/P&gt;&lt;P&gt;I'm not sure if got right, but I think you want something like this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MaximilianoML_0-1780044584796.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/33278i4811DE9E1A4DAB31/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MaximilianoML_0-1780044584796.png" alt="MaximilianoML_0-1780044584796.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If it's, you can use this Json below and then use as a dashboard, I made comments on the dashboard so you can understand better:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
  "tiles": {
    "0": {
      "content": "# Problems over time\nThis dashboard recreates the Problems chart behavior by counting problems across their active duration, from `event.start` until `event.end` or `now()`.",
      "type": "markdown"
    },
    "1": {
      "davis": {
        "davisVisualization": {
          "isAvailable": true
        },
        "enabled": false
      },
      "description": "Counts each problem in every interval where it was active.",
      "query": "fetch dt.davis.problems, from: toTimestamp($dt_timeframe_from) - 2h, to: toTimestamp($dt_timeframe_to)\n| filter event.start &amp;lt;= toTimestamp($dt_timeframe_to)\n| filter coalesce(event.end, now()) &amp;gt;= toTimestamp($dt_timeframe_from)\n| makeTimeseries problems = countDistinct(display_id),\n    by: { event.status },\n    interval: 5m,\n    spread: timeframe(from: event.start, to: coalesce(event.end, now()))",
      "querySettings": {
        "defaultSamplingRatio": 10,
        "defaultScanLimitGbytes": 500,
        "enableSampling": false,
        "maxResultMegaBytes": 10,
        "maxResultRecords": 1000
      },
      "title": "Problems over time by status",
      "type": "data",
      "visualization": "barChart",
      "visualizationSettings": {
        "autoSelectVisualization": false,
        "chartSettings": {
          "legend": {
            "position": "right"
          }
        },
        "coloring": {
          "colorRules": [
            {
              "colorMode": "custom-color",
              "comparator": "=",
              "customColor": "#C91313",
              "field": "event.status",
              "type": "string",
              "value": "ACTIVE"
            }
          ]
        }
      }
    },
    "2": {
      "davis": {
        "davisVisualization": {
          "isAvailable": true
        },
        "enabled": false
      },
      "description": "Same logic without splitting by status.",
      "query": "fetch dt.davis.problems, from: toTimestamp($dt_timeframe_from) - 2h, to: toTimestamp($dt_timeframe_to)\n| filter event.start &amp;lt;= toTimestamp($dt_timeframe_to)\n| filter coalesce(event.end, now()) &amp;gt;= toTimestamp($dt_timeframe_from)\n| makeTimeseries problems = countDistinct(display_id),\n    interval: 5m,\n    spread: timeframe(from: event.start, to: coalesce(event.end, now()))",
      "querySettings": {
        "defaultSamplingRatio": 10,
        "defaultScanLimitGbytes": 500,
        "enableSampling": false,
        "maxResultMegaBytes": 10,
        "maxResultRecords": 1000
      },
      "title": "Total problems over time",
      "type": "data",
      "visualization": "barChart",
      "visualizationSettings": {
        "autoSelectVisualization": false,
        "chartSettings": {
          "legend": {
            "position": "right"
          }
        }
      }
    }
  },
  "variables": [],
  "annotations": [],
  "settings": {
    "defaultTimeframe": {
      "enabled": true,
      "value": {
        "from": "now()-2h",
        "to": "now()"
      }
    }
  },
  "layouts": {
    "0": {
      "h": 3,
      "w": 24,
      "x": 0,
      "y": 0
    },
    "1": {
      "h": 8,
      "w": 24,
      "x": 0,
      "y": 3
    },
    "2": {
      "h": 8,
      "w": 24,
      "x": 0,
      "y": 11
    }
  },
  "importedWithCode": false,
  "version": 21
}&lt;/LI-CODE&gt;&lt;P&gt;I hope it helps you&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 May 2026 08:51:54 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Recreating-Native-Problem-Chart-Behavior-in-DQL-Active-Problems/m-p/300059#M3364</guid>
      <dc:creator>MaximilianoML</dc:creator>
      <dc:date>2026-05-29T08:51:54Z</dc:date>
    </item>
    <item>
      <title>Re: Recreating Native Problem Chart Behavior in DQL (Active Problems Over Time)</title>
      <link>https://community.dynatrace.com/t5/DQL/Recreating-Native-Problem-Chart-Behavior-in-DQL-Active-Problems/m-p/300061#M3365</link>
      <description>&lt;P&gt;It worked as expected, Thanks a lot!&lt;/P&gt;</description>
      <pubDate>Fri, 29 May 2026 09:00:31 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Recreating-Native-Problem-Chart-Behavior-in-DQL-Active-Problems/m-p/300061#M3365</guid>
      <dc:creator>zaidanrizq</dc:creator>
      <dc:date>2026-05-29T09:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: Recreating Native Problem Chart Behavior in DQL (Active Problems Over Time)</title>
      <link>https://community.dynatrace.com/t5/DQL/Recreating-Native-Problem-Chart-Behavior-in-DQL-Active-Problems/m-p/300062#M3366</link>
      <description>&lt;P&gt;You're welcome, glad to help&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 May 2026 09:01:26 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Recreating-Native-Problem-Chart-Behavior-in-DQL-Active-Problems/m-p/300062#M3366</guid>
      <dc:creator>MaximilianoML</dc:creator>
      <dc:date>2026-05-29T09:01:26Z</dc:date>
    </item>
  </channel>
</rss>

