简体   繁体   中英

PowerBI - Creating custom table from three different source tables

I am trying to build a custom table from three different source tables.

There are three column names, common in these source tables. I want to build a custom table which has all of those records from these tables.

The operation involved here is appending records on the basis of column names in all the source tables.

Here is a copy of what I require

在此处输入图片说明

How to do this PowerBI?

I'll assume you have all three source tables loaded into your Power BI Desktop. Click the "Edit Queries" button in the ribbon...

在此处输入图片说明 ...to open the Power BI Query Editor (PowerQuery).

Then click the "Home" tab, then the drop-down arrow next to "Append Queries", and click "Append Queries as New":

在此处输入图片说明

Select the "Three or more tables" radio button, and make sure all all three tables are listed in the "Tables to Append" list, so the dialog box looks like this:

在此处输入图片说明 ...and click OK.

It'll create a new appended table, named Append1, that looks like this:

在此处输入图片说明

Then click the "Home" tab, and "Close & Apply" to load the new "Append1" table into Power BI.

(If you don't want the "Age" column included, you can remove it before you "Close & Apply." To do that, just right-click the "Age" column and select "Remove.")

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM