<?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: Using the AND Operator For Multiple Filter Conditions in Dashboarding</title>
    <link>https://community.dynatrace.com/t5/Dashboarding/Using-the-AND-Operator-For-Multiple-Filter-Conditions/m-p/224769#M3319</link>
    <description>&lt;P&gt;If you need a host to have both the tags&amp;nbsp;&lt;STRONG&gt;TYPE:Oracle Database Server&lt;/STRONG&gt; and&amp;nbsp;&lt;STRONG&gt;Capability:Global Money Transfer&lt;/STRONG&gt;, then you can merge your filters in step 4 and 5 with an and as you suggest in the following way:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;:filter(and(in("dt.entity.host", entitySelector("type(~"HOST~"),tag(~"TYPE:Oracle Database Server~")")),&lt;SPAN&gt;in("dt.entity.host", entitySelector("type(~"HOST~"),tag(~"Capability:Global Money Transfer~")")))&lt;/SPAN&gt;)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If you need hosts that have&amp;nbsp;&lt;STRONG&gt;any&lt;/STRONG&gt; of the tags, then you can just do:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;:filter(in("dt.entity.host", entitySelector("type(~"HOST~"),tag(~"TYPE:Oracle Database Server~",&lt;SPAN&gt;~"Capability:Global Money Transfer~"&lt;/SPAN&gt;)")))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Hopefully this helps.&lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 06 Oct 2023 16:10:48 GMT</pubDate>
    <dc:creator>victor_balbuena</dc:creator>
    <dc:date>2023-10-06T16:10:48Z</dc:date>
    <item>
      <title>Using the AND Operator For Multiple Filter Conditions</title>
      <link>https://community.dynatrace.com/t5/Dashboarding/Using-the-AND-Operator-For-Multiple-Filter-Conditions/m-p/224767#M3318</link>
      <description>&lt;P&gt;I need to run a query with 3 conditions for the ":filter" command, and I am having a hard time with the syntax.&lt;BR /&gt;&lt;BR /&gt;This is the base query that I am working off of:&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;1&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;builtin:tech.generic.mem.workingSetSize&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;2&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;:filter(in("dt.entity.process_group_instance",entitySelector("type(process_group_instance),entityName(~"Oracle Database~")")))&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;3&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;:parents:splitBy("dt.entity.host"):avg:sort(value(avg,descending))&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;4&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;:filter(in("dt.entity.host", entitySelector("type(~"HOST~"),tag(~"TYPE:Oracle Database Server~")")))&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;It returns all results without any issues, but I need to add another condition for filtering. I have built the condition separately and I have tried to add the line below, to no avail:&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;5&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;&lt;SPAN&gt;:filter(in("dt.entity.host", entitySelector("type(~"HOST~"),tag(~"Capability:Global Money Transfer~")")))&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;I am assuming that there might be a conflict between the multiple ":filter" instances and the way around would be using the AND operator, but I am struggling so hard with the syntax that I was hoping to get a little guidance from the community.&lt;/P&gt;</description>
      <pubDate>Sun, 08 Oct 2023 12:33:37 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dashboarding/Using-the-AND-Operator-For-Multiple-Filter-Conditions/m-p/224767#M3318</guid>
      <dc:creator>victor_correa</dc:creator>
      <dc:date>2023-10-08T12:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: Using the AND Operator For Multiple Filter Conditions</title>
      <link>https://community.dynatrace.com/t5/Dashboarding/Using-the-AND-Operator-For-Multiple-Filter-Conditions/m-p/224769#M3319</link>
      <description>&lt;P&gt;If you need a host to have both the tags&amp;nbsp;&lt;STRONG&gt;TYPE:Oracle Database Server&lt;/STRONG&gt; and&amp;nbsp;&lt;STRONG&gt;Capability:Global Money Transfer&lt;/STRONG&gt;, then you can merge your filters in step 4 and 5 with an and as you suggest in the following way:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;:filter(and(in("dt.entity.host", entitySelector("type(~"HOST~"),tag(~"TYPE:Oracle Database Server~")")),&lt;SPAN&gt;in("dt.entity.host", entitySelector("type(~"HOST~"),tag(~"Capability:Global Money Transfer~")")))&lt;/SPAN&gt;)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If you need hosts that have&amp;nbsp;&lt;STRONG&gt;any&lt;/STRONG&gt; of the tags, then you can just do:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;:filter(in("dt.entity.host", entitySelector("type(~"HOST~"),tag(~"TYPE:Oracle Database Server~",&lt;SPAN&gt;~"Capability:Global Money Transfer~"&lt;/SPAN&gt;)")))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Hopefully this helps.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Oct 2023 16:10:48 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dashboarding/Using-the-AND-Operator-For-Multiple-Filter-Conditions/m-p/224769#M3319</guid>
      <dc:creator>victor_balbuena</dc:creator>
      <dc:date>2023-10-06T16:10:48Z</dc:date>
    </item>
    <item>
      <title>Re: Using the AND Operator For Multiple Filter Conditions</title>
      <link>https://community.dynatrace.com/t5/Dashboarding/Using-the-AND-Operator-For-Multiple-Filter-Conditions/m-p/224778#M3320</link>
      <description>&lt;P&gt;Hey Victor,&lt;BR /&gt;&lt;BR /&gt;Thanks for replying. I guess the Victors stay together. LoL&lt;BR /&gt;&lt;BR /&gt;I have tried the query with the AND operator, but for some reason, it doesn't return any data. I ended up using Dynamic Filters for the Capability, since the value would be universal for all tiles in the Dashboard, so I don't need the filter in the query themselves.&lt;BR /&gt;&lt;BR /&gt;But I appreciate you taking the time to help out.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Oct 2023 18:56:50 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dashboarding/Using-the-AND-Operator-For-Multiple-Filter-Conditions/m-p/224778#M3320</guid>
      <dc:creator>victor_correa</dc:creator>
      <dc:date>2023-10-06T18:56:50Z</dc:date>
    </item>
  </channel>
</rss>

