# How to split a user session custom metric by city?

**URL:** <https://community.dynatrace.com/t/how-to-split-a-user-session-custom-metric-by-city/50945>\
**Category:** Real User Monitoring\
**Tags:** real-user-monitoring-classic, dynatrace-managed, user-actions, user-sessions\
**Created:** [March 28, 2025, 8:04am UTC](https://community.dynatrace.com/t/how-to-split-a-user-session-custom-metric-by-city/50945 "2025-03-28T08:04:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Doaa\_Sobhy](https://avatars.discourse-cdn.com/v4/letter/d/e47774/32.png) [@Doaa\_Sobhy](https://community.dynatrace.com/u/Doaa_Sobhy)\
**Post date:** [March 28, 2025, 8:04am UTC](https://community.dynatrace.com/t/how-to-split-a-user-session-custom-metric-by-city/50945/1 "2025-03-28T08:04:45Z")

</div>

Dear All,

I want to display the user experience score in a dashboard and **split the results by the city** not by the region.

I created a custom user session metric with dimensions: region, useraction.application and userExperienceScore

and when I tried to add extra dimension: **city** , it gave me an error: [_ **Filed is not a valid dimension, Only non-numeric fields with low cardinality are allowed as dimension** _]

please, help me

---

<div class="post-metadata">

**Author:** ![Doaa\_Sobhy](https://avatars.discourse-cdn.com/v4/letter/d/e47774/32.png) [@Doaa\_Sobhy](https://community.dynatrace.com/u/Doaa_Sobhy)\
**Post date:** [March 28, 2025, 9:57am UTC](https://community.dynatrace.com/t/how-to-split-a-user-session-custom-metric-by-city/50945/2 "2025-03-28T09:57:41Z")

</div>

[Create USQL custom metrics for web applications — Dynatrace Docs](https://docs.dynatrace.com/docs/observe/digital-experience/web-applications/additional-configuration/custom-metrics-from-user-sessions#dimensions-uscm)

regarding to DT document&nbsp;**[city]** can’t use as a dimension for the user session custom metric

we can use USQL to get all information with [city] and pin the result as a table in a dashboard
