<?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 How can I Overlay bar chart on a line chart? in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/How-can-I-Overlay-bar-chart-on-a-line-chart/m-p/279396#M2202</link>
    <description>&lt;DIV&gt;please help me with this query&lt;BR /&gt;&lt;BR /&gt;fetch spans, samplingRatio: 1, scanLimitGBytes: 500&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;// if in "requests" mode&lt;/DIV&gt;
&lt;DIV&gt;| filter request.is_root_span == true AND isNotNull(endpoint.name)&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;// based on the applied filters&lt;/DIV&gt;
&lt;DIV&gt;| filter in(`dt.host_group.id`, { "fin-iac-rel-prod-atm-pr", "fin-iac-rel-prod-csp-pr", "csp", "fin-iac-rel-prod-cspi-pr" })&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;and (in(`k8s.workload.name`, { "wasp" })&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;OR in(`dt.kubernetes.workload.name`, { "wasp" }))&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;and in(`endpoint.name`, { "/wasp/api/transactions/authorisation", "/wasp/api/notifications", "authorise", "/wasp/api/transactions/completion" })&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;// calculate multiplicity based on sampling&lt;/DIV&gt;
&lt;DIV&gt;| fieldsAdd sampling.probability = (power(2, 56) - coalesce(sampling.threshold, 0)) * power(2, -56), sampling.multiplicity = 1/sampling.probability, multiplicity = coalesce(sampling.multiplicity, 1) * coalesce(aggregation.count, 1) * dt.system.sampling_ratio&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;// construct fields&lt;/DIV&gt;
&lt;DIV&gt;| fieldsAdd request.status_code = if(request.is_failed, "Failure", else: "Success")&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;// for multiplicity (due to sampling) sum() needs to be used instead of count()&lt;/DIV&gt;
&lt;DIV&gt;| fieldsAdd failedIf = if(request.status_code == "Failure", `multiplicity`, else: 0), successIf = if(request.status_code == "Success", `multiplicity`, else: 0)&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;| makeTimeseries {&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; failure = sum(failedIf, default: 0),&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; success = sum(successIf, default: 0),&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; avg = avg(duration),&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; p50 = median(duration),&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; p90 = percentile(duration, 90)&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; }, bins: 120, by: { dt.system.sampling_ratio }&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;In above DQL, how can I have success and failure as bar charts overlayed on the line chart but the y axis has different values for bar chart ?&lt;/DIV&gt;</description>
    <pubDate>Mon, 16 Jun 2025 06:36:33 GMT</pubDate>
    <dc:creator>virdavindersing</dc:creator>
    <dc:date>2025-06-16T06:36:33Z</dc:date>
    <item>
      <title>How can I Overlay bar chart on a line chart?</title>
      <link>https://community.dynatrace.com/t5/DQL/How-can-I-Overlay-bar-chart-on-a-line-chart/m-p/279396#M2202</link>
      <description>&lt;DIV&gt;please help me with this query&lt;BR /&gt;&lt;BR /&gt;fetch spans, samplingRatio: 1, scanLimitGBytes: 500&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;// if in "requests" mode&lt;/DIV&gt;
&lt;DIV&gt;| filter request.is_root_span == true AND isNotNull(endpoint.name)&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;// based on the applied filters&lt;/DIV&gt;
&lt;DIV&gt;| filter in(`dt.host_group.id`, { "fin-iac-rel-prod-atm-pr", "fin-iac-rel-prod-csp-pr", "csp", "fin-iac-rel-prod-cspi-pr" })&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;and (in(`k8s.workload.name`, { "wasp" })&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;OR in(`dt.kubernetes.workload.name`, { "wasp" }))&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;and in(`endpoint.name`, { "/wasp/api/transactions/authorisation", "/wasp/api/notifications", "authorise", "/wasp/api/transactions/completion" })&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;// calculate multiplicity based on sampling&lt;/DIV&gt;
&lt;DIV&gt;| fieldsAdd sampling.probability = (power(2, 56) - coalesce(sampling.threshold, 0)) * power(2, -56), sampling.multiplicity = 1/sampling.probability, multiplicity = coalesce(sampling.multiplicity, 1) * coalesce(aggregation.count, 1) * dt.system.sampling_ratio&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;// construct fields&lt;/DIV&gt;
&lt;DIV&gt;| fieldsAdd request.status_code = if(request.is_failed, "Failure", else: "Success")&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;// for multiplicity (due to sampling) sum() needs to be used instead of count()&lt;/DIV&gt;
&lt;DIV&gt;| fieldsAdd failedIf = if(request.status_code == "Failure", `multiplicity`, else: 0), successIf = if(request.status_code == "Success", `multiplicity`, else: 0)&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;| makeTimeseries {&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; failure = sum(failedIf, default: 0),&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; success = sum(successIf, default: 0),&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; avg = avg(duration),&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; p50 = median(duration),&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; p90 = percentile(duration, 90)&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; }, bins: 120, by: { dt.system.sampling_ratio }&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;In above DQL, how can I have success and failure as bar charts overlayed on the line chart but the y axis has different values for bar chart ?&lt;/DIV&gt;</description>
      <pubDate>Mon, 16 Jun 2025 06:36:33 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/How-can-I-Overlay-bar-chart-on-a-line-chart/m-p/279396#M2202</guid>
      <dc:creator>virdavindersing</dc:creator>
      <dc:date>2025-06-16T06:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: How can I Overlay bar chart on a line chart?</title>
      <link>https://community.dynatrace.com/t5/DQL/How-can-I-Overlay-bar-chart-on-a-line-chart/m-p/279435#M2206</link>
      <description>&lt;P&gt;I haven't run your query, but I will assume that it outputs multiple timeseries that you wish to visualize in a single panel using different chart types. If that is true, then you may not need to change your query at all.&lt;/P&gt;&lt;P&gt;You can combine different chart types by using the custom geometry option within the visualization settings.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="marco_irmer_0-1749850765898.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/28494i977E9DC5AF8F4318/image-size/medium?v=v2&amp;amp;px=400" role="button" title="marco_irmer_0-1749850765898.png" alt="marco_irmer_0-1749850765898.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I hope that helps.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jun 2025 21:39:42 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/How-can-I-Overlay-bar-chart-on-a-line-chart/m-p/279435#M2206</guid>
      <dc:creator>marco_irmer</dc:creator>
      <dc:date>2025-06-13T21:39:42Z</dc:date>
    </item>
  </channel>
</rss>

