<?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: Databricks asset bundles and Dashboards - pass parameters depending on bundle target in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/databricks-asset-bundles-and-dashboards-pass-parameters/m-p/137985#M50841</link>
    <description>&lt;P&gt;There is a limited workaround contained in the repo folder linked below. See the README for details.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/databricks-solutions/databricks-dab-examples/tree/main/knowledge-base/metric-views" target="_blank"&gt;https://github.com/databricks-solutions/databricks-dab-examples/tree/main/knowledge-base/metric-views&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Product and engineering are aware of this issue and are working on a solution.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 06 Nov 2025 15:27:49 GMT</pubDate>
    <dc:creator>chris_koester</dc:creator>
    <dc:date>2025-11-06T15:27:49Z</dc:date>
    <item>
      <title>Databricks asset bundles and Dashboards - pass parameters depending on bundle target</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-asset-bundles-and-dashboards-pass-parameters/m-p/100643#M40366</link>
      <description>&lt;P&gt;Hello everyone !&lt;/P&gt;&lt;P&gt;Since Databricks Asset Bundles can now be used to deploy dashboards, I'm wondering how to pass parameters so that the queries for the dev dashboard query the dev catalog, and the dashboard in stg query the stg catalog etc.&lt;/P&gt;&lt;P&gt;Is there any way to do this ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Dec 2024 15:08:32 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-asset-bundles-and-dashboards-pass-parameters/m-p/100643#M40366</guid>
      <dc:creator>erigaud</dc:creator>
      <dc:date>2024-12-02T15:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks asset bundles and Dashboards - pass parameters depending on bundle target</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-asset-bundles-and-dashboards-pass-parameters/m-p/100645#M40368</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/84270"&gt;@erigaud&lt;/a&gt;,&lt;/P&gt;
