# How to create a metric on Application side and define a dimension with String property?

**URL:** <https://community.dynatrace.com/t/how-to-create-a-metric-on-application-side-and-define-a-dimension-with-string-property/19179>\
**Category:** Dashboarding\
**Tags:** user-actions, request-attributes, dashboards-classic\
**Created:** [April 28, 2020, 5:28pm UTC](https://community.dynatrace.com/t/how-to-create-a-metric-on-application-side-and-define-a-dimension-with-string-property/19179 "2020-04-28T17:28:00Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![sureshKumarK](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/sureshkumark/32/11469_2.png) [@sureshKumarK](https://community.dynatrace.com/u/sureshKumarK)\
**Post date:** [April 28, 2020, 5:28pm UTC](https://community.dynatrace.com/t/how-to-create-a-metric-on-application-side-and-define-a-dimension-with-string-property/19179/1 "2020-04-28T17:28:00Z")

</div>

Hi, I am able to create a metric for Server-side requests and apply the dimension with a Requests attribute ‘AccountID’ so that I can do the search for an account id 1234 requests from the custom chart itself.

I am trying to implement the same from the Applications/User action standpoint. I am able to capture the Requests Attribute AccountID as a String property but not able to create the metric in the same way that I did for Server-side requests.

What I am trying to achieve is, by defining a dimension with String Property ‘AccountID’ on User actions [which is same as request attribute on Server side], plot the metric in a custom chart, and I should be able to apply a filter on String Property ‘AccountID’ = 1234 on the Chart filter.

Thanks in advance for your help.

---

<div class="post-metadata">

**Author:** ![ChadTurner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/chadturner/32/161_2.png) [@ChadTurner](https://community.dynatrace.com/u/ChadTurner)\
**Post date:** [April 28, 2020, 8:36pm UTC](https://community.dynatrace.com/t/how-to-create-a-metric-on-application-side-and-define-a-dimension-with-string-property/19179/2 "2020-04-28T20:36:44Z")

</div>

Since you have defined the string at the application level, you should be able to grab it and chart it from the User sessions and you can further customize it via the USQL

---

<div class="post-metadata">

**Author:** ![sureshKumarK](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/sureshkumark/32/11469_2.png) [@sureshKumarK](https://community.dynatrace.com/u/sureshKumarK)\
**Post date:** [April 28, 2020, 8:41pm UTC](https://community.dynatrace.com/t/how-to-create-a-metric-on-application-side-and-define-a-dimension-with-string-property/19179/3 "2020-04-28T20:41:02Z")

</div>

thanks [@Chad T.](https://answers.dynatrace.com/users/36422/view.html) so can’t we do the other way? plot it on custom chart and do the filter on chart for an account id.

---

<div class="post-metadata">

**Author:** ![sureshKumarK](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/sureshkumark/32/11469_2.png) [@sureshKumarK](https://community.dynatrace.com/u/sureshKumarK)\
**Post date:** [April 28, 2020, 8:59pm UTC](https://community.dynatrace.com/t/how-to-create-a-metric-on-application-side-and-define-a-dimension-with-string-property/19179/4 "2020-04-28T20:59:12Z")

</div>

[@Chad T.](https://answers.dynatrace.com/users/36422/view.html) Also, in USQL can we convert the p95 or AVG val to seconds? if so, that would be helpful.

---

<div class="post-metadata">

**Author:** ![ChadTurner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/chadturner/32/161_2.png) [@ChadTurner](https://community.dynatrace.com/u/ChadTurner)\
**Post date:** [April 29, 2020, 1:03pm UTC](https://community.dynatrace.com/t/how-to-create-a-metric-on-application-side-and-define-a-dimension-with-string-property/19179/5 "2020-04-29T13:03:45Z")

</div>

I dont see anything in the custom chart that defines any thing as a custom string property, so most likely not.

---

<div class="post-metadata">

**Author:** ![ChadTurner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/chadturner/32/161_2.png) [@ChadTurner](https://community.dynatrace.com/u/ChadTurner)\
**Post date:** [April 29, 2020, 1:05pm UTC](https://community.dynatrace.com/t/how-to-create-a-metric-on-application-side-and-define-a-dimension-with-string-property/19179/6 "2020-04-29T13:05:45Z")

</div>

I dont believe so, That may be coming out as a future enhancement. AS of now I am unable to find that in the USQL as an option.

---

<div class="post-metadata">

**Author:** ![sureshKumarK](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/sureshkumark/32/11469_2.png) [@sureshKumarK](https://community.dynatrace.com/u/sureshKumarK)\
**Post date:** [April 29, 2020, 1:46pm UTC](https://community.dynatrace.com/t/how-to-create-a-metric-on-application-side-and-define-a-dimension-with-string-property/19179/7 "2020-04-29T13:46:40Z")

</div>

ok. thank you!

---

<div class="post-metadata">

**Author:** ![sureshKumarK](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/sureshkumark/32/11469_2.png) [@sureshKumarK](https://community.dynatrace.com/u/sureshKumarK)\
**Post date:** [April 29, 2020, 1:47pm UTC](https://community.dynatrace.com/t/how-to-create-a-metric-on-application-side-and-define-a-dimension-with-string-property/19179/8 "2020-04-29T13:47:34Z")

</div>

yeah. looks like the aggregator is not being supported yet
