Create a data element
Workbooks support many element types. Data elements are elements built directly from a data source and include tables, pivot tables, and charts.
Although each type of data element displays data in a different way, the underlying data is always tabular and column-based. To understand the structure of visualized or pivoted data, view the underlying data for the data element. See View underlying data.
Data sources for data elements
When you create a workbook, you can add elements from a variety of data sources. You can add new sources at any time, and you are not restricted to a single source per workbook or workbook page.
Available data sources include tables from connected cloud data warehouses (CDW), Sigma data models or datasets, CSV-formatted files that you upload, SQL commands, other workbook data elements, and more.
You can create a data element from several different sources:
- A new source.
- A source already in use in the workbook.
- An existing data element. To create an element from another element, see Create a data element from an existing element on the canvas.
Effects of upstream changes
Changes made to a data source might affect child elements that depend on that data source. For example, if a bar chart element depends on a table element as a data source, deleting a column from the table element makes the column inaccessible to the bar chart element. Hiding the column makes the column unavailable by default, accessible to the bar chart only as a source column.
Consider reusability of a data source when building a workbook and creating data elements:
- Convert data elements to data models to reuse them across workbooks.
- Create calculated columns and filters in source tables.
- Review element lineage when troubleshooting unexpected data changes.
Requirements
- To create a data element, you must have Can Edit or Can Explore access to an individual workbook.
- The workbook must be in either Edit mode or Explore mode. See Workbook modes overview.
- To upload CSVs or write custom SQL, you must be assigned an account type with the Upload CSV or Write SQL permission enabled. See Account types.
Add a data element to a workbook page
To add a data element to your workbook page, do the following:
-
Open a workbook for customizing or editing.
-
In the Add element bar, choose what to add. To add a table or pivot table, select Data, then choose the relevant option. To add a chart, select Charts, then choose the chart that you want to add.
-
Select a data source. You can add a data source immediately, or preview it and select specific columns to add:
-
To use a data model, database or catalog table, dataset, or other workbook element as a data source, perform a search, browse the Elements from the current workbook, or select a table, data model, or dataset from Tables and Datasets.
Hover over an available data source and select Preview to open the data source columns and values. Sources already in use in the workbook or in other workbooks that you have access to appear with different icons. You can hover over the lineage icon (
) to identify sources in use by the current workbook.
-
If you preview a data source, you can select or deselect different columns in the data source and then select Add to add the data source.
-
To upload a CSV-formatted file, select CSV.
-
To write custom SQL to retrieve data from your data platform, select SQL. See Write custom SQL.
-
To combine data sources, select Join or Union. See Join data in workbooks.
-
To transpose existing data sources, select Transpose. See Transpose a table.
After you select the data source for the element, the new element appears on the page with the editor panel open for the element.
-
Create a data element from an existing element on the canvas
You can create a child data element from a table, pivot table, or input table on a workbook page. For example, create a chart from a table element.
-
Hover over the element that you want to use as a data source.
-
Select
Create child element to create a child element based on the selected element.
-
Select an element type: Chart, Table, Pivot table, or Linked input table.
The new element appears on the page with the editor panel open for the element.
Identify and edit an element's data source
To identify and make changes to the data source of a data element, select the element and review the Properties tab of the editor panel.
-
Open the workbook for customizing or editing.
If the editor panel is not visible, click Show panels (
).
-
Select an element on the workbook canvas, then select the Properties tab of the editor panel.
-
The data source is shown under Data source.
To view, change, or transform a data source for a selected element, select the down arrow () next to the data source name. See Change the data source for a workbook or element.
Change the grouping level of a data source
When a grouped table is used as the data source for a data element, all source columns of the table are used as the data source by default. To change which columns are available to your table, such as to use only the columns in a specific grouping level, change the granularity of the data source:
-
Select the table, then select the Properties tab of the editor panel.
-
For Data source, review the source table and the Source grouping option.
-
Open the column name to review the granularity options available and choose the columns that you want to include. Any lower-level grouping options include the columns from higher-level grouping options. If you want to view all columns, choose All source columns.
The element updates to reflect the available source columns.
Updated 1 day ago