<?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: is it possible to show yesterday or previous data/logs but at the same time duranion should be pick from dashboad timeframe? in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/is-it-possible-to-show-yesterday-or-previous-data-logs-but-at/m-p/269406#M1679</link>
    <description>&lt;P&gt;Could you please share Document page to explore it ?&lt;/P&gt;</description>
    <pubDate>Thu, 06 Feb 2025 10:08:23 GMT</pubDate>
    <dc:creator>Tarunbt</dc:creator>
    <dc:date>2025-02-06T10:08:23Z</dc:date>
    <item>
      <title>is it possible to show yesterday or previous data/logs but at the same time duranion should be pick from dashboad timeframe?</title>
      <link>https://community.dynatrace.com/t5/DQL/is-it-possible-to-show-yesterday-or-previous-data-logs-but-at/m-p/269380#M1676</link>
      <description>&lt;P&gt;I want to create tile with day -1 or previous date but at the same time I want to use common dashboard timeframe.&lt;/P&gt;&lt;P&gt;Mean if I set 4 hours in dashboard time duration tile show yesterday's 4 hours data so that I can compare with today's data.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2025 08:58:13 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/is-it-possible-to-show-yesterday-or-previous-data-logs-but-at/m-p/269380#M1676</guid>
      <dc:creator>Tarunbt</dc:creator>
      <dc:date>2025-02-06T08:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: is it possible to show yesterday or previous data/logs but at the same time duranion should be pick from dashboad timeframe?</title>
      <link>https://community.dynatrace.com/t5/DQL/is-it-possible-to-show-yesterday-or-previous-data-logs-but-at/m-p/269399#M1677</link>
      <description>&lt;P&gt;There are 2 ways to approach it:&lt;/P&gt;&lt;P&gt;Yes, it is possible using special build-in variables:&amp;nbsp;$dt_timeframe_from and $dt_timeframe_to.&lt;BR /&gt;Use can use them explicitly in query to specify interesting time range as well as include them in expression which results in different time range as original.&lt;/P&gt;&lt;P&gt;In the query below I am going for timeframe 24h earlier then this specified in dashboard controls:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;fetch logs, from:toTimestamp($dt_timeframe_from)-24h, 
to: toTimestamp($dt_timeframe_to)-24h
| summarize m1=min(timestamp), m2=max(timestamp)&lt;/LI-CODE&gt;&lt;P&gt;Here is how result looks like. Left tile show results of same query without any time modification, so for last 30 minutes.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="krzysztof_hoja_0-1738833808175.png" style="width: 829px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/26242i8AE28ACD65D7BAE5/image-dimensions/829x174?v=v2" width="829" height="174" role="button" title="krzysztof_hoja_0-1738833808175.png" alt="krzysztof_hoja_0-1738833808175.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When dealing with timeseries you can also use shift: parameter, to go for time range different then specified, but in relation to it. Query below will contain 2 timeseries: current one and this from previous day, but "mapped" into current time, so results will be synchronized on chart:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;timeseries cpu=avg(dt.host.cpu.usage)
| append [
timeseries cpu=avg(dt.host.cpu.usage), shift: -24h
]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Result looks like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="krzysztof_hoja_1-1738834431784.png" style="width: 846px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/26246i7A3BA13C377AD02A/image-dimensions/846x313?v=v2" width="846" height="313" role="button" title="krzysztof_hoja_1-1738834431784.png" alt="krzysztof_hoja_1-1738834431784.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Please select X-axis-&amp;gt;Displayed timeframe-&amp;gt;Data to adjust x-axis to basic timeframe.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2025 09:35:37 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/is-it-possible-to-show-yesterday-or-previous-data-logs-but-at/m-p/269399#M1677</guid>
      <dc:creator>krzysztof_hoja</dc:creator>
      <dc:date>2025-02-06T09:35:37Z</dc:date>
    </item>
    <item>
      <title>Re: is it possible to show yesterday or previous data/logs but at the same time duranion should be pick from dashboad timeframe?</title>
      <link>https://community.dynatrace.com/t5/DQL/is-it-possible-to-show-yesterday-or-previous-data-logs-but-at/m-p/269403#M1678</link>
      <description>&lt;P&gt;Thanks, It is working as expected.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2025 09:58:20 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/is-it-possible-to-show-yesterday-or-previous-data-logs-but-at/m-p/269403#M1678</guid>
      <dc:creator>Tarunbt</dc:creator>
      <dc:date>2025-02-06T09:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: is it possible to show yesterday or previous data/logs but at the same time duranion should be pick from dashboad timeframe?</title>
      <link>https://community.dynatrace.com/t5/DQL/is-it-possible-to-show-yesterday-or-previous-data-logs-but-at/m-p/269406#M1679</link>
      <description>&lt;P&gt;Could you please share Document page to explore it ?&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2025 10:08:23 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/is-it-possible-to-show-yesterday-or-previous-data-logs-but-at/m-p/269406#M1679</guid>
      <dc:creator>Tarunbt</dc:creator>
      <dc:date>2025-02-06T10:08:23Z</dc:date>
    </item>
  </channel>
</rss>

