# Remove double quotes from \_\_table Timestream variable

**URL:** <https://community.grafana.com/t/remove-double-quotes-from-table-timestream-variable/106974>\
**Category:** Dashboards\
**Tags:** dashboard-variables, aws-timestream\
**Created:** [November 2, 2023, 5:23pm UTC](https://community.grafana.com/t/remove-double-quotes-from-table-timestream-variable/106974 "2023-11-02T17:23:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jasonanchia](https://avatars.discourse-cdn.com/v4/letter/j/dec6dc/32.png) [@jasonanchia](https://community.grafana.com/u/jasonanchia)\
**Post date:** [November 2, 2023, 5:23pm UTC](https://community.grafana.com/t/remove-double-quotes-from-table-timestream-variable/106974/1 "2023-11-02T17:23:04Z")

</div>

```bash
Grafana v10.0.2 Aws managed
DB: Timestream

```

Hey all, I’m trying to create a select statement where part of the table name comes from a variable value.  
The query would be something like

```auto
select *
FROM $ __database.$__ table_$some_variable
etc

```

and hopefully result in something like this:  
`select * FROM "myDB"."myTable_option_a"`

**the problem** is that the Macro value `$__table` is always inserted with double quotes, so the actual Grafana-generated query looks like this:

`select * FROM "myDB"."myTable"_option_a`

which of course fails.  
I’ve tried using `${ __table:text/csv/values/etc}`, `$__ table:raw`, `${ __table}`, `$__ table`, etc  
as suggested [here](https://grafana.com/docs/grafana/latest/dashboards/variables/variable-syntax/), which seem to work fine with normal variables but for some reason don’t work with this macro variable – it always has double quotes.

In fact, it seems ${\_\_database} is not resolved to a variable.  
No double-underscored variable works with that format.

![imagen](https://us1.discourse-cdn.com/grafana/original/3X/d/c/dcb0d0caa5abcb09e79245282750ce9d155aca42.png)  
generated query:  
 ![imagen](https://us1.discourse-cdn.com/grafana/original/3X/4/a/4aeea030d3336d3292bfc8f853bcf8ae0bf83e42.png)  
(notice how the table still includes the double quotes)
