# How to replace DQL dedup filter to use in Matcher DQL in Business event metric extraction

**URL:** <https://community.dynatrace.com/t/how-to-replace-dql-dedup-filter-to-use-in-matcher-dql-in-business-event-metric-extraction/49478>\
**Category:** DQL\
**Tags:** dql, dynatrace-managed, business-events\
**Created:** [December 23, 2024, 5:05pm UTC](https://community.dynatrace.com/t/how-to-replace-dql-dedup-filter-to-use-in-matcher-dql-in-business-event-metric-extraction/49478 "2024-12-23T17:05:04Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![mpundang](https://avatars.discourse-cdn.com/v4/letter/m/85f322/32.png) [@mpundang](https://community.dynatrace.com/u/mpundang)\
**Post date:** [December 23, 2024, 5:05pm UTC](https://community.dynatrace.com/t/how-to-replace-dql-dedup-filter-to-use-in-matcher-dql-in-business-event-metric-extraction/49478/1 "2024-12-23T17:05:04Z")

</div>

Hi everybody!

I´m trying to get a Matcher DQL query grouping by trace\_id value. When I use Notebook DQL, dedup is working well. But I need to use the query updating Matcher DQL syntaxis. Dedup is not valid in metric extraction.

DQL query in a Notebook:

fetch bizevents | filter event.provider == “Api Frontend”  
| filter transaction\_status\_exitoso == false  
| dedup trace\_id

I need to add a filter instead of dedup in Matcher DQL when I create the usiness event metric:

 ![mpundang_1-1734972486354.png](https://global.discourse-cdn.com/dynatrace/original/3X/1/e/1e933c5160087e6166ed90f65675ccbc1391a9b2.png)

---

_[View the full topic](https://community.dynatrace.com/t/how-to-replace-dql-dedup-filter-to-use-in-matcher-dql-in-business-event-metric-extraction/49478)._
