# Feasibility check data explorer code approach: add dimension {URL:Host} {Request:Name} ?

**URL:** <https://community.dynatrace.com/t/feasibility-check-data-explorer-code-approach-add-dimension-url-host-request-name/38079>\
**Category:** Dynatrace API\
**Tags:** dynatrace-managed, data-explorer, multidimensional-analysis\
**Created:** [January 19, 2023, 11:31pm UTC](https://community.dynatrace.com/t/feasibility-check-data-explorer-code-approach-add-dimension-url-host-request-name/38079 "2023-01-19T23:31:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![avrildong](https://avatars.discourse-cdn.com/v4/letter/a/9de0a6/32.png) [@avrildong](https://community.dynatrace.com/u/avrildong)\
**Post date:** [January 19, 2023, 11:31pm UTC](https://community.dynatrace.com/t/feasibility-check-data-explorer-code-approach-add-dimension-url-host-request-name/38079/1 "2023-01-19T23:31:39Z")

</div>

Our goal is to use “data explorer” coding approach to display multi-dimensional report without using custom metrics.

Use case:

#0.&nbsp; This code working in data explorer:

builtin:service.response.time:filter(and(or(in(“dt.entity.service”,entitySelector(“type(service),tag(~“test-dockercontainers:chnlsales-soe-ordering-ux-bridge-bff-pr-v\*-\*~”)”))))):splitBy():sort(value(auto,descending)):limit(100)

#1. Now we want to change&nbsp;type(service) to&nbsp;type(webrequest???) instead, so that we can get the statistics by dimension {URL:Host} {Request:Name}, then pin the report to dashboard.

Below syntax failed, what should be the correct one? is it feasible? Please note we TRY TO AVOID setup custom metrics which will cost us many extra DDU license charge.

builtin:service.response.time:filter(and(or(in(“dt.entity.service”,entitySelector(“type(webrequest???),tag(~“test-dockercontainers:chnlsales-soe-ordering-ux-bridge-bff-pr-v\*-\*~”)”))))):splitBy():sort(value(auto,descending)):limit(100)

Demo screenshots:

Figure1 \> Goal to get result like below:&nbsp;Split by dimension

 ![avrildong_0-1674170647112.png](https://global.discourse-cdn.com/dynatrace/original/3X/4/2/42f8304d43021deba6632ba0b9642fe3a5396224.png)

Figure2 \> we want to use “data explorer” coding approach to get results in Figure1

 ![avrildong_0-1674171127025.png](https://global.discourse-cdn.com/dynatrace/original/2X/b/ba89751aa333a162010b31e7b379b7e8a0a7657c.png)

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [January 20, 2023, 7:28am UTC](https://community.dynatrace.com/t/feasibility-check-data-explorer-code-approach-add-dimension-url-host-request-name/38079/2 "2023-01-20T07:28:25Z")

</div>

I recommend using Key Requests in your case which are designed for your purpose - charting metrics about particular requests.

The main differentiator many users are not aware of is that the MDA works with service request data (raw captured trace data) while Data Explorer works with metrics. Both serve different purposes.
