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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Analitika
Post Prodigy
Post Prodigy

Merging tables in Power BI

Hi,

 

Having issue with merging tables in Power BI. 

Analitika_0-1659515090039.png

One table.

 

Another table:

Analitika_1-1659515165777.png

I wanted to merge two tables by column obj, but unfortunately it makes many duplicates in main table. Also first table date column not contains data in 2023 as like in second table. So how to properly merge tables?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi  @Analitika ,

You can try the following:

1. After merging two tables, do not expand the information of the other table.

Add an index column: Add Column – Index Column – From 1.

vyangliumsft_0-1660017288717.png

2. Expand your merged column.

vyangliumsft_1-1660017288719.png

3. Since the values in the "index column" were purely unique, now Remove duplicates using index column.

vyangliumsft_2-1660017288719.png

4. Results no longer contain duplicate values.

vyangliumsft_3-1660017288722.png

If you need pbix, please click here.

 

Best Regards,

Liu Yang

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

2 REPLIES 2
Anonymous
Not applicable

Hi  @Analitika ,

You can try the following:

1. After merging two tables, do not expand the information of the other table.

Add an index column: Add Column – Index Column – From 1.

vyangliumsft_0-1660017288717.png

2. Expand your merged column.

vyangliumsft_1-1660017288719.png

3. Since the values in the "index column" were purely unique, now Remove duplicates using index column.

vyangliumsft_2-1660017288719.png

4. Results no longer contain duplicate values.

vyangliumsft_3-1660017288722.png

If you need pbix, please click here.

 

Best Regards,

Liu Yang

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

willjoe2442
Helper I
Helper I

To do so, follow these steps:
From the left pane of Power Query Editor, select the query into which you want the other query to merge.
Select Merge Queries > Merge Queries from the Home tab on the ribbon. 
Select State from the RetirementStats table, then select the StateCodes query.
Select OK.

 

 

Regards,

Will

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors