<?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 compare outputs of two DQL? in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/How-to-compare-outputs-of-two-DQL/m-p/214818#M77</link>
    <description>&lt;P&gt;&lt;A href="mailto:Hey@Philipp" target="_blank"&gt;Hey@Philipp&lt;/A&gt;&lt;BR /&gt;Thanks for responding,&lt;BR /&gt;Basically I want to compare metric for different timeframe.&lt;/P&gt;&lt;P&gt;I am fetching data from bizevent(fetch bizevent),currently I am able to&lt;/P&gt;&lt;P&gt;get data for specific single timeframe .&lt;BR /&gt;Now I need a tabular output where same metric can be monitored for two release(timeframe).&lt;/P&gt;&lt;P&gt;I also tried creating two seperate DQL for each timeframe, but didnt find way to merge those two column in single table&lt;BR /&gt;Here is some highlevel Expected output&lt;/P&gt;&lt;TABLE width="461px"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="231.172px"&gt;&lt;STRONG&gt;Application_metric_name&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="114.406px"&gt;&lt;STRONG&gt;Release1(2nd may)&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="114.422px"&gt;&lt;STRONG&gt;Release2(6th June)&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="231.172px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="114.406px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="114.422px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="231.172px"&gt;Authentication_avg_CPU_usage&lt;/TD&gt;&lt;TD width="114.406px"&gt;70%&lt;/TD&gt;&lt;TD width="114.422px"&gt;73%&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
    <pubDate>Tue, 13 Jun 2023 10:49:16 GMT</pubDate>
    <dc:creator>amita</dc:creator>
    <dc:date>2023-06-13T10:49:16Z</dc:date>
    <item>
      <title>How to compare outputs of two DQL?</title>
      <link>https://community.dynatrace.com/t5/DQL/How-to-compare-outputs-of-two-DQL/m-p/214783#M75</link>
      <description>&lt;P&gt;We have two DQL and want to compare both the outputs in single format. Unable to find suitable option.&lt;BR /&gt;Please do suggest.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2023 10:04:06 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/How-to-compare-outputs-of-two-DQL/m-p/214783#M75</guid>
      <dc:creator>amita</dc:creator>
      <dc:date>2023-06-13T10:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare outputs of two DQL?</title>
      <link>https://community.dynatrace.com/t5/DQL/How-to-compare-outputs-of-two-DQL/m-p/214806#M76</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/63691"&gt;@amita&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for reaching out. Can you please add some more details to your use case?&lt;BR /&gt;What data are you querying? How do you want to compare it? What would be a suitable representation for you etc.&lt;BR /&gt;&lt;BR /&gt;Thanks, Philipp&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2023 10:22:42 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/How-to-compare-outputs-of-two-DQL/m-p/214806#M76</guid>
      <dc:creator>Philipp_Kastner</dc:creator>
      <dc:date>2023-06-13T10:22:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare outputs of two DQL?</title>
      <link>https://community.dynatrace.com/t5/DQL/How-to-compare-outputs-of-two-DQL/m-p/214818#M77</link>
      <description>&lt;P&gt;&lt;A href="mailto:Hey@Philipp" target="_blank"&gt;Hey@Philipp&lt;/A&gt;&lt;BR /&gt;Thanks for responding,&lt;BR /&gt;Basically I want to compare metric for different timeframe.&lt;/P&gt;&lt;P&gt;I am fetching data from bizevent(fetch bizevent),currently I am able to&lt;/P&gt;&lt;P&gt;get data for specific single timeframe .&lt;BR /&gt;Now I need a tabular output where same metric can be monitored for two release(timeframe).&lt;/P&gt;&lt;P&gt;I also tried creating two seperate DQL for each timeframe, but didnt find way to merge those two column in single table&lt;BR /&gt;Here is some highlevel Expected output&lt;/P&gt;&lt;TABLE width="461px"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="231.172px"&gt;&lt;STRONG&gt;Application_metric_name&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="114.406px"&gt;&lt;STRONG&gt;Release1(2nd may)&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="114.422px"&gt;&lt;STRONG&gt;Release2(6th June)&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="231.172px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="114.406px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="114.422px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="231.172px"&gt;Authentication_avg_CPU_usage&lt;/TD&gt;&lt;TD width="114.406px"&gt;70%&lt;/TD&gt;&lt;TD width="114.422px"&gt;73%&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Tue, 13 Jun 2023 10:49:16 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/How-to-compare-outputs-of-two-DQL/m-p/214818#M77</guid>
      <dc:creator>amita</dc:creator>
      <dc:date>2023-06-13T10:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare outputs of two DQL?</title>
      <link>https://community.dynatrace.com/t5/DQL/How-to-compare-outputs-of-two-DQL/m-p/214897#M78</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/63691"&gt;@amita&lt;/a&gt;&amp;nbsp;thanks for the details.&lt;BR /&gt;One way you likely already figured out is putting two separate queries next to each on a dashboard, for example, via a single-value tile.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Philipp_Kastner_0-1686722003785.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/12221i961AE3C4A1FB74CB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Philipp_Kastner_0-1686722003785.png" alt="Philipp_Kastner_0-1686722003785.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;If you need to merge the result, you could leverage the &lt;A href="https://www.dynatrace.com/support/help/shortlink/dql-commands#lookup" target="_self"&gt;lookup&lt;/A&gt; command as a workaround.&amp;nbsp;&lt;BR /&gt;Example query:&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;fetch bizevents, from:now()-7d
| summarize this_week = avg(toDouble(amount))
| fieldsAdd helper="test"
| lookup [ fetch  bizevents, from:now()-14d, to:-7d
           | summarize previous_week = avg(toDouble(amount)) 
           | fieldsAdd  helper="test"]
         , sourceField:helper, lookupField:helper
| fieldsRemove helper, lookup.helper
| fieldsRename lookup.previous_week, alias:previous_week&lt;/LI-CODE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Philipp_Kastner_1-1686722298648.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/12222i3722547023D8A436/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Philipp_Kastner_1-1686722298648.png" alt="Philipp_Kastner_1-1686722298648.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Kind regards, Philipp&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2023 05:59:48 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/How-to-compare-outputs-of-two-DQL/m-p/214897#M78</guid>
      <dc:creator>Philipp_Kastner</dc:creator>
      <dc:date>2023-06-14T05:59:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare outputs of two DQL?</title>
      <link>https://community.dynatrace.com/t5/DQL/How-to-compare-outputs-of-two-DQL/m-p/215051#M79</link>
      <description>&lt;P&gt;Hey, Philipp&lt;/P&gt;&lt;P&gt;Thanks for quick response,&lt;/P&gt;&lt;P&gt;It worked for me. I am able to fetch metric for two different timeframe.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,Amita&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2023 07:32:24 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/How-to-compare-outputs-of-two-DQL/m-p/215051#M79</guid>
      <dc:creator>amita</dc:creator>
      <dc:date>2023-06-15T07:32:24Z</dc:date>
    </item>
  </channel>
</rss>

