# Negate Multiple IBM MQ Local Queues in the Entity Selector

**URL:** <https://community.dynatrace.com/t/negate-multiple-ibm-mq-local-queues-in-the-entity-selector/47255>\
**Category:** Extensions\
**Tags:** tagging, extensions, ibm-mq\
**Created:** [August 22, 2024, 5:26am UTC](https://community.dynatrace.com/t/negate-multiple-ibm-mq-local-queues-in-the-entity-selector/47255 "2024-08-22T05:26:40Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Yosi\_Neuman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/yosi_neuman/32/9845_2.png) [@Yosi\_Neuman](https://community.dynatrace.com/u/Yosi_Neuman)\
**Post date:** [August 22, 2024, 3:55pm UTC](https://community.dynatrace.com/t/negate-multiple-ibm-mq-local-queues-in-the-entity-selector/47255/4 "2024-08-22T15:55:25Z")

</div>

Hו&nbsp;[@Babar\_Qayyum](https://community.dynatrace.com/user/22017)&nbsp; &&nbsp;[@Mohamed\_Hamdy](https://community.dynatrace.com/user/4007)

The follows work for me at customer site yesterday for metric selector:

```python
ibmmq.queue.depth
:filter(in("dt.entity.ibmmq:local_queue", 
entitySelector("
    type(~"ibmmq:local_queue~"),
    queue_manager(~"AAA.XXX.QMGR~"), 
    not(entityName.startsWith(~"QL.DMZ.COMPRETAIL.TO.PORTAL.INTERNET~")),
    not(entityName.startsWith(~"QL.DMZ.COMPRETAIL.TO.RETAIL~"))
    ")))
:splitBy("dt.entity.ibmmq:local_queue")

```

and for Tag by entity selector

```python
type("ibmmq:local_queue"),
queue_manager("AAA.BBB.QMGR"),
not(entityName.startsWith("QL.DMZ.COMPRETAIL.TO.PORTAL.INTERNET")),
not(entityName.startsWith("QL.DMZ.COMPRETAIL.TO.RETAIL"))

```

HTH

Yos

---

_[View the full topic](https://community.dynatrace.com/t/negate-multiple-ibm-mq-local-queues-in-the-entity-selector/47255)._
