Steps: Set Up Union Tables
- Import at least 2 staging tables for a data source.
- Security:
- Integration Operatorpermission.
- Data Designerpermission.
Union tables enable you to combine or stack table row data, even when the tables come from different data sources. With a union, you combine rows from 1 table with rows from another table to create a single larger table. The data in each column must be of the same data type. Example: A retail chain that uses different ERP systems across regions can combine all ERP data into a single large table.
- SelectIntegration>Design Integrationsfrom the main menu.
- Select the data source you want to create the union table for or create a new data source.
- SelectCustom Tablein theData Componentpane.
- Drag and dropUnion TableintoTables to Import.
- Enter a name for the union table.
- (Optional) SelectDistinct Rowsto evaluate this data during import and filter out any exact duplicates.This process ensures that you only import unique, distinct rows into the target sheet or model.
- Add the tables that you want to union on theTablestab:
Option Description + buttonSelect to add a table to your union. This adds a row to the grid in theTablestab, where you select 1 table per row.(Select) in the TABLE columnSelect to expand the list of available data sources and select a table.FILTER column(Optional) Select(Empty)to write an SQL expression to filter the columns from this table. You can select each available column you want to add to your expression. - Select theColumnstab.If rows in theTablestab exist with no tables selected, we don’t allow you to navigate to theColumnstab.
- Add the data source table columns that you want to union:
Option Description + buttonSelect to choose a data type for the table columns you want to union. Each data source table in the union appears as a column header in the grid.(Select) under the column header for each table in the unionSelect to choose a column from each table.Column Name(Optional) Select a column name to change the name. - SelectOkto save your union table settings and view the results of your union.
Data from multiple source tables is combined into a single union table within Adaptive Planning.