Multi-source charts are in beta and may not be enabled for your organization
yet. Contact support@basedash.com to request
access.
Overview
A regular chart runs one SQL query against one data source. A multi-source chart has:- Source queries: one query per data source, written in that data source’s SQL dialect. Each result gets a name, called an alias.
- A join query: a DuckDB SQL query that combines the source results by their aliases.
Create a multi-source chart
- Open a chart in the chart editor. See Use the chart editor.
- Click Add source in the toolbar. The editor switches to tabs: one tab per source query, plus a Join tab.
- In each source tab, choose a data source and write a query that returns only the rows and columns you need. Double-click a tab to rename its alias, for example
accountsorpayments. - Click Add source query to add more sources.
- Open the Join tab and write a DuckDB query that combines the sources by alias. The schema sidebar lists the tables available to the join query.
- Click Run, then choose the chart type and settings as usual.
accounts and payments:
Limits
- Up to 8 source queries per chart, from at least 2 different data sources. - Each source query can return up to 50,000 rows and 25 MB. All sources together can return up to 50 MB. - Aliases must start with a letter or underscore and contain only letters, numbers, and underscores (up to 63 characters). - If any source query fails, the chart shows an error instead of a partial result. - Drilldowns and data export aren’t available on multi-source charts.
Source "payments" returned more than 50,000 rows. Aggregate or filter in the source query before joining, for example by grouping payments by customer.
FAQ
Which data sources can I combine?
Which data sources can I combine?
Any data sources you can query, including databases, warehouses, and
Basedash Warehouse. Each source query uses its own SQL dialect, and the join
query always uses DuckDB SQL.
Do access rules still apply?
Do access rules still apply?
Yes. Each source query runs with your data source
access and row-level
security, just like a regular chart.
Can the AI build multi-source charts?
Can the AI build multi-source charts?
Yes. When multi-source charts are enabled, ask chat or the
dashboard chat for a chart that combines data from several sources, and the
AI writes the source queries and the join query for you.