<?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 Result in Percentage of service in a single query in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/Result-in-Percentage-of-service-in-a-single-query/m-p/293213#M3048</link>
    <description>&lt;P&gt;i wants to check % of success and failure in my query these are (0","1","200","1001","2001","5001","5450")success code rest are all error code , so how can i get % of service in succes and failure respectively .&lt;BR /&gt;with this query i am achhieving counts of error code ,so it possible to get success and failure counts with % of success and failed one . Please help me to resolve this issue .&lt;/P&gt;
&lt;P&gt;fetch logs,scanLimitGBytes:-1&lt;BR /&gt;| filter dt.system.bucket=="engineering" and index == "db"&lt;BR /&gt;| filter Market == "IND"&lt;BR /&gt;| filter not in (ResultCode,array ("0","1","200","1001","2001","5001","5450"))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;| summarize count(),by:{TransactionType,ResultCode,ApiName}&lt;BR /&gt;|dedup TransactionType&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/25373"&gt;@krzysztof_hoja&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 19 Jan 2026 07:54:01 GMT</pubDate>
    <dc:creator>kumarv14</dc:creator>
    <dc:date>2026-01-19T07:54:01Z</dc:date>
    <item>
      <title>Result in Percentage of service in a single query</title>
      <link>https://community.dynatrace.com/t5/DQL/Result-in-Percentage-of-service-in-a-single-query/m-p/293213#M3048</link>
      <description>&lt;P&gt;i wants to check % of success and failure in my query these are (0","1","200","1001","2001","5001","5450")success code rest are all error code , so how can i get % of service in succes and failure respectively .&lt;BR /&gt;with this query i am achhieving counts of error code ,so it possible to get success and failure counts with % of success and failed one . Please help me to resolve this issue .&lt;/P&gt;
&lt;P&gt;fetch logs,scanLimitGBytes:-1&lt;BR /&gt;| filter dt.system.bucket=="engineering" and index == "db"&lt;BR /&gt;| filter Market == "IND"&lt;BR /&gt;| filter not in (ResultCode,array ("0","1","200","1001","2001","5001","5450"))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;| summarize count(),by:{TransactionType,ResultCode,ApiName}&lt;BR /&gt;|dedup TransactionType&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/25373"&gt;@krzysztof_hoja&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jan 2026 07:54:01 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Result-in-Percentage-of-service-in-a-single-query/m-p/293213#M3048</guid>
      <dc:creator>kumarv14</dc:creator>
      <dc:date>2026-01-19T07:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: Result in Percentage of service in a single query</title>
      <link>https://community.dynatrace.com/t5/DQL/Result-in-Percentage-of-service-in-a-single-query/m-p/293219#M3051</link>
      <description>&lt;P&gt;@&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;krzysztof_hoja could you please check my table data which one are for success and failure respectively i wants in a single table % of success and failure with counts of total and failed .&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 16 Jan 2026 12:30:37 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Result-in-Percentage-of-service-in-a-single-query/m-p/293219#M3051</guid>
      <dc:creator>kumarv14</dc:creator>
      <dc:date>2026-01-16T12:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: Result in Percentage of service in a single query</title>
      <link>https://community.dynatrace.com/t5/DQL/Result-in-Percentage-of-service-in-a-single-query/m-p/293647#M3078</link>
      <description>&lt;P&gt;I hope this example explains how to do this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;data 
record(ResultCode="0", TransactionType="A"),
record(ResultCode="0", TransactionType="A"),
record(ResultCode="0", TransactionType="A"),
record(ResultCode="1", TransactionType="A"),

record(ResultCode="0", TransactionType="B"),
record(ResultCode="1", TransactionType="B"),
record(ResultCode="0", TransactionType="B"),
record(ResultCode="1", TransactionType="B")

| summarize { ci=countIf(in(ResultCode,{"1"})),
c = count() }, by: {TransactionType}
| fieldsAdd p = 100.0*ci/c&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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_0-1769450664891.png" style="width: 779px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/31747iC42F242016370EFE/image-dimensions/779x709?v=v2" width="779" height="709" role="button" title="krzysztof_hoja_0-1769450664891.png" alt="krzysztof_hoja_0-1769450664891.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jan 2026 18:04:49 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Result-in-Percentage-of-service-in-a-single-query/m-p/293647#M3078</guid>
      <dc:creator>krzysztof_hoja</dc:creator>
      <dc:date>2026-01-26T18:04:49Z</dc:date>
    </item>
    <item>
      <title>Re: Result in Percentage of service in a single query</title>
      <link>https://community.dynatrace.com/t5/DQL/Result-in-Percentage-of-service-in-a-single-query/m-p/293922#M3109</link>
      <description>&lt;P&gt;Hello ,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wants to check these counts in last 7 days but wants days in column and hours in row side , how is it possible ? currently using below query .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;fetch logs, scanLimitGBytes:-1&lt;BR /&gt;| filter dt.system.bucket=="custom" and index == "db"&lt;BR /&gt;| filter Market=="India"&lt;BR /&gt;| filter TransactionType == "Authentication"&lt;BR /&gt;|fieldsAdd Date = formatTimestamp(timestamp, format: "yyyy-MM-dd: hh" )&lt;BR /&gt;|summarize count() ,by:{Date}&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kumarv14_0-1769771167383.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/31817i4505A503CC43E29F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kumarv14_0-1769771167383.png" alt="kumarv14_0-1769771167383.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jan 2026 11:08:38 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Result-in-Percentage-of-service-in-a-single-query/m-p/293922#M3109</guid>
      <dc:creator>kumarv14</dc:creator>
      <dc:date>2026-01-30T11:08:38Z</dc:date>
    </item>
  </channel>
</rss>

