<?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: How to plot a graph comparing successful API hits today vs. same day last week? in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/How-to-plot-a-graph-comparing-successful-API-hits-today-vs-same/m-p/290995#M2853</link>
    <description>&lt;P&gt;I could not make it in the mobile application context.&lt;/P&gt;</description>
    <pubDate>Mon, 08 Dec 2025 08:08:36 GMT</pubDate>
    <dc:creator>subair-appakkan</dc:creator>
    <dc:date>2025-12-08T08:08:36Z</dc:date>
    <item>
      <title>How to plot a graph comparing successful API hits today vs. same day last week?</title>
      <link>https://community.dynatrace.com/t5/DQL/How-to-plot-a-graph-comparing-successful-API-hits-today-vs-same/m-p/290989#M2850</link>
      <description>&lt;DIV&gt;&lt;P&gt;I want to create a time-series chart in Dynatrace that shows the number of successful API hits for &lt;STRONG&gt;today&lt;/STRONG&gt; and compares it to the same day last week (aligned by time of day).&lt;/P&gt;&lt;P&gt;I currently have a query that gives me the total count:&lt;/P&gt;&lt;PRE&gt;fetch user.events, scanLimitGBytes:-1
| filter app.bundle == "com.my.package"
| filter http.response.status == 200
| summarize count()&lt;/PRE&gt;&lt;P&gt;This works for totals, but I need:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;A &lt;STRONG&gt;graph&lt;/STRONG&gt; showing progression throughout the day.&lt;/LI&gt;&lt;LI&gt;Two series: &lt;STRONG&gt;Today (Sunday)&lt;/STRONG&gt; and &lt;STRONG&gt;Last Sunday&lt;/STRONG&gt;(or same weekday last week).&lt;/LI&gt;&lt;LI&gt;Ideally aligned so 00:00 today compares to 00:00 last week.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;What’s the correct DQL syntax or recommended approach to achieve this? Should I use makeTimeseries or bin()? And how do I shift last week’s timestamps forward for overlay?&lt;BR /&gt;A sample image is attached.&lt;/P&gt;&lt;P&gt;Any examples or best practices would be appreciated!&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 07 Dec 2025 23:21:22 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/How-to-plot-a-graph-comparing-successful-API-hits-today-vs-same/m-p/290989#M2850</guid>
      <dc:creator>subair-appakkan</dc:creator>
      <dc:date>2025-12-07T23:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to plot a graph comparing successful API hits today vs. same day last week?</title>
      <link>https://community.dynatrace.com/t5/DQL/How-to-plot-a-graph-comparing-successful-API-hits-today-vs-same/m-p/290992#M2851</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/93825"&gt;@subair-appakkan&lt;/a&gt;&amp;nbsp; Here is an example for memory, you can use similar logic for your use case&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;timeseries today = avg(dt.host.memory.usage), 
  from:now() - 24h, to:now(),
  by: {dt.entity.host},
  filter: dt.entity.host== "HOST-XXX"

| fieldsAdd lastWeek = lookup ([timeseries mem = avg(dt.host.memory.usage),   
  from:now() - 7d - 24h, to:now() - 7d,
  by:{dt.entity.host},
  filter: dt.entity.host == "HOST-XXX"],
  sourceField:dt.entity.host, lookupField:dt.entity.host)[mem]&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 08 Dec 2025 03:27:10 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/How-to-plot-a-graph-comparing-successful-API-hits-today-vs-same/m-p/290992#M2851</guid>
      <dc:creator>p_devulapalli</dc:creator>
      <dc:date>2025-12-08T03:27:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to plot a graph comparing successful API hits today vs. same day last week?</title>
      <link>https://community.dynatrace.com/t5/DQL/How-to-plot-a-graph-comparing-successful-API-hits-today-vs-same/m-p/290995#M2853</link>
      <description>&lt;P&gt;I could not make it in the mobile application context.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Dec 2025 08:08:36 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/How-to-plot-a-graph-comparing-successful-API-hits-today-vs-same/m-p/290995#M2853</guid>
      <dc:creator>subair-appakkan</dc:creator>
      <dc:date>2025-12-08T08:08:36Z</dc:date>
    </item>
  </channel>
</rss>

