<?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 custom and dynamic timeframe data explorer in Dashboarding</title>
    <link>https://community.dynatrace.com/t5/Dashboarding/custom-and-dynamic-timeframe-data-explorer/m-p/248667#M4055</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I want to configure a tile with data explorer and set a comparison metric between 1 week ago and the week preceding it dynamically (without setting a custom timeframe manually).&lt;/P&gt;
&lt;P&gt;I found that i could insert a timeshift in the advanced mode of data explorer, but if i set 1w or 2w, it takes all the values from now to 1 or 2 weeks a go. And what i want to produce is an interval from 2w ago to 1w ago, and then from 1&amp;nbsp;week ago to now to have a comparison between the two following weeks.&lt;/P&gt;
&lt;P&gt;Is it possible with something like timeshift(2w to 1w)&amp;nbsp; &lt;SPAN&gt;or is there no way to do it ?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 20 Jun 2024 06:21:36 GMT</pubDate>
    <dc:creator>Sonia_A</dc:creator>
    <dc:date>2024-06-20T06:21:36Z</dc:date>
    <item>
      <title>custom and dynamic timeframe data explorer</title>
      <link>https://community.dynatrace.com/t5/Dashboarding/custom-and-dynamic-timeframe-data-explorer/m-p/248667#M4055</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I want to configure a tile with data explorer and set a comparison metric between 1 week ago and the week preceding it dynamically (without setting a custom timeframe manually).&lt;/P&gt;
&lt;P&gt;I found that i could insert a timeshift in the advanced mode of data explorer, but if i set 1w or 2w, it takes all the values from now to 1 or 2 weeks a go. And what i want to produce is an interval from 2w ago to 1w ago, and then from 1&amp;nbsp;week ago to now to have a comparison between the two following weeks.&lt;/P&gt;
&lt;P&gt;Is it possible with something like timeshift(2w to 1w)&amp;nbsp; &lt;SPAN&gt;or is there no way to do it ?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2024 06:21:36 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dashboarding/custom-and-dynamic-timeframe-data-explorer/m-p/248667#M4055</guid>
      <dc:creator>Sonia_A</dc:creator>
      <dc:date>2024-06-20T06:21:36Z</dc:date>
    </item>
    <item>
      <title>Re: custom and dynaic time frame data explorer</title>
      <link>https://community.dynatrace.com/t5/Dashboarding/custom-and-dynamic-timeframe-data-explorer/m-p/248696#M4056</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/76622"&gt;@Sonia_A&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;This can be done with DQL. You can convert your query to DQL using notebooks. Please refer to this article.&lt;BR /&gt;&lt;A href="https://community.dynatrace.com/t5/Dynatrace-tips/Easily-convert-Data-explorer-queries-to-dql-for-Dashboards/m-p/243349" target="_blank"&gt;Re: Easily convert Data explorer queries to dql for Dashboards, Notebooks and other apps - Dynatrace Community&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Then for the timeframe conversion you can use something like this in your DQL which gives you data for the timeframe you requested.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;timeseries sum(dt.cloud.aws.alb.errors.alb.http4xx), by:{dt.source_entity.type, dt.source_entity, dt.entity.aws_application_load_balancer, aws.resource.name, aws.region, aws.credentials, aws.account.id, metric.key, dt.system.bucket},interval:1h, from: bin(now()-14d, 1d) , to: bin(now()-7d, 1d)
| fieldsAdd dt.entity.aws_application_load_balancer.name = entityName(dt.entity.aws_application_load_balancer)
| limit 20&lt;/LI-CODE&gt;&lt;P&gt;Here the part&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;interval:1h, from: bin(now()-14d, 1d) , to: bin(now()-7d, 1d)&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;is the timeframe selector which gives you data of last week. We wrap the time interval in "bin" to round it off to the start of the day.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/76275"&gt;@Maheedhar_T&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2024 19:53:28 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dashboarding/custom-and-dynamic-timeframe-data-explorer/m-p/248696#M4056</guid>
      <dc:creator>Maheedhar_T</dc:creator>
      <dc:date>2024-06-19T19:53:28Z</dc:date>
    </item>
  </channel>
</rss>

