<?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: Join DQL fields in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/Join-DQL-fields/m-p/278634#M2161</link>
    <description>&lt;P&gt;Another way to accomplish this would be to add the dt.entity.host dimension to the timeseries query, and then use the entityAttr() function to retrieve the osType field value.&lt;/P&gt;&lt;P&gt;The query looks like this:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;timeseries avg(dt.osservice.availability),
  by: { dt.entity.host, host.name, dt.osservice.status, dt.osservice.startup_type, dt.osservice.name, osType},
  filter: { NOT in(dt.osservice.status, array("active", "running")) }
| fieldsAdd entityAttr(dt.entity.host,"osType")&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 03 Jun 2025 22:09:04 GMT</pubDate>
    <dc:creator>marco_irmer</dc:creator>
    <dc:date>2025-06-03T22:09:04Z</dc:date>
    <item>
      <title>Join DQL fields</title>
      <link>https://community.dynatrace.com/t5/DQL/Join-DQL-fields/m-p/278600#M2159</link>
      <description>&lt;P&gt;I have the following DQL with which I get information about the hosts and the activity of their services.&lt;/P&gt;&lt;P&gt;timeseries avg(dt.osservice.availability)&lt;BR /&gt;by: { host.name, dt.osservice.status, dt.osservice.startup_type, dt.osservice.name}&lt;BR /&gt;filter: { NOT matchesValue(dt.osservice.status, { “active”, “running” }) }&lt;/P&gt;&lt;P&gt;I want to get out what OS the host listed in my DQL has.&lt;/P&gt;&lt;P&gt;I've tried something like this but it doesn't match it, any solution?&lt;/P&gt;&lt;P&gt;timeseries avg(dt.osservice.availability)&lt;BR /&gt;by: { host.name, dt.osservice.status, dt.osservice.startup_type, dt.osservice.name, osType}&lt;BR /&gt;filter: { NOT matchesValue(dt.osservice.status, { “active”, “running” }) }&lt;BR /&gt;| expand host.name&lt;BR /&gt;| lookup [fetch dt.entity.host], sourceField:host.name, lookupField:osType&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jun 2025 15:06:15 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Join-DQL-fields/m-p/278600#M2159</guid>
      <dc:creator>Pablo2</dc:creator>
      <dc:date>2025-06-03T15:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: Join DQL fields</title>
      <link>https://community.dynatrace.com/t5/DQL/Join-DQL-fields/m-p/278614#M2160</link>
      <description>&lt;P&gt;Try this:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;timeseries avg(dt.osservice.availability),
  by: { host.name, dt.osservice.status, dt.osservice.startup_type, dt.osservice.name, osType},
  filter: { NOT in(dt.osservice.status, array("active", "running")) }
| expand host.name
| lookup [fetch dt.entity.host], sourceField:host.name, lookupField:entity.name, fields:{osType}&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 03 Jun 2025 16:42:32 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Join-DQL-fields/m-p/278614#M2160</guid>
      <dc:creator>StrangerThing</dc:creator>
      <dc:date>2025-06-03T16:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: Join DQL fields</title>
      <link>https://community.dynatrace.com/t5/DQL/Join-DQL-fields/m-p/278634#M2161</link>
      <description>&lt;P&gt;Another way to accomplish this would be to add the dt.entity.host dimension to the timeseries query, and then use the entityAttr() function to retrieve the osType field value.&lt;/P&gt;&lt;P&gt;The query looks like this:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;timeseries avg(dt.osservice.availability),
  by: { dt.entity.host, host.name, dt.osservice.status, dt.osservice.startup_type, dt.osservice.name, osType},
  filter: { NOT in(dt.osservice.status, array("active", "running")) }
| fieldsAdd entityAttr(dt.entity.host,"osType")&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 03 Jun 2025 22:09:04 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Join-DQL-fields/m-p/278634#M2161</guid>
      <dc:creator>marco_irmer</dc:creator>
      <dc:date>2025-06-03T22:09:04Z</dc:date>
    </item>
  </channel>
</rss>

