<?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: serialized_dashboard in Get Started Discussions</title>
    <link>https://community.databricks.com/t5/get-started-discussions/serialized-dashboard/m-p/134873#M10855</link>
    <description>&lt;P&gt;Hey Egor - Variable substitution inside dashboard SQL (e.g., dashboard.json or serialized_dashboard content) is not natively supported. This means that variables defined in databricks.yml will not be automatically replaced inside dashboard SQL queries. To achieve environment-specific SQL in dashboards, you need to preprocess or template the dashboard JSON file yourself before deployment as a workaround.&lt;/P&gt;
&lt;P&gt;Fortunately, native support for this feature is planned.&amp;nbsp;&lt;/P&gt;
&lt;P class="qt3gz91 paragraph"&gt;I would look into Databricks Asset Bundles. They fully support defining variables in databricks.yml for jobs and other YAML-based configs, including environment-specific overrides (for dev, tst, prd, etc.). In jobs (job.yml, YAML config), you can reference these variables directly using the ${var.variable_name} pattern, and these values will be correctly substituted when deploying to different environments.&lt;/P&gt;</description>
    <pubDate>Tue, 14 Oct 2025 14:54:13 GMT</pubDate>
    <dc:creator>sarahbhord</dc:creator>
    <dc:date>2025-10-14T14:54:13Z</dc:date>
    <item>
      <title>serialized_dashboard</title>
      <link>https://community.databricks.com/t5/get-started-discussions/serialized-dashboard/m-p/134760#M10844</link>
      <description>&lt;P&gt;I have a dashboard.json file, for example: {select * from ${{var.table_name}}}. I have job.yml and section serialized_dashboard there? bcs my job runs parallel with dashboard. Can I use variables in databrics.yml if I define the table_variable variable for the tst, prd, and dev environments?&lt;/P&gt;</description>
      <pubDate>Mon, 13 Oct 2025 15:24:50 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/serialized-dashboard/m-p/134760#M10844</guid>
      <dc:creator>egor</dc:creator>
      <dc:date>2025-10-13T15:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: serialized_dashboard</title>
      <link>https://community.databricks.com/t5/get-started-discussions/serialized-dashboard/m-p/134873#M10855</link>
      <description>&lt;P&gt;Hey Egor - Variable substitution inside dashboard SQL (e.g., dashboard.json or serialized_dashboard content) is not natively supported. This means that variables defined in databricks.yml will not be automatically replaced inside dashboard SQL queries. To achieve environment-specific SQL in dashboards, you need to preprocess or template the dashboard JSON file yourself before deployment as a workaround.&lt;/P&gt;
&lt;P&gt;Fortunately, native support for this feature is planned.&amp;nbsp;&lt;/P&gt;
&lt;P class="qt3gz91 paragraph"&gt;I would look into Databricks Asset Bundles. They fully support defining variables in databricks.yml for jobs and other YAML-based configs, including environment-specific overrides (for dev, tst, prd, etc.). In jobs (job.yml, YAML config), you can reference these variables directly using the ${var.variable_name} pattern, and these values will be correctly substituted when deploying to different environments.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Oct 2025 14:54:13 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/serialized-dashboard/m-p/134873#M10855</guid>
      <dc:creator>sarahbhord</dc:creator>
      <dc:date>2025-10-14T14:54:13Z</dc:date>
    </item>
    <item>
      <title>Re: serialized_dashboard</title>
      <link>https://community.databricks.com/t5/get-started-discussions/serialized-dashboard/m-p/134886#M10856</link>
      <description>&lt;P&gt;Hey Sarabhord!&lt;/P&gt;&lt;P&gt;Am I understanding correctly that if I have the following:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;A dashboard.json file:&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;PRE&gt;{
  &lt;SPAN class=""&gt;"datasets"&lt;/SPAN&gt;: {
    &lt;SPAN class=""&gt;"query_lines"&lt;/SPAN&gt;: [
      &lt;SPAN class=""&gt;"SELECT * FROM ${var.table_name}"&lt;/SPAN&gt;
    ]
  }
}&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;STRONG&gt;A job.yml with a serialized_dashboard section (bcs i need dashboard parallel with my job):&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;jobs:&lt;/SPAN&gt;
  &lt;SPAN class=""&gt;my_job:&lt;/SPAN&gt;
    &lt;SPAN class=""&gt;serialized_dashboard:&lt;/SPAN&gt;
      &lt;SPAN class=""&gt;table_name:&lt;/SPAN&gt; &lt;SPAN class=""&gt;${var.table}&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;STRONG&gt;And a resources/vars.yml with environment-specific variables:&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;-&lt;/SPAN&gt; &lt;SPAN class=""&gt;variable: dev_table_name:&lt;/SPAN&gt;
    &lt;SPAN class=""&gt;value:&lt;/SPAN&gt; &lt;SPAN class=""&gt;dev_table&lt;/SPAN&gt;
&lt;SPAN class=""&gt;-&lt;/SPAN&gt; &lt;SPAN class=""&gt;variable: prd_table_name:&lt;/SPAN&gt;
    &lt;SPAN class=""&gt;value:&lt;/SPAN&gt; &lt;SPAN class=""&gt;prd_table&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;STRONG&gt;Along with a databricks.yml file that configures the entire deployment&lt;/STRONG&gt;, then I cannot dynamically substitute the table names based on the environment?&lt;BR /&gt;&lt;BR /&gt;Will I have to write env_dashboard.json configured for each environment and call it depending on the environment in which the job is running?&lt;/P&gt;</description>
      <pubDate>Tue, 14 Oct 2025 17:00:54 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/serialized-dashboard/m-p/134886#M10856</guid>
      <dc:creator>egor</dc:creator>
      <dc:date>2025-10-14T17:00:54Z</dc:date>
    </item>
    <item>
      <title>Re: serialized_dashboard</title>
      <link>https://community.databricks.com/t5/get-started-discussions/serialized-dashboard/m-p/134895#M10857</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/191346"&gt;@egor&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/143567"&gt;@sarahbhord&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can check below issue at github. It seems that Databricks team is aware that this feature is needed by a lot of users and they're going to add this DAB.&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/databricks/cli/issues/1915" target="_blank"&gt;DAB dashboards variable substitution in dataset queries · Issue #1915 · databricks/cli&lt;/A&gt;&lt;/P&gt;&lt;P&gt;As of now, you can also try to use workaround suggested by karoldegroot. I guess it's worth a try:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/databricks/cli/issues/1915#issuecomment-3364978390" target="_blank"&gt;https://github.com/databricks/cli/issues/1915#issuecomment-3364978390&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Oct 2025 17:14:47 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/serialized-dashboard/m-p/134895#M10857</guid>
      <dc:creator>szymon_dybczak</dc:creator>
      <dc:date>2025-10-14T17:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: serialized_dashboard</title>
      <link>https://community.databricks.com/t5/get-started-discussions/serialized-dashboard/m-p/134905#M10858</link>
      <description>&lt;P&gt;I currently use the parameter inside IDENTIFIER(:schema || 'my_table') and the 'bundle scripts' feature to perform substitutions, but I hope for better support soon.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Oct 2025 18:13:16 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/serialized-dashboard/m-p/134905#M10858</guid>
      <dc:creator>Hubert-Dudek</dc:creator>
      <dc:date>2025-10-14T18:13:16Z</dc:date>
    </item>
  </channel>
</rss>

