Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
YoungLearning
Helper III
Helper III

The sequence of events to create the final table does not make sense

YoungLearning_0-1717656201928.png

 

YoungLearning_1-1717656215851.png

How is it possible for the excel to be not imported first, and, why is the merge option not possible?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi, @YoungLearning 

Thank you very much for your reply. You are right. However, in Power Query, merge and append are two different operations. They give us different results. It is recommended that you read some excellent blogs and official documentation below to understand the differences between them:

Append vs. Merge in Power BI and Power Query - RADACAD

vjianpengmsft_0-1717980118523.png

Merge queries overview - Power Query | Microsoft Learn

vjianpengmsft_1-1717980165488.png

 

vjianpengmsft_2-1717980186896.png

Append queries - Power Query | Microsoft Learn

In your reply, the append query is exactly what you were thinking.

 

 

How to Get Your Question Answered Quickly

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

Best Regards

Jianpeng Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

7 REPLIES 7
Anonymous
Not applicable

Hi, @YoungLearning 

You need to know the necessary steps in your exercise to achieve your goal form. Merge and append have different effects in Power Query:

A merge queries operation joins two existing tables together based on matching values from one or multiple columns:

vjianpengmsft_0-1717724509023.png

vjianpengmsft_3-1717724781550.png

The append operation creates a single table by adding the contents of one or more tables to another, and aggregates the column headers from the tables to create the schema for the new table:

vjianpengmsft_1-1717724719811.png

vjianpengmsft_2-1717724737103.png

 

In your exercise, you mentioned that you need to merge table2 into table1 to achieve the following effect:

vjianpengmsft_4-1717724874963.png

So we should choose the append operation in Power Query. Take the following example data:

vjianpengmsft_5-1717724992554.png

vjianpengmsft_6-1717725006029.png

Append table2 to table1:

vjianpengmsft_7-1717725067895.png

vjianpengmsft_8-1717725087194.png

vjianpengmsft_9-1717725103376.png

Since there are duplicate values, there are no duplicate values in the exercise, so we need to remove the duplicate values from table1 after the append operation:

vjianpengmsft_10-1717725169065.png

The final result is as follows:

vjianpengmsft_11-1717725180931.png

I've uploaded the PBIX file I used this time below.

 

How to Get Your Question Answered Quickly

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

Best Regards

Jianpeng Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

 

 

 

 

I can see what you're doing there, but it doesn't explain why merge isn't accepted? Isn't it way easier and direct?

Anonymous
Not applicable

Hi, @YoungLearning 

Thank you very much for your reply. In Power Query, the merge operation increments the columns in the table as follows:

vjianpengmsft_0-1717761085761.png

vjianpengmsft_1-1717761107394.png

The result of the merger:

vjianpengmsft_2-1717761148942.png

This will have one more column for Table2, if we expand this column:

vjianpengmsft_3-1717761243979.png

This does not meet your practice requirements. Your exercise requires merging the product columns from two tables into a new product column. Instead of adding a new column. The append operation is to merge the product column in table2 into the end of the product column in table1. Therefore, the append operation meets the requirements of the current problem.

 

 

How to Get Your Question Answered Quickly

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

Best Regards

Jianpeng Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

That doesn't seem right, technically it would fall under 'Product' no? Shouldn't it follow the same column if the column headers are the same?

Anonymous
Not applicable

Hi, @YoungLearning 

Thank you very much for your reply. You are right. However, in Power Query, merge and append are two different operations. They give us different results. It is recommended that you read some excellent blogs and official documentation below to understand the differences between them:

Append vs. Merge in Power BI and Power Query - RADACAD

vjianpengmsft_0-1717980118523.png

Merge queries overview - Power Query | Microsoft Learn

vjianpengmsft_1-1717980165488.png

 

vjianpengmsft_2-1717980186896.png

Append queries - Power Query | Microsoft Learn

In your reply, the append query is exactly what you were thinking.

 

 

How to Get Your Question Answered Quickly

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

Best Regards

Jianpeng Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

From your infographics, the merge is merging where the fourth column in blue, adds on the green table where there are unique identifiers overlapping between the other three blue columns and the green columns. 

The example given though, given they both only have one product column each, wouldn't they be able to merge and produce a single table with no duplicated values?

YoungLearning
Helper III
Helper III

Who decides what's wrong or right? This practice resource makes it really difficult to learn it right!

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.