<?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 Sum Entities by Specific Tag Using DQL for Aggregated Insights in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/Sum-Entities-by-Specific-Tag-Using-DQL-for-Aggregated-Insights/m-p/283754#M2445</link>
    <description>&lt;P&gt;I am trying to create a report with a count of all the entities that have a specific tag value, and then *of those*, another specific value.&amp;nbsp; My current DQL looks like this:&lt;/P&gt;
&lt;P&gt;fetch dt.entity.host&lt;BR /&gt;| filter tags ~ "specific value 1"&lt;BR /&gt;| expand tags&lt;BR /&gt;| parse tags, """LD:Key ':' LD:Value"""&lt;BR /&gt;| summarize displayName = takeAny(entity.name),has_keyfield1=countif(Key=="keyfield1"),&amp;nbsp;has_keyfield2=countif(Key=="keyfield2"), by : id&lt;BR /&gt;| filter has_keyfield1==1&lt;BR /&gt;| summarize sum(has_keyfield1), sum(has_keyfield2)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This gets me the results, but it's quite tedious having to replace "dt.entity.host" with every other entity type. Is there a better way to search across every entity so that I can get all the counts I'm looking for, separated by entity type, in a single search?&lt;/P&gt;</description>
    <pubDate>Wed, 17 Dec 2025 13:22:34 GMT</pubDate>
    <dc:creator>TylerJVitale</dc:creator>
    <dc:date>2025-12-17T13:22:34Z</dc:date>
    <item>
      <title>Sum Entities by Specific Tag Using DQL for Aggregated Insights</title>
      <link>https://community.dynatrace.com/t5/DQL/Sum-Entities-by-Specific-Tag-Using-DQL-for-Aggregated-Insights/m-p/283754#M2445</link>
      <description>&lt;P&gt;I am trying to create a report with a count of all the entities that have a specific tag value, and then *of those*, another specific value.&amp;nbsp; My current DQL looks like this:&lt;/P&gt;
&lt;P&gt;fetch dt.entity.host&lt;BR /&gt;| filter tags ~ "specific value 1"&lt;BR /&gt;| expand tags&lt;BR /&gt;| parse tags, """LD:Key ':' LD:Value"""&lt;BR /&gt;| summarize displayName = takeAny(entity.name),has_keyfield1=countif(Key=="keyfield1"),&amp;nbsp;has_keyfield2=countif(Key=="keyfield2"), by : id&lt;BR /&gt;| filter has_keyfield1==1&lt;BR /&gt;| summarize sum(has_keyfield1), sum(has_keyfield2)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This gets me the results, but it's quite tedious having to replace "dt.entity.host" with every other entity type. Is there a better way to search across every entity so that I can get all the counts I'm looking for, separated by entity type, in a single search?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Dec 2025 13:22:34 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Sum-Entities-by-Specific-Tag-Using-DQL-for-Aggregated-Insights/m-p/283754#M2445</guid>
      <dc:creator>TylerJVitale</dc:creator>
      <dc:date>2025-12-17T13:22:34Z</dc:date>
    </item>
    <item>
      <title>Re: Sum All Entities With a Specific Tag</title>
      <link>https://community.dynatrace.com/t5/DQL/Sum-Entities-by-Specific-Tag-Using-DQL-for-Aggregated-Insights/m-p/284566#M2498</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/94448"&gt;@TylerJVitale&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;I spent some time searching, but I don’t think there’s such an option in &lt;STRONG&gt;DQL&lt;/STRONG&gt;. Maybe you can explain your case further as an idea for something like &lt;STRONG&gt;&lt;EM&gt;fetch entities&lt;/EM&gt;&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;What’s your exact use case? Perhaps you could use a workflow — get the list of all entities from the &lt;STRONG&gt;API&lt;/STRONG&gt;, and then pass them into the &lt;STRONG&gt;DQL&lt;/STRONG&gt; you already have?&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Deni&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Aug 2025 17:07:03 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Sum-Entities-by-Specific-Tag-Using-DQL-for-Aggregated-Insights/m-p/284566#M2498</guid>
      <dc:creator>deni</dc:creator>
      <dc:date>2025-08-22T17:07:03Z</dc:date>
    </item>
  </channel>
</rss>

