<?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 Re: Dashboard Filters (Showing Description) but selecting the id value for use query parameters in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/dashboard-filters-showing-description-but-selecting-the-id-value/m-p/139733#M51284</link>
    <description>&lt;P&gt;I wanted to share my solution to this, hope this helps.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Create a SQL function that accepts an ARRAY&amp;lt;STRING&amp;gt;, extracts a numeric ID enclosed in parentheses from the end of each string, and returns an ARRAY&amp;lt;BIGINT&amp;gt;.&lt;/P&gt;&lt;H3&gt;&lt;STRONG&gt;Example Usage&lt;/STRONG&gt;&lt;/H3&gt;&lt;P&gt;&lt;STRONG&gt;Input:&lt;/STRONG&gt; ["Item (1)", "Item (99)", "Complex Item (105) - Review"]&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Output:&lt;/STRONG&gt; [1, 99, 105]&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;LI-CODE lang="markup"&gt;CREATE OR REPLACE FUNCTION extract_numeric_ids(arr ARRAY&amp;lt;STRING&amp;gt;)
RETURNS ARRAY&amp;lt;BIGINT&amp;gt;
RETURN transform(
arr,
x -&amp;gt; cast(regexp_extract(x, '\\((\\d+)\\)[^\\(]*$', 1) as bigint)
);​&lt;/LI-CODE&gt;&lt;P&gt;Now replace each of your legacy params which would have return the id to use this subquery.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SELECT
  id
FROM
  rangeme.certification_groups
WHERE
  array_contains(
    extract_numeric_ids(
      :`CERTIFICATION_GROUP_ID`
    ),
    id
  );&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 19 Nov 2025 23:54:40 GMT</pubDate>
    <dc:creator>200052</dc:creator>
    <dc:date>2025-11-19T23:54:40Z</dc:date>
    <item>
      <title>Dashboard Filters (Showing Description) but selecting the id value for use query parameters</title>
      <link>https://community.databricks.com/t5/data-engineering/dashboard-filters-showing-description-but-selecting-the-id-value/m-p/111251#M43832</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Is there a way to have a Single or multiple filter in a Dashboard that shows titles/names but on selection passes in the identifier as query parameter filters. The cost management dashboard shipped by Databricks seems to do this for the workspace selector, but I cant find anything in the documentation .&lt;/P&gt;&lt;P&gt;The workspace selector uses a single value with the id prefixed by : and uses one of the two formats&lt;/P&gt;&lt;P&gt;1) WorkspaceName (id:xxxx)&lt;/P&gt;&lt;P&gt;2) id:xxxx - where no workspace name is found&lt;/P&gt;&lt;P&gt;This seems to work magically, but I cant find any reference in documentation&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Deenar_0-1740567476099.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/15099iDB094AE3B9F81193/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Deenar_0-1740567476099.png" alt="Deenar_0-1740567476099.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2025 11:03:18 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/dashboard-filters-showing-description-but-selecting-the-id-value/m-p/111251#M43832</guid>
      <dc:creator>Deenar</dc:creator>
      <dc:date>2025-02-26T11:03:18Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard Filters (Showing Description) but selecting the id value for use query parameters</title>
      <link>https://community.databricks.com/t5/data-engineering/dashboard-filters-showing-description-but-selecting-the-id-value/m-p/111365#M43863</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;For those interested in the same. After digging into the Databricks cost dashboards code, I found out that this feature isn't supported yet. The Databricks dashboards use a hack to get around this by having a lookup table in each dataset definition to translate the text back to an identifier.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2025 10:57:35 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/dashboard-filters-showing-description-but-selecting-the-id-value/m-p/111365#M43863</guid>
      <dc:creator>Deenar</dc:creator>
      <dc:date>2025-02-27T10:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard Filters (Showing Description) but selecting the id value for use query parameters</title>
      <link>https://community.databricks.com/t5/data-engineering/dashboard-filters-showing-description-but-selecting-the-id-value/m-p/139733#M51284</link>
      <description>&lt;P&gt;I wanted to share my solution to this, hope this helps.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Create a SQL function that accepts an ARRAY&amp;lt;STRING&amp;gt;, extracts a numeric ID enclosed in parentheses from the end of each string, and returns an ARRAY&amp;lt;BIGINT&amp;gt;.&lt;/P&gt;&lt;H3&gt;&lt;STRONG&gt;Example Usage&lt;/STRONG&gt;&lt;/H3&gt;&lt;P&gt;&lt;STRONG&gt;Input:&lt;/STRONG&gt; ["Item (1)", "Item (99)", "Complex Item (105) - Review"]&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Output:&lt;/STRONG&gt; [1, 99, 105]&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;LI-CODE lang="markup"&gt;CREATE OR REPLACE FUNCTION extract_numeric_ids(arr ARRAY&amp;lt;STRING&amp;gt;)
RETURNS ARRAY&amp;lt;BIGINT&amp;gt;
RETURN transform(
arr,
x -&amp;gt; cast(regexp_extract(x, '\\((\\d+)\\)[^\\(]*$', 1) as bigint)
);​&lt;/LI-CODE&gt;&lt;P&gt;Now replace each of your legacy params which would have return the id to use this subquery.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SELECT
  id
FROM
  rangeme.certification_groups
WHERE
  array_contains(
    extract_numeric_ids(
      :`CERTIFICATION_GROUP_ID`
    ),
    id
  );&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Nov 2025 23:54:40 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/dashboard-filters-showing-description-but-selecting-the-id-value/m-p/139733#M51284</guid>
      <dc:creator>200052</dc:creator>
      <dc:date>2025-11-19T23:54:40Z</dc:date>
    </item>
  </channel>
</rss>

