# Gen3 Dashboard Variables - Display label different from value in Query-type variables

**URL:** <https://community.dynatrace.com/t/gen3-dashboard-variables-display-label-different-from-value-in-query-type-variables/56004>\
**Category:** DQL\
**Tags:** dql, variables, dashboards\
**Created:** [May 26, 2026, 7:14am UTC](https://community.dynatrace.com/t/gen3-dashboard-variables-display-label-different-from-value-in-query-type-variables/56004 "2026-05-26T07:14:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![VictorRuiz](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/victorruiz/32/32860_2.png) [@VictorRuiz](https://community.dynatrace.com/u/VictorRuiz)\
**Post date:** [May 26, 2026, 7:14am UTC](https://community.dynatrace.com/t/gen3-dashboard-variables-display-label-different-from-value-in-query-type-variables/56004/1 "2026-05-26T07:14:45Z")

</div>

Hi Community,  
I’m working with Gen3 Dashboards and I’m facing a challenge with Query-type variables where I need to:

- Display a human-readable name to the user (e.g. SERVICE-BPM-Procesar)
- Use the entity ID in tile queries (e.g. SERVICE-E43178F49BBABF09)

**Context**  
I have a variable SVC\_2 with this query that returns both value (SERVICE-ID) and label (service name):

_fetch dt.entity.service_  
_| fields value = toString(id), label = entity.name_  
_| dedup value, label_  
_| append [data record(value = “ALL”, label = “ALL”)]_  
_| sort label asc_

The query returns the correct structure:

_{_  
_“value”: “SERVICE-E43178F49BBABF09”,_  
_“label”: “ATRIA-BPM-Procesar”_  
_}_

**The Problem**  
No matter what I try, the variable always interpolates the display name instead of the ID into tile queries.

**Attempt 1 - Direct interpolation with quotes:**

_| fieldsAdd selected\_service = “$SVC\_2”_

Generates:

_| fieldsAdd selected\_service = ““SERVICE-BPM-Procesar””_

Double quotes break the DQL parser.

**Attempt 2 - Without quotes using :noquote:**

_| filter service\_id == $SVC\_2:noquote_

Generates:

_| filter service\_id == SERVICE-BPM-Procesar_

Spaces and hyphens in the name break the DQL parser.

**Attempt 3 - Using data record + parse to extract ID from concatenated value:**

Variable returns:_SERVICE-BPM-Procesar [SERVICE-E43178F49BBABF09]_

_data record(raw = $SVC\_2)_  
_| parse raw, “LD ‘[’ LD:extracted ‘]’”_

Parse works correctly and extracts SERVICE-E43178F49BBABF09  
But when used inside a tile with join:

_timeseries now = avg(dt.service.request.failure\_rate, default:0),_  
_by: { dt.entity.service }_  
_| fieldsAdd service\_id = toString(dt.entity.service)_  
_| join [_  
_data record(raw = $SVC\_2)_  
_| parse raw, “LD ‘[’ LD:extracted ‘]’”_  
_| fields extracted_  
_],_  
_kind: inner,_  
_on: { left[service\_id] == right[extracted] },_  
_fields: { extracted }_

Returns 0 records even though the service has data.  
What DOES work - but only with pure SERVICE-ID:

| fieldsAdd selected\_service = $SVC\_2  
| filter selected\_service == “ALL” or service\_id == selected\_service

Works perfectly when the variable returns only SERVICE-E43178F49BBABF09 But then users can’t identify services by name in the dropdown.

The Question  
Is there any supported way in Gen3 Dashboards to:  
1. Show a human-readable label in the variable dropdown  
2. Have the variable pass the entity ID to tile queries  
Specifically:

- Is the value/label field separation supported in Query-type variables?
- If so, how do you configure it in the UI?
- Is there any workaround to parse the entity ID from a concatenated string within a timeseries pipeline?

Any help would be appreciated!  
Victor

---

<div class="post-metadata">

**Author:** ![Omkar\_B](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/omkar_b/32/7148_2.png) [@Omkar\_B](https://community.dynatrace.com/u/Omkar_B)\
**Post date:** [June 9, 2026, 1:08am UTC](https://community.dynatrace.com/t/gen3-dashboard-variables-display-label-different-from-value-in-query-type-variables/56004/2 "2026-06-09T01:08:08Z")

</div>

Hey&nbsp;[@VictorRuiz](https://community.dynatrace.com/user/79246),

Instead of showing both **value** and **label** , you can just display the **label** in the variable and use that same label to apply the filter in the tile.

Here’s an example:

 ![Omkar_B_0-1780966559351.png](https://global.discourse-cdn.com/dynatrace/original/3X/d/b/db8c24087d36e446552075eff1c483cb1fb0739c.png)

I think you may have added **“ALL”** to the list to allow filtering across all services. Instead, you can use the **multi-select** option.

In the tile, you can directly use the **service name** or **entity name** for filtering. Also, use the ' **in’** filter instead of ‘==’ or ‘contains’ so that it works properly with multi-select values.

Example :

 ![Omkar_B_1-1780966780001.png](https://global.discourse-cdn.com/dynatrace/original/3X/8/c/8cd5a87519da69ebb168735e7a1e7d52322e2226.png)
