- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2024 02:01 PM
Yes, it is possible to pass parameters for Dashboards Datasets in asset bundles. You can define custom variables in the bundle configuration file and use these variables in your dashboard queries
You can define variables in the databricks.yml file. For instance, you can define a variable for the catalog name:
variables:
catalog:
description: "Catalog name for the dataset"
default: "dev"
You can reference these variables in your dashboard configuration file. For example, in your baby_gender_by_county.dashboard.yml file, you can use the variable in the query:
resources:
dashboards:
baby_gender_by_county:
display_name: "Baby gender by county"
warehouse_id: aae11o8e6fe9zz79
file_path: ../src/baby_gender_by_county.lvdash.json
parameters:
catalog: ${var.catalog}
https://docs.databricks.com/en/dev-tools/bundles/settings.html