# Grafana Variables data type

**URL:** <https://community.grafana.com/t/grafana-variables-data-type/69053>\
**Category:** Dashboards\
**Created:** [July 20, 2022, 6:33am UTC](https://community.grafana.com/t/grafana-variables-data-type/69053 "2022-07-20T06:33:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gautamtrikkadeeriext](https://avatars.discourse-cdn.com/v4/letter/g/54ee81/32.png) [@gautamtrikkadeeriext](https://community.grafana.com/u/gautamtrikkadeeriext)\
**Post date:** [July 20, 2022, 6:33am UTC](https://community.grafana.com/t/grafana-variables-data-type/69053/1 "2022-07-20T06:33:18Z")

</div>

Is grafana storing all dashboard variables in string format ? I tried giving integer values using a MongoDB query using the data source option in variable. But it is being recognised as a string instead of an integer.

---

<div class="post-metadata">

**Author:** ![anon70503803](https://avatars.discourse-cdn.com/v4/letter/a/8797f3/32.png) [@anon70503803](https://community.grafana.com/u/anon70503803)\
**Post date:** [July 28, 2022, 11:04pm UTC](https://community.grafana.com/t/grafana-variables-data-type/69053/2 "2022-07-28T23:04:30Z")

</div>

can you give more details on this?

Also you might want to explore the `Convert field type` transformation:

> **[Transformation functions](https://grafana.com/docs/grafana/next/panels/transform-data/transformation-functions/#convert-field-type)**
>
> Reference: Transformation functions You can perform the following transformations on your data.
> Add field from calculation Use this transformation to add a new field calculated from two other fields. Each transformation allows you to add one new...
