<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Gen3 Dashboard Variables - Display label different from value in Query-type variables in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/Gen3-Dashboard-Variables-Display-label-different-from-value-in/m-p/299940#M3360</link>
    <description>&lt;P&gt;Hi Community,&lt;BR /&gt;I'm working with Gen3 Dashboards and I'm facing a challenge with Query-type variables where I need to:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Display a human-readable name to the user (e.g. SERVICE-BPM-Procesar)&lt;/LI&gt;
&lt;LI&gt;Use the entity ID in tile queries (e.g. SERVICE-E43178F49BBABF09)&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;STRONG&gt;Context&lt;/STRONG&gt;&lt;BR /&gt;I have a variable SVC_2 with this query that returns both value (SERVICE-ID) and label (service name):&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;EM&gt;fetch dt.entity.service&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;| fields value = toString(id), label = entity.name&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;| dedup value, label&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;| append [data record(value = "ALL", label = "ALL")]&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;| sort label asc&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;The query returns the correct structure:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;EM&gt;{&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"value": "SERVICE-E43178F49BBABF09",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"label": "ATRIA-BPM-Procesar"&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;The Problem&lt;/STRONG&gt;&lt;BR /&gt;No matter what I try, the variable always interpolates the display name instead of the ID into tile queries.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Attempt 1 - Direct interpolation with quotes:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;EM&gt;| fieldsAdd selected_service = "$SVC_2"&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Generates:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;EM&gt;| fieldsAdd selected_service = ""SERVICE-BPM-Procesar""&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Double quotes break the DQL parser.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Attempt 2 - Without quotes using :noquote:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;EM&gt;| filter service_id == $SVC_2:noquote&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Generates:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;EM&gt;| filter service_id == SERVICE-BPM-Procesar&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Spaces and hyphens in the name break the DQL parser.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Attempt 3 - Using data record + parse to extract ID from concatenated value:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Variable returns:&lt;EM&gt;SERVICE-BPM-Procesar [SERVICE-E43178F49BBABF09]&lt;/EM&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;BR /&gt;&lt;EM&gt;data record(raw = $SVC_2)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;| parse raw, "LD '[' LD:extracted ']'"&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Parse works correctly and extracts SERVICE-E43178F49BBABF09&lt;BR /&gt;But when used inside a tile with join:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;timeseries now = avg(dt.service.request.failure_rate, default:0),&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;by: { dt.entity.service }&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;| fieldsAdd service_id = toString(dt.entity.service)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;| join [&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;data record(raw = $SVC_2)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;| parse raw, "LD '[' LD:extracted ']'"&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;| fields extracted&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;],&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;kind: inner,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;on: { left[service_id] == right[extracted] },&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;fields: { extracted }&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Returns 0 records even though the service has data.&lt;BR /&gt;What DOES work - but only with pure SERVICE-ID:&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;BR /&gt;| fieldsAdd selected_service = $SVC_2&lt;BR /&gt;| filter selected_service == "ALL" or service_id == selected_service&lt;/P&gt;
&lt;P&gt;Works perfectly when the variable returns only SERVICE-E43178F49BBABF09 But then users can't identify services by name in the dropdown.&lt;/P&gt;
&lt;P&gt;The Question&lt;BR /&gt;Is there any supported way in Gen3 Dashboards to:&lt;BR /&gt;1. Show a human-readable label in the variable dropdown&lt;BR /&gt;2. Have the variable pass the entity ID to tile queries&lt;BR /&gt;Specifically:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Is the value/label field separation supported in Query-type variables?&lt;/LI&gt;
&lt;LI&gt;If so, how do you configure it in the UI?&lt;/LI&gt;
&lt;LI&gt;Is there any workaround to parse the entity ID from a concatenated string within a timeseries pipeline?&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Any help would be appreciated!&lt;BR /&gt;Victor&lt;/P&gt;</description>
    <pubDate>Wed, 27 May 2026 06:17:46 GMT</pubDate>
    <dc:creator>VictorRuiz</dc:creator>
    <dc:date>2026-05-27T06:17:46Z</dc:date>
    <item>
      <title>Gen3 Dashboard Variables - Display label different from value in Query-type variables</title>
      <link>https://community.dynatrace.com/t5/DQL/Gen3-Dashboard-Variables-Display-label-different-from-value-in/m-p/299940#M3360</link>
      <description>&lt;P&gt;Hi Community,&lt;BR /&gt;I'm working with Gen3 Dashboards and I'm facing a challenge with Query-type variables where I need to:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Display a human-readable name to the user (e.g. SERVICE-BPM-Procesar)&lt;/LI&gt;
&lt;LI&gt;Use the entity ID in tile queries (e.g. SERVICE-E43178F49BBABF09)&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;STRONG&gt;Context&lt;/STRONG&gt;&lt;BR /&gt;I have a variable SVC_2 with this query that returns both value (SERVICE-ID) and label (service name):&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;EM&gt;fetch dt.entity.service&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;| fields value = toString(id), label = entity.name&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;| dedup value, label&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;| append [data record(value = "ALL", label = "ALL")]&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;| sort label asc&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;The query returns the correct structure:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;EM&gt;{&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"value": "SERVICE-E43178F49BBABF09",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"label": "ATRIA-BPM-Procesar"&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;The Problem&lt;/STRONG&gt;&lt;BR /&gt;No matter what I try, the variable always interpolates the display name instead of the ID into tile queries.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Attempt 1 - Direct interpolation with quotes:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;EM&gt;| fieldsAdd selected_service = "$SVC_2"&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Generates:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;EM&gt;| fieldsAdd selected_service = ""SERVICE-BPM-Procesar""&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Double quotes break the DQL parser.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Attempt 2 - Without quotes using :noquote:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;EM&gt;| filter service_id == $SVC_2:noquote&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Generates:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;EM&gt;| filter service_id == SERVICE-BPM-Procesar&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Spaces and hyphens in the name break the DQL parser.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Attempt 3 - Using data record + parse to extract ID from concatenated value:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Variable returns:&lt;EM&gt;SERVICE-BPM-Procesar [SERVICE-E43178F49BBABF09]&lt;/EM&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;BR /&gt;&lt;EM&gt;data record(raw = $SVC_2)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;| parse raw, "LD '[' LD:extracted ']'"&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Parse works correctly and extracts SERVICE-E43178F49BBABF09&lt;BR /&gt;But when used inside a tile with join:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;timeseries now = avg(dt.service.request.failure_rate, default:0),&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;by: { dt.entity.service }&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;| fieldsAdd service_id = toString(dt.entity.service)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;| join [&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;data record(raw = $SVC_2)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;| parse raw, "LD '[' LD:extracted ']'"&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;| fields extracted&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;],&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;kind: inner,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;on: { left[service_id] == right[extracted] },&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;fields: { extracted }&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Returns 0 records even though the service has data.&lt;BR /&gt;What DOES work - but only with pure SERVICE-ID:&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;BR /&gt;| fieldsAdd selected_service = $SVC_2&lt;BR /&gt;| filter selected_service == "ALL" or service_id == selected_service&lt;/P&gt;
&lt;P&gt;Works perfectly when the variable returns only SERVICE-E43178F49BBABF09 But then users can't identify services by name in the dropdown.&lt;/P&gt;
&lt;P&gt;The Question&lt;BR /&gt;Is there any supported way in Gen3 Dashboards to:&lt;BR /&gt;1. Show a human-readable label in the variable dropdown&lt;BR /&gt;2. Have the variable pass the entity ID to tile queries&lt;BR /&gt;Specifically:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Is the value/label field separation supported in Query-type variables?&lt;/LI&gt;
&lt;LI&gt;If so, how do you configure it in the UI?&lt;/LI&gt;
&lt;LI&gt;Is there any workaround to parse the entity ID from a concatenated string within a timeseries pipeline?&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Any help would be appreciated!&lt;BR /&gt;Victor&lt;/P&gt;</description>
      <pubDate>Wed, 27 May 2026 06:17:46 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Gen3-Dashboard-Variables-Display-label-different-from-value-in/m-p/299940#M3360</guid>
      <dc:creator>VictorRuiz</dc:creator>
      <dc:date>2026-05-27T06:17:46Z</dc:date>
    </item>
  </channel>
</rss>

