# Transform field dynamically

**URL:** <https://community.grafana.com/t/transform-field-dynamically/91289>\
**Category:** Dashboards\
**Tags:** elasticsearch\
**Created:** [July 11, 2023, 10:04am UTC](https://community.grafana.com/t/transform-field-dynamically/91289 "2023-07-11T10:04:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![amirad1](https://avatars.discourse-cdn.com/v4/letter/a/fbc32d/32.png) [@amirad1](https://community.grafana.com/u/amirad1)\
**Post date:** [July 11, 2023, 10:04am UTC](https://community.grafana.com/t/transform-field-dynamically/91289/1 "2023-07-11T10:04:46Z")

</div>

Hi  
I want to calculate total value of some fields in my grafana dashboard, I have done it with transformation - add field from calculation but name of these fields change in time and I have to set them dynamically by regex. For example anything with format of /api/test/\* calculate as one filed  
Is there anyway for it?

 ![api](https://us1.discourse-cdn.com/grafana/original/3X/0/d/0dd95d73fffddd0c14326112b02cda8e2df1b711.png)