&lt;P class="p1"&gt;Here’s how you can achieve this:&lt;/P&gt;
&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;STRONG&gt;Define Variables in the Bundle Configuration&lt;/STRONG&gt;: You can define custom variables in your databricks.yml file to hold the catalog names for different environments. For example:&lt;/P&gt;
&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt; variables:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;catalog_name:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;description: "The catalog name to use for the environment"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;default: "dev_catalog"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;STRONG&gt;Use Targets to Override Variables&lt;/STRONG&gt;: You can specify different values for these variables in the targets section of your bundle configuration. This allows you to set different catalog names for different environments (e.g., dev, stg, prod).&lt;/P&gt;
&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;targets:&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;dev:&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;default: true&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;variables:&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;catalog_name: "dev_catalog"&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;stg:&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;variables:&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;catalog_name: "stg_catalog"&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;prod:&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;variables:&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;catalog_name: "prod_catalog"&lt;/P&gt;
&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;STRONG&gt;Reference Variables in SQL Queries&lt;/STRONG&gt;: In your SQL queries within the dashboards, you can reference these variables to dynamically set the catalog name. For example&lt;/P&gt;
&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;SELECT * FROM ${var.catalog_name}.schema_name.table_name&lt;/P&gt;
&lt;P class="p1"&gt;Please refer to: &lt;A href="https://docs.databricks.com/en/dev-tools/bundles/settings.html" target="_blank"&gt;https://docs.databricks.com/en/dev-tools/bundles/settings.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Dec 2024 16:07:55 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-asset-bundles-and-dashboards-pass-parameters/m-p/100645#M40368</guid>
      <dc:creator>Alberto_Umana</dc:creator>
      <dc:date>2024-12-02T16:07:55Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks asset bundles and Dashboards - pass parameters depending on bundle target</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-asset-bundles-and-dashboards-pass-parameters/m-p/100705#M40383</link>
      <description>&lt;P&gt;Hello, I tried modifying my query in the lvdash.json file corresponding to my dashboard with&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"query"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"SELECT * FROM mytable WHERE my_col = ${var.testvar}"&lt;BR /&gt;&lt;BR /&gt;But it does not seem to be working and the variable is not replaced. I am doing something wrong ?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2024 07:17:32 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-asset-bundles-and-dashboards-pass-parameters/m-p/100705#M40383</guid>
      <dc:creator>erigaud</dc:creator>
      <dc:date>2024-12-03T07:17:32Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks asset bundles and Dashboards - pass parameters depending on bundle target</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-asset-bundles-and-dashboards-pass-parameters/m-p/107242#M42740</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/84270"&gt;@erigaud&lt;/a&gt;&amp;nbsp;: Did you find any solution for this. I'm also trying the same as yours. Please share if you have any solution.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2025 13:39:53 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-asset-bundles-and-dashboards-pass-parameters/m-p/107242#M42740</guid>
      <dc:creator>selva092</dc:creator>
      <dc:date>2025-01-27T13:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks asset bundles and Dashboards - pass parameters depending on bundle target</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-asset-bundles-and-dashboards-pass-parameters/m-p/107849#M42932</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/146215"&gt;@selva092&lt;/a&gt;,&amp;nbsp;I was able to contact someone from Databricks that explained that it is currently not supported, however it is in the backlog so hopefully it wiill come soon ! We just have to monitor the release notes for asset bundle until it's available&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2025 16:05:56 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-asset-bundles-and-dashboards-pass-parameters/m-p/107849#M42932</guid>
      <dc:creator>erigaud</dc:creator>
      <dc:date>2025-01-30T16:05:56Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks asset bundles and Dashboards - pass parameters depending on bundle target</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-asset-bundles-and-dashboards-pass-parameters/m-p/121592#M46499</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/84270"&gt;@erigaud&lt;/a&gt;,&amp;nbsp;do you perhaps know if it is already possible at the moment?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jun 2025 11:20:06 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-asset-bundles-and-dashboards-pass-parameters/m-p/121592#M46499</guid>
      <dc:creator>Bram123</dc:creator>
      <dc:date>2025-06-12T11:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks asset bundles and Dashboards - pass parameters depending on bundle target</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-asset-bundles-and-dashboards-pass-parameters/m-p/131626#M49167</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello, do you know if there is a solution?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Sep 2025 08:04:06 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-asset-bundles-and-dashboards-pass-parameters/m-p/131626#M49167</guid>
      <dc:creator>JonA</dc:creator>
      <dc:date>2025-09-11T08:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks asset bundles and Dashboards - pass parameters depending on bundle target</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-asset-bundles-and-dashboards-pass-parameters/m-p/131632#M49169</link>
      <description>&lt;P&gt;Hi, it was discussed yesterday in a champions call. They confirmed that it is something that they will end but they don't know yet when the feature will be available. They recommended that if you really need it, to use terraform.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Sep 2025 09:37:18 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-asset-bundles-and-dashboards-pass-parameters/m-p/131632#M49169</guid>
      <dc:creator>BramLust</dc:creator>
      <dc:date>2025-09-11T09:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks asset bundles and Dashboards - pass parameters depending on bundle target</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-asset-bundles-and-dashboards-pass-parameters/m-p/137682#M50793</link>
      <description>&lt;P&gt;Has this been added yet ? having dashboards in asset bundles without support for parameterization is borderline broken&lt;/P&gt;</description>
      <pubDate>Wed, 05 Nov 2025 06:44:04 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-asset-bundles-and-dashboards-pass-parameters/m-p/137682#M50793</guid>
      <dc:creator>jelmer</dc:creator>
      <dc:date>2025-11-05T06:44:04Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks asset bundles and Dashboards - pass parameters depending on bundle target</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-asset-bundles-and-dashboards-pass-parameters/m-p/137985#M50841</link>
      <description>&lt;P&gt;There is a limited workaround contained in the repo folder linked below. See the README for details.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/databricks-solutions/databricks-dab-examples/tree/main/knowledge-base/metric-views" target="_blank"&gt;https://github.com/databricks-solutions/databricks-dab-examples/tree/main/knowledge-base/metric-views&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Product and engineering are aware of this issue and are working on a solution.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Nov 2025 15:27:49 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-asset-bundles-and-dashboards-pass-parameters/m-p/137985#M50841</guid>
      <dc:creator>chris_koester</dc:creator>
      <dc:date>2025-11-06T15:27:49Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks asset bundles and Dashboards - pass parameters depending on bundle target</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-asset-bundles-and-dashboards-pass-parameters/m-p/138001#M50843</link>
      <description>&lt;P&gt;What I did as a workaround. It works pretty fine but you'll need to duplicate Dashboard JSON code per environment and then, replace catalog names&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":face_with_rolling_eyes:"&gt;🙄&lt;/span&gt; It is not the perfect solution but the only way I could find to include these deployment in my Databricks Asset Bundles (DAB).&lt;/P&gt;&lt;P&gt;1) Include dashboards in DAB:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Coffee77_2-1762445959232.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/21416iBD0868D31789C8DE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Coffee77_2-1762445959232.png" alt="Coffee77_2-1762445959232.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;2) Define dashboards in there similar to this one. I usually create or update dashboards directly in Databricks UI and then, import JSON source code:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Coffee77_5-1762446232350.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/21420i20C8C7FCA2E8D1A6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Coffee77_5-1762446232350.png" alt="Coffee77_5-1762446232350.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;3) Then, include the JSON files associated to your dashboards in proper paths depending on environments. In my case, I just need to replace catalog names per environment. It takes me less than one minute although waiting for a better solution without duplicating code...&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Coffee77_4-1762446190030.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/21419i6E22BA107CE79891/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Coffee77_4-1762446190030.png" alt="Coffee77_4-1762446190030.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I hope this helps&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Nov 2025 16:28:21 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-asset-bundles-and-dashboards-pass-parameters/m-p/138001#M50843</guid>
      <dc:creator>Coffee77</dc:creator>
      <dc:date>2025-11-06T16:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks asset bundles and Dashboards - pass parameters depending on bundle target</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-asset-bundles-and-dashboards-pass-parameters/m-p/143004#M52070</link>
      <description>&lt;P&gt;In the new version v0.281.0, catalog and schema parameterization for the Databricks Dashboard finally works. I tested it and wrote examples -&amp;nbsp;&lt;A title="Dynamic Catalog &amp;amp; Schema in Databricks Dashboards (DUBs, API, SDK, Terraform)" href="https://medium.com/@protmaks/dynamic-catalog-schema-in-databricks-dashboards-b7eea62270c6" target="_blank" rel="noopener"&gt;https://medium.com/@protmaks/dynamic-catalog-schema-in-databricks-dashboards-b7eea62270c6&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jan 2026 10:01:35 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-asset-bundles-and-dashboards-pass-parameters/m-p/143004#M52070</guid>
      <dc:creator>protmaks</dc:creator>
      <dc:date>2026-01-05T10:01:35Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks asset bundles and Dashboards - pass parameters depending on bundle target</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-asset-bundles-and-dashboards-pass-parameters/m-p/147859#M52782</link>
      <description>&lt;P&gt;This worked for me, once I upgraded the CLI to v0.287.0. I am using two schemas in the lvdash.json file but only one catalog. What I did was to&amp;nbsp; only parametrize the catalog name in the yml file,&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;variables:
  warehouse_id:
    description: SQL Warehouse ID
    default: xxxx
  catalog_name:
    description: Catalog name
    default: dev_gold

resources:
  dashboards:
    dashboard_example:
      display_name: 'Dashboard_Demo'
      file_path: ../../dashboards/my_dashboard.lvdash.json
      warehouse_id: ${var.warehouse_id}
      dataset_catalog: ${var.catalog_name}

targets:
  dev:
    mode: development
    default: true
    workspace:
      host: https://adb-xxx.azuredatabricks.net
    variables:
      catalog_name: dev_gold
      warehouse_id: xxx

   prod:
     mode: production
     workspace:
      host: https://adb-yyy.azuredatabricks.net
    variables:
      catalog_name: gold
      warehouse_id: yyy&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;and once I deployed, it could pick up the right schema names. In the lvdash.json file, I only omitted the catalog name and left the schema names, as follows:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;"queryLines": [
        "SELECT * FROM schema_1.table1"
      ]
...

"queryLines": [
        "SELECT * FROM schema_2.table2"
      ]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Feb 2026 09:39:08 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-asset-bundles-and-dashboards-pass-parameters/m-p/147859#M52782</guid>
      <dc:creator>masoomeh_gh</dc:creator>
      <dc:date>2026-02-10T09:39:08Z</dc:date>
    </item>
  </channel>
</rss>

