Video | Tableau | Data prep | Tool strategy

How to create a TDS & TDSX file in Tableau: Saving a data source.

TDS, TDSX — it's a bit of a tongue twister, but here's exactly how Tableau's data source files work and why they'll speed up your workflow.

  • A TDS file is an XML file that stores only metadata about a data source — connections, relationships, hierarchies, number formatting and data types — while a TDSX packages that metadata together with the actual data (the hyper extract).
  • Saved data sources live in version-specific folders on your machine, which is why items like Superstore Sales appear automatically on the Tableau start screen.
  • Right-click a data source and choose 'Add to Saved Data Sources' to export a TDS, switching the dropdown to TDSX to save a packaged version.
  • Dragging a TDS file into an open workbook adds it as a second connection and preserves the hierarchies and formatting you built previously, and you can still edit relationships afterwards.
  • A TDSX is a compressed zip of the hyper file plus the TDS, so it can appear smaller on disk than the uncompressed TDS due to that compression.

TDS & TDSX files are a great way to save time when connecting to common data sources in your own workflow or you might want democratise data and provide your users with standard TDS and TDSX files as a starting point for their work.Tableau Release notes:

=====TDS=====

Contains only the information you need to connect to the data source, including the following:- Data source type- Connection information specified on the data source page; for example, database server address, port, location of local files, tables- Groups, sets, calculated fields, bins- Default field properties; for example, number formats, aggregation, and sort orderUse this format if everyone who will use the data source has access to the underlying file or database defined in the connection information. For example, the underlying data is a CSV file on your computer, and you are the only person who will use it; or the data is hosted on a cloud platform, and your colleagues all have the same access you do.

=====TDSX=====

A TDSX file contains all information in the data source (.tds) file, as well as a copy of any local file-based data or extracts.A packaged data source is a single zipped file. Use this format if you want to share your data source with people who do not have access to the underlying data that is defined in the connection information.

00:00 Intro

00:52 Setting up a data source

03:40 Creating a TDS file

05:00 What’s in a TDS & TDSX file?

06:09 Using a TDS & TDSX file.

09:10 Outro