Shared Data Sources
The Data Sources feature lets data teams share queries with teammates as dynamic data sources that can be refreshed or scheduled to update automatically. This is an easy way to give less technical users one-click access to live updating data and makes it easy to get teams using governed "source of truth" datasets.
How to share queries as data sources
- Connect to your data source. Here are instructions for connecting to Postgres, Snowflake, Databricks, and Redshift. Note, we do not yet support Shared Data Sources for oAuth connections.
- Write your query and click Run. Your data will import into your workbook as a connected table.
- When ready to share, click the three dots in the top right of the window and select Publish as data source.
- Enter a Name and Description and click Next.
- Add users to share the data source with and click Publish.
- The Data Source will now be accessible to both you as the owner and to all users you share it with. Data sources can be accessed in two places:
Access in any workbook by clicking the Data icon in the top right of the workbook and then selecting Data sources
Access in your Account Home under Shared data sources or by clicking Data in the left sidebar.
- Click on the data source tile to create a new workbook from that data source
- The new workbook will contain a connected table that is a live connection to the data source.
- Click Refresh table to update with the latest data or click View settings to schedule automated data refresh.
Note: This features is only available on Business and Enterprise plans. If you'd like a demo of the Data Sources feature, you can schedule a demo here.
Using query variables in data sources
When creating a Data Source, you can optionally create query variables to make it easier to filter data before importing to your sheet. Here's how:
- When creating your data source, click + Create variable. Select your variable type, optionally assign a default value, name your variable, and click Create.
- Write your SQL query and assign the query variable to the name of the column you want to query. Hit Run. If it runs successfully, click the three dot icon and select Publish as a data source.
- When you create a new workbook from this data source, you'll be asked to input a value for the query varible and then hit Run query.
- A new workbook will be created from the data source, filtered based on the query variable.
- At any time, you can change the value for the query variable and Refresh table to filter your dataset to the updated query variable value.
Need help?: If you need help setting up Data Sources or have feedback, please contact us.