Oz du Soleil addresses the common need to bring two different data sets together into one by stacking one on top of the other—formally called appending data. See how easily this is done in Get & Transform.
- [Narrator] Now I'm going to show you how to append two data sets in Get & Transform. If you want to follow along pull up the Append Two Data Sets exercise file. Here we have two data sets that represent two sessions of mandatory fun that was hosted by a company. Right now, our goal is to just sweep the data up, get it stacked up into one big list. To do that, we're going to do an append in Get & Transform. Both data sets are already in tables and now we have to create queries so that then we can use Get & Transform.
Here we go. With the cursor in a data set, I'll go to Data, From Table. There's our data. I'm going to close this as a Connection Only, loading it to the workbook would only load data that we already have, Close and Load. Only Create Connection, Load. And notice on the right side that our session one query is indeed loaded as a connection only. Now let's make our session two query. Select the data set.
From Table, Close and Load, as a connection, Load. Now we can append our session one and session two queries. Data, New Query, Combine Queries, Append. Here's our append interface and we just have to decide which table we want on top of the other. Let's put the session one on top. Append it to session two. Okay.
And here's our data all stacked up. Let's Close and Load this to the workbook. And here's our data, the Name, Department, Work Location and Manager columns. Let's look at that closer. And let's look back at the source data. We have Name, Department in session one. We have the four columns in session two. The result of the append created all four columns for us, matching up the columns that did have a match.
And now we have the one big list that we were after.
- What is Get & Transform?
- Querying data
- Working with columns
- Using formulas
- Pivoting and unpivoting data
- Grouping data
- Appending a query
- Merging/combining data with joins