Create and use worksheets

Worksheets are flat tables created by joining columns from a set of one or more tables or imported datasets.

After modeling your data, create worksheets to make searching easier. For example, a sales executive might need to search for information about retail sales. This data might be contained in several tables (sales, customers, products, stores, etc.), with foreign key relationships between them. An administrator who is familiar with the data model can create a retail sales worksheet, that combines all of the related fact and dimension tables into a single, easy-to-use view, and share it with the sales executive. This provides access to the data without requiring an understanding of how it is structured.

Guidelines for worksheets

Users are often unfamiliar with tables and how they are related to one another. A worksheet groups multiple related tables together in a logical way. You might use a worksheet for these reasons:

  • To pre-join multiple tables together.

  • To give a user or group access to only part of the underlying data.

  • To include a derived column using a formula.

  • To rename columns to make the data easier to search.

  • To build in a specific filter or aggregation.

  • To give users a filtered set of data to search.

Typically, you create one worksheet for each set of fact and dimension tables. For example, you may have a sales fact table and an inventory fact table. Each of these fact tables shares common dimensions like date, region, and store. In this scenario, you would create two worksheets: sales and inventory. The following diagram depicts the workflow for creating the sales worksheet.

workflow create worksheet

The process for creating a worksheet is:

  1. Decide which tables to use for the worksheet.

  2. Create a new Worksheet. If the worksheet already exists in another cluster, you can migrate it using a flat TSL file.

  3. Add sources (tables) to the worksheet.

  4. Choose the worksheet join rule.

  5. Select the columns to include.

  6. Optionally modify the join types within the worksheet.

  7. Optionally create formulas.

  8. Optionally create worksheet filters.

  9. Save the worksheet.

  10. Share the worksheet with groups or users.

Create a worksheet

To create a new worksheet:

  1. Click Data, on the top navigation bar.

  2. Click the ellipsis icon more options menu icon, and select Create worksheet.

    Create a worksheet
  3. Add sources and columns.

Add sources and columns to a worksheet

After creating a worksheet, you need to add the sources that contain the data. A source is another name for a table. The sources you choose are typically related to one another by foreign keys.

To add sources to your worksheet, follow these steps. The worksheet creation UI also guides you through the process.

  1. Click the + icon next to Sources.

    Add sources to your worksheet
  2. Check the box next to each of the sources you want to include in the worksheet. You can search for specific Views, imported data, or tables. You can also select every data source that has a specific sticker, like Retail.

    Note that the list of sources only shows the data sources on which you have view or edit privileges.

    Choose sources
  3. Choose the worksheet join rule. Either apply joins progressively or apply all joins. Applying joins progressively speeds up performance.

  4. If you want to disable Row Level Security for this worksheet, check the checkbox to disable it.

  5. Click CLOSE to save your changes.

  6. Expand the table names under Sources and select the columns to add to the worksheet, by doing any of the following:

    1. To add all of the columns from a table, click the table name and click + Add Columns.

    2. To add a single column, double-click its name.

    3. To add multiple columns, Ctl+click each column you want to add and click + Add Columns.

    Note that after you add a column, non-related tables (those without a primary/foreign key relationship) become hidden. If you are working with two tables that should be related, but are not, you can add a relationship between them.

  7. (Optional) Modify the join types within the worksheet.

  8. (Optional) Create formulas.

  9. (Optional) Create worksheet filters.

  10. Click the more menu icon more options menu icon, and select Save.

  11. In the Save Worksheet window, enter a name and description for your worksheet and click SAVE.

  12. (Optional) Click each column name and enter a more user-friendly name for searching. You can tab through the list of columns to rename them quickly.

  13. (Optional) If you want to add a prefix to the name of several columns, select them, click the Add prefix button, and type in the prefix.

    Add a prefix to column names
  14. Click the ellipsis icon more options menu icon, and select Save.

    Save your worksheet
  15. Share your worksheet, if you want other people to be able to use it.

Where to go next

  • How the worksheet join rule works

    Use the worksheet join rule to specify when to apply joins when a search is done on a worksheet. You can either apply joins progressively, as each search term is added (recommended), or apply all joins to every search.

Was this page helpful?