Union or Join ?

Door Aline Léonard op May 12, 2017 2:24:35 PM

<span id="hs_cos_wrapper_name" class="hs_cos_wrapper hs_cos_wrapper_meta_field hs_cos_wrapper_type_text" style="" data-hs-cos-general-type="meta_field" data-hs-cos-type="text" >Union or Join ?</span>

Union and Join have two different purposes in Tableau:

If you want to expand your dataset by combining tables that have the same structure (same number of fields, same field names and same data types), you can use UNION. In fact, you add more rows to your dataset.

  •  Select the table you want to add from the left pane and drag it directly below the first table

OR

  • Double-click New Union

 

If you want to widen your dataset by merging data tables with common columns, you can use JOIN. In this case, you add new columns to your dataset (data come from the same datasource for example 2 sheets of an Excel file).