# Use DQL Processor for Metrics Transformation and Analysis

**URL:** <https://community.dynatrace.com/t/use-dql-processor-for-metrics-transformation-and-analysis/53428>\
**Category:** DQL\
**Tags:** openpipeline, dql, dynatrace-managed\
**Created:** [September 19, 2025, 4:27pm UTC](https://community.dynatrace.com/t/use-dql-processor-for-metrics-transformation-and-analysis/53428 "2025-09-19T16:27:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![36Krazyfists](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/36krazyfists/32/37434_2.png) [@36Krazyfists](https://community.dynatrace.com/u/36Krazyfists)\
**Post date:** [September 19, 2025, 4:27pm UTC](https://community.dynatrace.com/t/use-dql-processor-for-metrics-transformation-and-analysis/53428/1 "2025-09-19T16:27:51Z")

</div>

Now, I’m not talking about extracting metrics from a log or an event.&nbsp; I know how to do that very well.

What I’m talking about is, in OpenPipeline, you can create pipelines for Metrics where you can apply processors to them (like add/remove/change dimensions or values).

What I need to understand is how that should be done in OpenPipeline.

With a logs processor for example, if you add a DQL processor, the pipeline already does the beginning of the DQL query for you:

```markup
fetch logs
| filter <whatever your match condition is>
|

```

and, in the OpenPipeline box, you are putting in whatever you would put after that **|**

But, you don’t fetch metrics in DQL.&nbsp; You use the **timeseries** command, so, if I want to add a new dimension based on the value of an existing metric dimension, what do I need to put in the Match condition to make sure I’m processing the desired metric and what do I need to put in the DQL box to get the existing dimension values and add a new dimension?

Say I have a metric called:

**metric\_a**

And it has a dimension called **order\_type** with possible values of “ **M** ” and “ **L** ”

I want to add a new dimension called **order\_description** that has a value of “ **Market**  **Order** ” where **order\_type** = “ **M** ” and “ **Limit Order** ” where **order\_type** = “ **L** ”.

I know how to do that in Notebooks DQL by using the **timeseries** command and selecting the metric named **metric\_a** and making sure I use the **order\_type** dimension in the **by:{}** property and then using a **fieldsAdd** command with an **if** clause.

But, since I don’t know what OpenPipeline has already done ahead of time for me, I don’t know where I’m picking up at for both the filter and the actual adding of the dimension…

**Can somebody share an example of an OpenPipeline processor for Metrics that adds a new dimension based on an existing metric dimension?**

---

<div class="post-metadata">

**Author:** ![izabelarokita](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/izabelarokita/32/41812_2.png) [@izabelarokita](https://community.dynatrace.com/u/izabelarokita)\
**Post date:** [December 17, 2025, 10:13am UTC](https://community.dynatrace.com/t/use-dql-processor-for-metrics-transformation-and-analysis/53428/2 "2025-12-17T10:13:22Z")

</div>

Hey&nbsp;[@36Krazyfists](https://community.dynatrace.com/user/41155)&nbsp;,  
I just wanted to check in and see if you still need help with this. If so, I’d be happy to look into it for you!&nbsp;:blush:  
Please let me know what works best for you.
